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

Johann Cohen-Tanugi cohen@lpta.in2p3...
Wed Mar 10 03:28:07 CST 2010



On 03/10/2010 01:55 AM, Pauli Virtanen wrote:
>> more fun :
>> [cohen@jarrett tests]$ pwd
>> /home/cohen/sources/python/numpy/numpy/core/tests
>> [cohen@jarrett tests]$ python -c 'import test_ufunc'
>> python: Modules/gcmodule.c:277: visit_decref: Assertion `gc->gc.gc_refs
>> != 0' failed.
>> Aborted (core dumped)
>>      
> What happens if you only import the umath_tests module (or something, it's a .so under numpy.core)?
>    
[cohen@jarrett core]$ export 
PYTHONPATH=/home/cohen/.local/lib/python2.6/site-packages/numpy/core:$PYTHONPATH
[cohen@jarrett core]$ python
Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45)
[GCC 4.4.2 20091222 (Red Hat 4.4.2-20)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import umath_tests
 >>>
python: Modules/gcmodule.c:277: visit_decref: Assertion `gc->gc.gc_refs 
!= 0' failed.
Aborted (core dumped)

so this import also trigger the crash at exit...

> Just importing test_ufunc.py probably doesn't run a lot of extension code. Since you don't get crashes only by importing numpy, I really don't see many alternatives any more...
>
> Thanks,
> Pauli
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>    


More information about the NumPy-Discussion mailing list