Skip to content

Sequence(ZZ) should fail gracefully #2608

@dfdeshom

Description

@dfdeshom

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions