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

Johann Cohen-Tanugi cohen@lpta.in2p3...
Tue Mar 9 17:43:39 CST 2010



On 03/10/2010 12:33 AM, Johann Cohen-Tanugi wrote:
>
>
> On 03/10/2010 12:07 AM, Pauli Virtanen wrote:
>> ti, 2010-03-09 kello 21:14 +0100, Johann Cohen-Tanugi kirjoitti:
>>    
>>> thinking about it, this morning there was a fedora update to python, so
>>> I am using 2.6.2-4.fc12.
>>> Looks like the problem is in python itself, hence this piece of info.
>>>      
>> That the problem would be in Python is not so clear to me. Can you try
>> running it with the previous Python shipped by Fedora? Do you see the
>> problem then? What's the previous version, btw?
>>    
> 2.6.2-1 IIRC. I would have to check, and I am not sure how to either 
> query this information or step back one update up with yum :(
>> Memory errors are somewhat difficult to debug. Can you try running only
>> a certain subset of the tests, first
>>
>> 	nosetests numpy.core
>>    
> crash
>> Be sure to set Pythonpath so that you get the correct Numpy version. If
>> it segfaults, proceed to (under numpy/core/tests)
>>
>> 	nosetests test_multiarray.py
>> 	nosetests test_multiarray.py:TestNewBufferProtocol
>>    
> neither crash, so the problem is not there....
I followed your lead and tried each script and ended up with :
[cohen@jarrett tests]$ nosetests test_ufunc.py
.............
----------------------------------------------------------------------
Ran 13 tests in 1.146s

OK
python: Modules/gcmodule.c:277: visit_decref: Assertion `gc->gc.gc_refs 
!= 0' failed.
Aborted (core dumped)

so test_ufunc.py seems to be at stake

>> Since the crash occurs in cyclic garbage collection, I'm doubting a bit
>> the numpy/core/src/multiarray/numpymemoryview.c implementation, since
>> that's the only part in Numpy that supports that.
>>
>> Alternatively, just replace numpymemoryview.c with the attached one
>> which has cyclic GC stripped, and see if you still get the crash.
>>
>> Cheers,
>> Pauli
>>
>>
>>    
>>
>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion@scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>    
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100310/ea296b50/attachment-0001.html 


More information about the NumPy-Discussion mailing list