sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.47k stars 487 forks source link

Interrupt in NTL malloc() hangs Sage #16850

Open jdemeyer opened 10 years ago

jdemeyer commented 10 years ago

Inspired by #16667, the following usually breaks Sage badly:

sage: x = polygen(GF(2^8, 'a')); alarm(0.1); x^1000000

This reason is that this tends to interrupt during a malloc() call, which can totally mess up the heap. We always knew this could happen, but now we have a case which is relatively easy to reproduce.

CC: @vbraun @jpflori @defeo @pjbruin @sagetrac-sbesnier @nexttime

Component: cython

Keywords: interrupt

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

jdemeyer commented 10 years ago

Description changed:

--- 
+++ 
@@ -3,3 +3,4 @@

sage: x = polygen(GF(2^8, 'a')); alarm(0.1); x^1000000

+This reason is that this tends to interrupt during a `malloc()` call, which can totally mess up the heap. We always knew this could happen, but now we have a case which is relatively easy to reproduce.