[Numpy-discussion] crash at prompt exit after running test

Johann Cohen-Tanugi cohen@lpta.in2p3...
Tue Mar 9 13:50:15 CST 2010


I have tried to localize the core dump in vain.... any idea where I 
should look for it?
I did not manage to catch it with pdb :
[cohen@jarrett ~]$ .local/bin/ipython
Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45)
Type "copyright", "credits" or "license" for more information.

IPython 0.11.alpha1.bzr.r1223 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import pdb

In [2]: pdb.set_trace()
--Call--
 > /home/cohen/sources/python/ipython/IPython/core/prompts.py(525)__call__()
-> def __call__(self,arg=None):
(Pdb) import numpy
(Pdb) numpy.test()
<clip>
Ran 2892 tests in 35.888s

OK (KNOWNFAIL=4, SKIP=6)
<nose.result.TextTestResult run=2892 errors=0 failures=0>
(Pdb) exit()
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (137, 0))

---------------------------------------------------------------------------
BdbQuit                                   Traceback (most recent call last)

/home/cohen/<ipython console> in <module>()

/home/cohen/sources/python/ipython/IPython/core/prompts.pyc in 
__call__(self, arg)
     523         self.prompt_out.set_colors()
     524
--> 525     def __call__(self,arg=None):
     526         """Printing with history cache management.
     527

/usr/lib/python2.6/bdb.pyc in trace_dispatch(self, frame, event, arg)
      46             return self.dispatch_line(frame)
      47         if event == 'call':
---> 48             return self.dispatch_call(frame, arg)
      49         if event == 'return':
      50             return self.dispatch_return(frame, arg)

/usr/lib/python2.6/bdb.pyc in dispatch_call(self, frame, arg)
      76             return # None
      77         self.user_call(frame, arg)
---> 78         if self.quitting: raise BdbQuit
      79         return self.trace_dispatch
      80

BdbQuit:

In [3]:
Do you really want to exit ([y]/n)?
python: Modules/gcmodule.c:277: visit_decref: Assertion `gc->gc.gc_refs 
!= 0' failed.
Aborted (core dumped)


Note that I have several warnings during test():
Warning: divide by zero encountered in power
Warning: divide by zero encountered in power
Warning: divide by zero encountered in power
...............................................................................Warning: 
invalid value encountered in sqrt
..Warning: invalid value encountered in sqrt
etc....
I dont think it is related though....

Johann

On 03/09/2010 08:35 PM, Robert Kern wrote:
> On Tue, Mar 9, 2010 at 13:30, Johann Cohen-Tanugi<cohen@lpta.in2p3.fr>  wrote:
>    
>> hi there,
>> I just installed the current head of numpy and built it. trying
>> python and then import numpy, and then CTRL-D to exit, all goes well.
>> But doing the same with a numpy.test() before CTRL-D ends up in :
>> <clip>
>> Ran 2892 tests in 35.814s
>>
>> OK (KNOWNFAIL=4, SKIP=6)
>> <nose.result.TextTestResult run=2892 errors=0 failures=0>
>>   >>>
>> python: Modules/gcmodule.c:277: visit_decref: Assertion `gc->gc.gc_refs
>> != 0' failed.
>> Aborted (core dumped)
>>
>> Does that ring a bell to any of you?
>>      
> Nope! Can you show us a gdb backtrace of the crash?
>
>    


More information about the NumPy-Discussion mailing list