Ticket #710 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

bad segfault when hitting control-c

Reported by: was Owned by: somebody
Priority: major Milestone: sage-2.8.5
Component: basic arithmetic Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description (last modified by was) (diff)

Try this:

sage: n=factor(2^997-1)
[hit control c]
---------------------------------------------------------------------------
<type 'exceptions.KeyboardInterrupt'>     Traceback (most recent call last)

sage: gp.eval('factor(2^997-1)')
[hit control c]
Segmentation fault (core dumped)

... Do the same with Magma:

sage: magma.eval('Factorization(2^997-1)')
Segmentation fault (core dumped)



Change History

comment:1 Changed 5 years ago by was

  • Description modified (diff)

comment:2 Changed 5 years ago by was

  • Status changed from new to closed
  • Resolution set to fixed

This is now fixed for the next SAGE release by Stein and Tornaria. The fixes involved fixing some mistakes in gen.pyx a rewriting interrupt.c/h somewhat.

Note: See TracTickets for help on using tickets.