[SciPy-user] ndimage on 64 bit (was enthon beta 1.0.0b3)

Tim Leslie tim.leslie at gmail.com
Sat Jul 8 01:56:18 EDT 2006


On 7/8/06, Travis Oliphant <oliphant.travis at ieee.org> wrote:
> I say go ahead and re-enable it.   I'd like to get the problems fixed.

I did a clean install of the latest svn and ndimage segfaulted on me
when running the tests. I'm keen to see ndimage working, so if anyone
would like to give pointers on how to go about fixing this, I'm happy
to help out. These tests were done on a dual athlon 3800+ with latest
svn versions of numpy and scipy and Python 2.4.3 (#2, Apr 27 2006,
14:43:32)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2

>>> numpy.__version__
'0.9.9.2786'
>>> scipy.__version__
'0.5.0.2056'


running scipy.test(10, 10) in gdb gives the following:

histogram 1 ... ok
histogram 2
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47207542961872 (LWP 15035)]
0x00002aef624e4afa in NI_Histogram (input=0x749800, labels=0xd5fa80,
min_label=1, max_label=1, indices=0xeb98d0,
    n_results=1, histograms=0xeb2d60, min=0, max=4,
nbins=47205985550341) at Lib/ndimage/src/ni_measure.c:752
752           ph[jj][kk] = 0;
(gdb) bt
#0  0x00002aef624e4afa in NI_Histogram (input=0x749800,
labels=0xd5fa80, min_label=1, max_label=1, indices=0xeb98d0,
    n_results=1, histograms=0xeb2d60, min=0, max=4,
nbins=47205985550341) at Lib/ndimage/src/ni_measure.c:752
#1  0x00002aef624d6e82 in Py_Histogram (obj=<value optimized out>,
args=<value optimized out>)
    at Lib/ndimage/src/nd_image.c:1103
#2  0x00000000004779c1 in PyEval_EvalFrame ()
#3  0x000000000047830f in PyEval_EvalCodeEx ()
#4  0x00000000004768ab in PyEval_EvalFrame ()
#5  0x00000000004769c6 in PyEval_EvalFrame ()
#6  0x000000000047830f in PyEval_EvalCodeEx ()
#7  0x00000000004c013a in PyFunction_SetClosure ()
#8  0x0000000000414490 in PyObject_Call ()
#9  0x0000000000475732 in PyEval_EvalFrame ()
#10 0x000000000047830f in PyEval_EvalCodeEx ()
#11 0x00000000004c013a in PyFunction_SetClosure ()
#12 0x0000000000414490 in PyObject_Call ()
#13 0x000000000041afe7 in PyMethod_New ()
#14 0x0000000000414490 in PyObject_Call ()
#15 0x0000000000475cf5 in PyEval_EvalFrame ()
#16 0x000000000047830f in PyEval_EvalCodeEx ()
#17 0x00000000004c013a in PyFunction_SetClosure ()
#18 0x0000000000414490 in PyObject_Call ()
#19 0x000000000041afe7 in PyMethod_New ()
#20 0x0000000000414490 in PyObject_Call ()
#21 0x0000000000449b66 in _PyType_Lookup ()
#22 0x0000000000414490 in PyObject_Call ()
#23 0x0000000000475cf5 in PyEval_EvalFrame ()
#24 0x000000000047830f in PyEval_EvalCodeEx ()
#25 0x00000000004c013a in PyFunction_SetClosure ()
#26 0x0000000000414490 in PyObject_Call ()
#27 0x0000000000475732 in PyEval_EvalFrame ()
#28 0x000000000047830f in PyEval_EvalCodeEx ()
#29 0x00000000004c013a in PyFunction_SetClosure ()
#30 0x0000000000414490 in PyObject_Call ()
#31 0x000000000041afe7 in PyMethod_New ()
#32 0x0000000000414490 in PyObject_Call ()
#33 0x0000000000449b66 in _PyType_Lookup ()
---Type <return> to continue, or q <return> to quit---
#34 0x0000000000414490 in PyObject_Call ()
#35 0x0000000000475cf5 in PyEval_EvalFrame ()
#36 0x00000000004769c6 in PyEval_EvalFrame ()
#37 0x000000000047830f in PyEval_EvalCodeEx ()
#38 0x00000000004768ab in PyEval_EvalFrame ()
#39 0x000000000047830f in PyEval_EvalCodeEx ()
#40 0x00000000004768ab in PyEval_EvalFrame ()
#41 0x000000000047830f in PyEval_EvalCodeEx ()
#42 0x0000000000478422 in PyEval_EvalCode ()
#43 0x000000000049bd60 in PyRun_InteractiveOneFlags ()
#44 0x000000000049be64 in PyRun_InteractiveLoopFlags ()
#45 0x000000000049c55a in PyRun_AnyFileExFlags ()
#46 0x0000000000410a80 in Py_Main ()
#47 0x00002aef5cb210c4 in __libc_start_main () from /lib/libc.so.6
#48 0x000000000040ffba in _start ()
(gdb)

Cheers,

Tim

>
> -Travis
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list