On Sat, Sep 13, 2008 at 11:09:46AM +0200, Martin Costabel wrote:
> Alexander Hansen wrote:
> >$ sw_vers
> >ProductName: Mac OS X
> >ProductVersion: 10.5.4
> >BuildVersion: 9E17
> >$ sysctl machdep.cpu.brand_string
> >machdep.cpu.brand_string: Intel(R) Core(TM)2 Duo CPU     T8300  @ 2.40GHz
> >$ gcc --version | head -n 1
> >i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)
> >
> >I get the following error during the build
> >
> >cd ../lib && ../src/genius --maxerrors=0 --compile loader.gel > 
> >temp.cgel && mv -f temp.cgel lib.cgel
> >genius(21288) malloc: *** error for object 0x616f6c2f: Non-aligned 
> >pointer being freed
> []
> >This doesn't show up on my G4 with 10.5.4/Xcode 3.1, so I think we can 
> >rule out Xcode and Leopard by itself  as culprits.
> 
> No, to me this looks like a genuine bug in Leopard, more precisely in 
> the wordexp()/wordfree() functions on intel.
> 
> I have found a patch for genius that fixes it for me. According to the 
> wordexp manpage, this patch should not change anything, because it sets 
> a variable that is ignored, according to the manpage, but which 
> apparently is not ignored in reality. In my gdb tests, this variable 
> we.we_offs got a default value of 1769239401. Setting it to 0 fixes the 
> crash that appears in the subsequent wordfree() call.

Is there a Radar# for this bug?

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to