[SciPy-dev] A stray pointer somwehere...

Christopher Hanley chanley at stsci.edu
Thu Nov 3 14:51:04 CST 2005



Fernando Perez wrote:
> Actually in my case it's different: all the tests pass _always_, it segfaults 
> only when I exit the python shell (tested both with ipython and with the 
> default interpreter):
> 
> ... run several times test(10,10)
> 
> check_nd (scipy.base.index_tricks.test_index_tricks.test_grid) ... ok
> check_1 (scipy.distutils.misc_util.test_misc_util.test_appendpath) ... ok
> check_2 (scipy.distutils.misc_util.test_misc_util.test_appendpath) ... ok
> check_3 (scipy.distutils.misc_util.test_misc_util.test_appendpath) ... ok
> 
> ----------------------------------------------------------------------
> Ran 140 tests in 0.291s
> 
> OK
> Out[6]: <unittest.TextTestRunner object at 0x20000000040f7310>
> 
> In [7]:  ### EXIT HERE via Ctrl-D
> 
> Segmentation fault
> 
> 
> So the tests actually pass, but they corrupt something inside the python 
> interpreter's state, so it segfaults on exit, while cleaning up.
> 
> Cheers,
> 
> f

Sorry, missed the part about segfault on exit only.  Still I'm surprised 
I could get it to segfault by just looping the scipy.test(10,10) 
command.   I have only tested this in the ipython shell.

Chris




More information about the Scipy-dev mailing list