patch applied (packages/integer-gmp): Patch GMP to always use the GHC allocation functions

Ian Lynagh igloo at earth.li
Tue Jun 23 07:49:27 EDT 2009


On Tue, Jun 23, 2009 at 08:47:49AM +0100, Simon Marlow wrote:
> On 22/06/2009 21:35, Ian Lynagh wrote:
>> Sun Jun 21 11:29:57 PDT 2009  Ian Lynagh<igloo at earth.li>
>>    * Patch GMP to always use the GHC allocation functions
>>    This works around a crash (only on OS X for some reason?) where the GHCi
>>    GMP uses the systems memory allocator. We should fix this properly, by
>>    making ghci run constructor functions.
>>
>>      M ./cbits/alloc.c -6 +6
>>      M ./gmp/ghc.mk -1 +1
>>      A ./gmp/tarball/gmp-4.2.4-nodoc-patched.tar.bz2
>>      R ./gmp/tarball/gmp-4.2.4-nodoc.tar.bz2
>>      A ./gmp/tarball/patch
>
> Presumably if GMP is dynamically linked, then there's no problem since  
> there's only one libgmp linked in, rather than two.  Might this explain  
> why the bug only showed up on OS X?

Ah, yes, good point.


Thanks
Ian



More information about the Cvs-libraries mailing list