[SciPy-dev] All tests in test_basic pass

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Oct 6 02:01:22 CDT 2005


Travis Oliphant wrote:
> Robert Kern wrote:
>
>> Travis Oliphant wrote:
>>  
>>
>>>
>>> With the new SVN, all tests in test_basic  pass.
>>>
>>> I think it's time for another beta release...
>>>   
>>
>> I'm getting a segfault if I try to evaluate something after I run the
>> test suite from the interpreter. E.g.
>>  
>>
> I can't reproduce this.   Darn..
>
> -Travis
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev

 If I run scipy.test(1,verbosity=10) several times I'm getting a segfault

check_matrix (scipy.base.twodim_base.test_twodim_base.test_diag) ...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076102528 (LWP 9144)]
PyObject_Malloc (nbytes=44) at Objects/obmalloc.c:605
605                             if ((pool->freeblock = *(block **)bp) !=
NULL) {
(gdb) bt
#0  PyObject_Malloc (nbytes=44) at Objects/obmalloc.c:605
#1  0x080a230b in PyType_GenericAlloc (type=0x4035fb40, nitems=0) at
Objects/typeobject.c:455
#2  0x4031ac73 in PyArray_New (subtype=0x4035fb40, nd=2, dims=0x82a29a8,
type_num=7, strides=0x0,
    data=0x82c06f0 "", itemsize=4, flags=1833, obj=0x406cddd0) at
arrayobject.c:3147
#3  0x4031c698 in PyArray_Newshape (self=0x406cddd0, newdims=0x0) at
scipy/base/src/multiarraymodule.c:272
#4  0x4031c746 in PyArray_Reshape (self=0x406cddd0, shape=0x4029252c) at
scipy/base/src/multiarraymodule.c:201
#5  0x403763b8 in ufunc_outer (self=0x4029e4e0, args=Variable "args" is
not available.
) at ufuncobject.c:2657
#6  0x0811d436 in PyCFunction_Call (func=0x405b6c8c, arg=0x4029248c,
kw=0x0) at Objects/methodobject.c:93
#7  0x080c66d9 in PyEval_EvalFrame (f=0x81d4c34) at Python/ceval.c:3547
#8  0x080c7312 in PyEval_EvalFrame (f=0x81c53c4) at Python/ceval.c:3629
#9  0x080c7312 in PyEval_EvalFrame (f=0x81c3cb4) at Python/ceval.c:3629
#10 0x080c7a54 in PyEval_EvalCodeEx (co=0x40408f60, globals=0x403dff0c,
locals=0x0, args=0x4041b618, argcount=2,
    kws=0x0, kwcount=0, defs=0x4040fd98, defcount=1, closure=0x0) at
Python/ceval.c:2730
#11 0x0811c682 in function_call (func=0x4040db8c, arg=0x4041b60c,
kw=0x0) at Objects/funcobject.c:550
#12 0x0805928e in PyObject_Call (func=0x4040db8c, arg=0x4041b60c,
kw=0x0) at Objects/abstract.c:1746
#13 0x08064b24 in instancemethod_call (func=0x55, arg=0x4061236c,
kw=0x0) at Objects/classobject.c:2431
#14 0x0805928e in PyObject_Call (func=0x405b575c, arg=0x4061236c,
kw=0x0) at Objects/abstract.c:1746
#15 0x08097557 in slot_tp_call (self=0x405f1e6c, args=0x4061236c,
kwds=0x0) at Objects/typeobject.c:4526
#16 0x0805928e in PyObject_Call (func=0x405f1e6c, arg=0x4061236c,
kw=0x0) at Objects/abstract.c:1746
#17 0x080c408d in PyEval_EvalFrame (f=0x81ba9cc) at Python/ceval.c:3755
#18 0x080c7a54 in PyEval_EvalCodeEx (co=0x4040c560, globals=0x403dff0c,
locals=0x0, args=0x4041b638, argcount=2,
    kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at
Python/ceval.c:2730
#19 0x0811c682 in function_call (func=0x4040df7c, arg=0x4041b62c,
kw=0x0) at Objects/funcobject.c:550
#20 0x0805928e in PyObject_Call (func=0x4040df7c, arg=0x4041b62c,
kw=0x0) at Objects/abstract.c:1746
#21 0x08064b24 in instancemethod_call (func=0x55, arg=0x405ba46c,
kw=0x0) at Objects/classobject.c:2431
#22 0x0805928e in PyObject_Call (func=0x403b80a4, arg=0x405ba46c,
kw=0x0) at Objects/abstract.c:1746
#23 0x08097557 in slot_tp_call (self=0x4041874c, args=0x405ba46c,
kwds=0x0) at Objects/typeobject.c:4526
#24 0x0805928e in PyObject_Call (func=0x4041874c, arg=0x405ba46c,
kw=0x0) at Objects/abstract.c:1746
#25 0x080c408d in PyEval_EvalFrame (f=0x817c21c) at Python/ceval.c:3755
#26 0x080c7312 in PyEval_EvalFrame (f=0x81938ec) at Python/ceval.c:3629
#27 0x080c7a54 in PyEval_EvalCodeEx (co=0x403e52e0, globals=0x403df68c,
locals=0x0, args=0x8196d48, argcount=2,
    kws=0x8196d50, kwcount=1, defs=0x40412558, defcount=2, closure=0x0)
at Python/ceval.c:2730
#28 0x080c52a8 in PyEval_EvalFrame (f=0x8196bfc) at Python/ceval.c:3639
#29 0x080c7a54 in PyEval_EvalCodeEx (co=0x405f8aa0, globals=0x40259824,
locals=0x40259824, args=0x0, argcount=0,
    kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at
Python/ceval.c:2730
#30 0x080c7c85 in PyEval_EvalCode (co=0x405f8aa0, globals=0x40259824,
locals=0x40259824) at Python/ceval.c:484
#31 0x080f67e6 in PyRun_InteractiveOneFlags (fp=0x40235720,
filename=0x8122a01 "<stdin>", flags=0xbfffe924)
    at Python/pythonrun.c:1264
#32 0x080f6a49 in PyRun_InteractiveLoopFlags (fp=0x40235720,
filename=0x8122a01 "<stdin>", flags=0xbfffe924)
    at Python/pythonrun.c:694
#33 0x080f6b70 in PyRun_AnyFileExFlags (fp=0x40235720,
filename=0x8122a01 "<stdin>", closeit=0, flags=0xbfffe924)
    at Python/pythonrun.c:657
---Type <return> to continue, or q <return> to quit---
#34 0x08055857 in Py_Main (argc=0, argv=0xbfffe9e4) at Modules/main.c:484
#35 0x08054f07 in main (argc=1, argv=0xbfffe9e4) at Modules/python.c:23

Nils





More information about the Scipy-dev mailing list