Bug#780186: GMP doesn't manage memory correctly

Steve M. Robbins steve at sumost.ca
Tue Jun 9 03:26:27 UTC 2015


On Tue, Mar 10, 2015 at 09:07:52AM +0100, Julien Puydt wrote:
> Package: gmp
> Version: 2:6.0.0+dfsg-6
> 
> Hi,
> 
> the sagemath software is using MPIR, but we're trying to package it for
> debian using the default lib for multi-precision arithmetic : GMP.
> 
> Sagemath uses mp_set_memory_functions to override the default memory
> management and make it better for their purpose (trigger their error
> handling), but there are places where gmp still calls its own functions!

Please list the places.


> And we have a failing test in their suites where an abort is triggered,
> because _mpz_realloc in mpz/realloc.c is called instead of the
> sagemath-provided realloc.

"their" suites -- is that a GMP test suite or something else?


> GMP shouldn't call its own realloc if a better one has been provided.

I'll need more information to process this bug further.

Thanks,
-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20150608/1e077b06/attachment.sig>


More information about the debian-science-maintainers mailing list