-
-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Description
Importing the module sage.rings.real_mpfr in IPython causes a segfault with the backtrace included below. SAGE itself doesn't report any errors in this case.
In [2]: import sage.rings.real_mpfr
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210221920 (LWP 28996)]
0xb0d29b0e in __pyx_f_9real_mpfr_9RealField___init__ (__pyx_v_self=0xb0dc625c,
__pyx_args=0xb0ce242c, __pyx_kwds=0x0) at sage/rings/real_mpfr.c:1128
1128 Py_INCREF(__pyx_v_rnd);
(gdb) bt
#0 0xb0d29b0e in __pyx_f_9real_mpfr_9RealField___init__ (
__pyx_v_self=0xb0dc625c, __pyx_args=0xb0ce242c, __pyx_kwds=0x0)
at sage/rings/real_mpfr.c:1128
#1 0x0809c2f3 in type_call (type=0xb0d88d40, args=0xb0ce242c, kwds=0x0)
at Objects/typeobject.c:436
#2 0x0805a0a7 in PyObject_Call (func=0x0, arg=0xb0ce242c, kw=0x0)
at Objects/abstract.c:1860
#3 0x080c0c50 in PyEval_EvalFrameEx (f=0x83964ec, throwflag=0)
at Python/ceval.c:3775
#4 0x080c564a in PyEval_EvalFrameEx (f=0x8392a9c, throwflag=0)
at Python/ceval.c:3650
#5 0x080c639b in PyEval_EvalCodeEx (co=0xb0dd0ad0, globals=0xb0d9fc64,
locals=0x0, args=0xb0d963f8, argcount=2, kws=0x0, kwcount=0,
defs=0xb0ce2478, defcount=1, closure=0x0) at Python/ceval.c:2831
You can use the patch included in #509 to run IPython under gdb.
Component: misc
Issue created by migration from https://trac.sagemath.org/ticket/510