Opened 5 years ago

Last modified 3 months ago

#20467 needs_work defect

stackoverflow in Maxima integral

Reported by: kcrisman Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: calculus Keywords:
Cc: nbruin, tmonteil Merged in:
Authors: Reviewers:
Report Upstream: Fixed upstream, but not in a stable release. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by kcrisman)

sage: k=var('k')
sage: integral(sin(k*x)/x*erf(x^2), x, 0, oo)
RuntimeError: ECL says: C-STACK overflow at size 4259840. Stack can probably be resized.

This is related to this ask.sagemath question though I couldn't reproduce this behavior.

Upstream: https://sourceforge.net/p/maxima/bugs/3144/

Change History (5)

comment:1 Changed 5 years ago by nbruin

As far as I can see, this happens in vanilla maxima on SBCL too:

Maxima 5.36.1 http://maxima.sourceforge.net
using Lisp SBCL 1.2.11-1.fc22
(%i1) integrate(sin(k*x)/x*erf(x^2),x,0,inf);
Maxima encountered a Lisp error:
Control stack exhausted (no more space for function call frames).

This is not the latest version, but it's the kind of bug that, unless it's been specifically addressed, it's probably still there. Might want to report it (why is there no online maxima calculator with an up-to-date maxima? maximacell or something like that?)

comment:2 Changed 5 years ago by kcrisman

  • Description modified (diff)
  • Report Upstream changed from N/A to Reported upstream. No feedback yet.

comment:3 Changed 5 years ago by kcrisman

  • Report Upstream changed from Reported upstream. No feedback yet. to Fixed upstream, but not in a stable release.

comment:4 Changed 3 months ago by mkoeppe

  • Cc tmonteil added
  • Milestone changed from sage-7.2 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

Seems fixed in 9.2.beta10

comment:5 Changed 3 months ago by kcrisman

  • Status changed from needs_review to needs_work

As always, verify with doctest :-)

Note: See TracTickets for help on using tickets.