#11741: pari.init_prime segfaults for large input on many platforms
-----------------------------+----------------------------------------------
Reporter: rohana | Owner: was
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.7.2
Component: number theory | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Changes (by was):
* status: needs_review => needs_work
Comment:
1. We need a doctest to illustrate that you fixed this.
2. If you do {{{nth_prime(10^11)}}} twice it crashes hard. This is
because you've left diffptr in bad shape. I think there is now a way of
calling a function to clean up if there was a signal raised. This is part
of the cool new improvements to sig_on/sig_off.
Alternatively, just set diffptr to 0 after you free it, and anywhere else
that you use it, check if it needs to be initialized?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11741#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.