Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequence(ZZ) should fail gracefully #2608

Closed
dfdeshom opened this issue Mar 20, 2008 · 4 comments
Closed

Sequence(ZZ) should fail gracefully #2608

dfdeshom opened this issue Mar 20, 2008 · 4 comments

Comments

@dfdeshom
Copy link

Sequence(ZZ) should fail immediately in the first place. In the session below, I entered the command, waited some time and pressed CTRL+C many times. The computation was not only interrupted, but my sage session also crashed. Output below:

sage: Sequence(ZZ)
(CTRL+C pressed repeatedly)
ERROR: Internal Python error in the inspect module.
Below is the traceback from this internal error.

Traceback (most recent call last):
  File "/home/dfdeshom/custom/sage/local/lib/python2.5/site-packages/IPython/ultraTB.py", line 491, in text
    records = _fixed_getinnerframes(etb, context,self.tb_offset)
  File "/home/dfdeshom/custom/sage/local/lib/python2.5/site-packages/IPython/ultraTB.py", line 124, in _fixed_
getinnerframes
    records  = inspect.getinnerframes(etb, context)
  File "/home/dfdeshom/custom/sage/local/lib/python2.5/inspect.py", line 877, in getinnerframes
    framelist.append((tb.tb_frame,) + getframeinfo(tb, context))
  File "/home/dfdeshom/custom/sage/local/lib/python2.5/inspect.py", line 841, in getframeinfo
    lines, lnum = findsource(frame)
  File "/home/dfdeshom/custom/sage/local/lib/python2.5/inspect.py", line 462, in findsource

[...]

  File "/home/dfdeshom/custom/sage/local/lib/python2.5/site-packages/sage/interfaces/get_sigs.py", line 9, in my_sigint
    raise KeyboardInterrupt
KeyboardInterrupt

Unfortunately, your original traceback can not be constructed.

dfdeshom@sage:~/custom/sage/devel/sage-2577$

Component: user interface

Reviewer: Didier Deshommes

Issue created by migration from https://trac.sagemath.org/ticket/2608

@jdemeyer
Copy link

comment:1

With sage-4.6.alpha1, I cannot reproduce the crashes anymore. Doing Sequence(ZZ) or list(ZZ) will still take forever, but I don't think this is a big problem (ZZ is infinite, after all).

@jdemeyer
Copy link

jdemeyer commented Nov 3, 2010

Reviewer: dfdeshom

@jdemeyer
Copy link

jdemeyer commented Nov 3, 2010

comment:3

dfdeshom: please add your real name to Account Names mapped to Real Names.

@jdemeyer
Copy link

jdemeyer commented Nov 7, 2010

Changed reviewer from dfdeshom to Didier Deshommes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants