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

Simon Marlow marlowsd at gmail.com
Tue Jun 23 03:47:49 EDT 2009


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?

Cheers,
	Simon


More information about the Cvs-libraries mailing list