On Mac OS X 10.6.8 intel core i7 and sage-5.0 (also sage-5.1.beta2) I can crash sage (and Maxima) by evaluating:
sage: integrate(ln(1+4/5*sin(x)), x, -3.1415, 3.1415)
;;;
;;; Binding stack overflow.
;;; Jumping to the outermost toplevel prompt
;;;
...
;;;
;;; Binding stack overflow.
;;; Jumping to the outermost toplevel prompt
;;;
/Users/jonesbe/sage/sage-5.1.beta2/spkg/bin/sage: line 335: 86594 Illegal instruction sage-ipython "$@" -i
sage: version()
'Sage Version 5.0, Release Date: 2012-05-14'
hamsin@hamsin-PC:~$ uname -a
Linux hamsin-PC 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
The same happens with the indefinite integral and the exact definite integral from -pi to pi.Has anyone seen similar crashes using sage-5.0 or earlier?
On Jun 7, 2012, at 14:13 , Benjamin Jones wrote:
> On Mac OS X 10.6.8 intel core i7 and sage-5.0 (also sage-5.1.beta2) I can
> crash sage (and Maxima) by evaluating:
>
> sage: integrate(ln(1+4/5*sin(x)), x, -3.1415, 3.1415)
[snip]
> Has anyone seen similar crashes using sage-5.0 or earlier?
I have duplicated this with Sage 5.0 on Mac OS X 10.6.8 (Dual 6-core Xeons) and 10.7.4 (quad core Core i7).
With 4.8 (10.6.8), sage just echos back what I typed in (no process is spawned while this is being "processed").
The first version that gives the crash (rather than just echoing) seems to be 5.0-b3 (b2 just echos).
Is Maxima used as a library, or used with pexpect? I've lost track.
For this kind of thing, should be library.
Well, Maxima 5.26.0 just hangs...
Maxima 5.26.0 http://maxima.sourceforge.net
using Lisp ECL 11.1.1
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) integrate(ln(1+4/5*sin(x)), x)
This is definitely a maxima bug, it seems that it goes into a recursion in binary-ecl/sin.c. Did you open a ticket for it?
So we should look between 5.0.beta2 and 5.0.beta3, I guess.
Merged in sage-5.0.beta3: #7509: William Stein, Wilfried Huss: notebook -- make it possible to debug Python code in the notebook, e.g., something like pdb that works in the notebook [Reviewed by David Roe] #8458: Lukáš Lánský: iterator for graphs() doesn't return independent graphs [Reviewed by Nathann Cohen] #8879: Michael Orlitzky: Clean up whitespace in padic hyperelliptic curve file [Reviewed by Karl-Dieter Crisman] #10175: Volker Braun: symmetric and exterior powers of characters [Reviewed by David Roe] #10441: Lukáš Lánský: Error creating an empty multi-edge (di)graph [Reviewed by Nathann Cohen] #10628: Maarten Derickx, Simon King: initialization of matrices from vectors or list of lists can be way faster [Reviewed by Simon King] #10868: Michael Orlitzky: A wrong (easy) limit [Reviewed by Aly Deines] #10916: Lukáš Lánský: Multiple loops and edges are lost upon pickling [Reviewed by Nathann Cohen] #10923: Thierry Monteil, Michael Orlitzky: Bad sign in integral() [Reviewed by Benjamin Jones, Karl-Dieter Crisman] #10940: Frederic Han: giac interface [Reviewed by David Kohel] #11483: Michael Orlitzky, Jason Grout: enable abs_integrate package from maxima [Reviewed by Karl-Dieter Crisman] #11591: Michael Orlitzky: Incorrect results for integrals involving exponential functions [Reviewed by Aly Deines] #11739: Lukáš Lánský: add_vertex w/o params should return the new vertex [Reviewed by Paul Zimmermann] #11920: Jeroen Demeyer: Sympow needs to disable fused-multiply-add and should create datafiles [Reviewed by Leif Leonhardy, Volker Braun] #11981: Daniel Krenn: map_coefficients (of multivariate polynomial ring) cannot change base_ring [Reviewed by Julian Rueth] #12105: Johan Bosman: RuntimeError: Segmentation fault with nth_root [Reviewed by Karl-Dieter Crisman] #12144: William Stein: better document a technical confusing point in the Hidden Markov Model code [Reviewed by Jason Grout] #12261: David Roe: Bring Doctest coverage for element_ext_pari.py to 100% [Reviewed by Karl-Dieter Crisman, Aly Deines] #12317: Francis Clarke: printing factorisations [Reviewed by Robert Bradshaw] #12325: Lukáš Lánský: Eulerian circuits/paths for (di)graphs [Reviewed by Nathann Cohen] #12328: François Bissey: GMP_BITS_PER_MP_LIMB is deprecated in gmp/mpir [Reviewed by Robert Bradshaw] #12370: Javier López Peña: Change is_singular to use rank instead of determinant [Reviewed by Keshav Kini] #12378: Joal Heagney, Nathann Cohen: Graph chromatic_number documentation [Reviewed by Karl-Dieter Crisman] #12386: Julien Puydt: [ARM] pickling issues in the matrix_mod2_dense code [Reviewed by Martin Albrecht] #12389: Nathann Cohen: Rounding error in graph coloring [Reviewed by David Coudert] #12395: David Roe: Change some random variable indexes that cause doctest failures if doctests are run in a different order. [Reviewed by Karl-Dieter Crisman] #12412: Jim Stark: TypeError when creating a zero map from a zero dimensional vector space to a positive dimensional vector space [Reviewed by Aly Deines]