id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,merged,author,reviewer,upstream,work_issues,branch,commit,dependencies,stopgaps
14082,PARI stack overflow crashes Sage,jdemeyer,jdemeyer,"The following crashes Sage hard:
{{{
sage: i = CDF.0
sage: fz=animate([line([zeta(s+i*t) for t in srange(0,50,0.01)]) for s in srange(0,0.9,0.01)],xmin=-1.5,ymin=-2,xmax=2.5,ymax=2)
*** the PARI stack overflows !
current stack size: 16000000 (15.259 Mbytes)
[hint] you can increase GP stack with allocatemem()
*** Error in the PARI system. End of program.
}}}
The problem is simple: instead of using the '''proper PARI interface''' in `sage/libs/pari/gen.pyx`, for some reason PARI is called directly in `sage/rings/complex_double.pyx`. This interface misses some features, such as cleaning up the PARI stack :-)
This code goes back to
{{{
changeset: 1292:28dfa54b6a23
parent: 1273:97f9271f8637
user: William Stein
date: Sun Sep 24 23:13:32 2006 -0700
summary: Finished the 2nd draft of the double precision complex numbers.
}}}
Solution: use the proper PARI interface instead.",defect,closed,critical,sage-5.8,c_lib,fixed,,,sage-5.8.beta3,Jeroen Demeyer,David Roe,N/A,,,,#13618,