#11868: PARI library interface broken by design
---------------------------------------+------------------------------
Reporter: jdemeyer | Owner: was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.13
Component: interfaces | Resolution:
Keywords: t0GEN t1GEN gen | Merged in:
Authors: Peter Bruin | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #864, #9640, #10018 | Stopgaps:
---------------------------------------+------------------------------
Comment (by jdemeyer):
Replying to [comment:27 pbruin]:
> - What exactly is a dangerous `malloc()`?
`malloc()` inside `sig_on()` is dangerous because an interrupt
'''during''' `malloc()` will almost certainly corrupt the heap.
`sage_malloc()` fixes this, but of course PARI doesn't know about
`sage_malloc()`.
> is `clear_stack()` really necessary here?
You're right, it's not needed.
I also noticed that Cython seems unable to optimize `P(x)`, so it might be
better to invent a `cdef` method for that (say, `P.togen(x)`) which can be
more optimized.
--
Ticket URL: <http://trac.sagemath.org/ticket/11868#comment:28>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.