[SciPy-dev] Unusual crash

Russel Howe russel@appliedminds....
Thu Mar 22 15:55:35 CDT 2007


I am using today's svn scipy on OS X 10.4 intel with MacPorts python2.4.


$ pythonw -c "import scipy.signal"
Floating point exception
$

Looking a little more closely, it is the module linalg.iterative that  
causes the crash.  A gdb backtrace is below, has anybody else run  
into this before?  Any ideas?  I rebuilt python and scipy with no  
change.

$ gdb /opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
Resources/Python.app/Contents/MacOS/Python

<snip gdb banner>
(gdb) run -c "import scipy.linalg.iterative"

<snip loading libraries...>

Program received signal EXC_ARITHMETIC, Arithmetic exception.
0x900dfb26 in strtod_l ()
(gdb) bt
#0  0x900dfb26 in strtod_l ()
#1  0x90030a66 in strtod ()
#2  0x002ac1be in PyOS_ascii_strtod (nptr=0xbfff8680 "1.", '0'  
<repeats 15 times>, "1e-05", endptr=0x0) at Python/pystrtod.c:159
#3  0x002ac469 in PyOS_ascii_atof (nptr=0xbfff8680 "1.", '0' <repeats  
15 times>, "1e-05") at Python/pystrtod.c:257
#4  0x002a04c7 in r_object (p=0xbfffcd50) at Python/marshal.c:484
#5  0x002a0782 in r_object (p=0xbfffcd50) at Python/marshal.c:581
#6  0x002a053d in r_object (p=0xbfffcd50) at Python/marshal.c:651
#7  0x002a0da1 in PyMarshal_ReadLastObjectFromFile (fp=0xa000be50) at  
Python/marshal.c:804
#8  0x0029d403 in load_source_module (name=0xbfffd6f7  
"scipy.linalg.iterative", pathname=0xbfffd257 "/opt/local/lib/ 
python2.4/site-packages/scipy/linalg/iterative.py", fp=0xa000bdf8) at  
Python/import.c:723
#9  0x0029e233 in import_submodule (mod=0x121bf70, subname=0xbfffd704  
"iterative", fullname=0xbfffd6f7 "scipy.linalg.iterative") at Python/ 
import.c:2266
#10 0x0029e465 in load_next (mod=0x121bf70, altmod=0x2e0160,  
p_name=0xbfffd704, buf=0xbfffd6f7 "scipy.linalg.iterative",  
p_buflen=0xbfffdaf8) at Python/import.c:2086
#11 0x0029e919 in PyImport_ImportModuleEx (name=0x12f72b4  
"iterative", globals=0x57420, locals=0x57420, fromlist=0x1214d30) at  
Python/import.c:1921
#12 0x00271adf in builtin___import__ (self=0x0, args=0x50810) at  
Python/bltinmodule.c:45
#13 0x0020e213 in PyObject_Call (func=0xf260, arg=0x50810, kw=0x0) at  
Objects/abstract.c:1795
#14 0x00279a8a in PyEval_CallObjectWithKeywords (func=0xf260,  
arg=0x50810, kw=0x0) at Python/ceval.c:3430
#15 0x0027c63f in PyEval_EvalFrame (f=0x634f30) at Python/ceval.c:2020
#16 0x00280c66 in PyEval_EvalCodeEx (co=0x12fa720, globals=0x57420,  
locals=0x57420, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,  
defcount=0, closure=0x0) at Python/ceval.c:2736
#17 0x00280ea6 in PyEval_EvalCode (co=0x12fa720, globals=0x57420,  
locals=0x57420) at Python/ceval.c:484
#18 0x0029ce94 in PyImport_ExecCodeModuleEx (name=0xbfffecb7  
"scipy.linalg", co=0x12fa720, pathname=0xbfffdf6f "/opt/local/lib/ 
python2.4/site-packages/scipy/linalg/__init__.pyc") at Python/ 
import.c:631
#19 0x0029d24a in load_source_module (name=0xbfffecb7 "scipy.linalg",  
pathname=0xbfffdf6f "/opt/local/lib/python2.4/site-packages/scipy/ 
linalg/__init__.pyc", fp=0xa000bda0) at Python/import.c:909
#20 0x0029dd57 in load_package (name=0xbfffecb7 "scipy.linalg",  
pathname=0x121fac0 "\003") at Python/import.c:965
#21 0x0029e233 in import_submodule (mod=0x55d70, subname=0xbfffecbd  
"linalg", fullname=0xbfffecb7 "scipy.linalg") at Python/import.c:2266
#22 0x0029e465 in load_next (mod=0x55d70, altmod=0x55d70,  
p_name=0xbfffecbd, buf=0xbfffecb7 "scipy.linalg",  
p_buflen=0xbffff0b8) at Python/import.c:2086
#23 0x0029e95d in PyImport_ImportModuleEx (name=0x506c4  
"scipy.linalg.iterative", globals=0x20a50, locals=0x20a50,  
fromlist=0x2e0160) at Python/import.c:1928
#24 0x00271adf in builtin___import__ (self=0x0, args=0x1fae0) at  
Python/bltinmodule.c:45
#25 0x0020e213 in PyObject_Call (func=0xf260, arg=0x1fae0, kw=0x0) at  
Objects/abstract.c:1795
#26 0x00279a8a in PyEval_CallObjectWithKeywords (func=0xf260,  
arg=0x1fae0, kw=0x0) at Python/ceval.c:3430
#27 0x0027c63f in PyEval_EvalFrame (f=0x608890) at Python/ceval.c:2020
#28 0x00280c66 in PyEval_EvalCodeEx (co=0x4ee20, globals=0x20a50,  
locals=0x20a50, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,  
defcount=0, closure=0x0) at Python/ceval.c:2736
#29 0x00280ea6 in PyEval_EvalCode (co=0x4ee20, globals=0x20a50,  
locals=0x20a50) at Python/ceval.c:484
#30 0x002a80a0 in PyRun_SimpleStringFlags (command=0x600320 "import  
scipy.linalg.iterative\n", flags=0xbffff618) at Python/pythonrun.c:1265
#31 0x002b1493 in Py_Main (argc=1, argv=0xbffff6a0) at Modules/main.c: 
481
#32 0x000018ee in ?? ()
#33 0x00001815 in ?? ()
(gdb)



More information about the Scipy-dev mailing list