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

Bruce Southey bsouthey@gmail....
Wed Mar 10 10:39:42 CST 2010


On 03/10/2010 08:59 AM, Pauli Virtanen wrote:
> Wed, 10 Mar 2010 15:40:04 +0100, Johann Cohen-Tanugi wrote:
>    
>> Pauli, isn't it hopeless to follow the execution of the source code when
>> the crash actually occurs when I exit, and not when I execute. I would
>> have to understand enough of this umath_tests.c.src to spot a refcount
>> error or things like that????
>>      
> Yeah, it's not easy, and requires knowing how to track this type of
> errors. I didn't actually mean that you should try do it, just posed it
> as a general challenge to all interested parties :)
>
> On a more serious note, maybe there's a compilation flag or something in
> Python that warns when refcounts go negative (or something).
>
> Cheers,
> Pauli
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>    
Hi,
I think I managed to find this. I reverted back my svn versions ($svn 
update -r 8262) and cleaned both the build and installation directories.

It occurred with changeset 8262 (earlier changesets appear okay but 
later ones do not)
http://projects.scipy.org/numpy/changeset/8262

Specifically in the file:
numpy/core/code_generators/generate_ufunc_api.py

There is an extra call to that should have been deleted on line 54(?).
Py_DECREF(numpy);

Attached a patch to ticket 1425
http://projects.scipy.org/numpy/ticket/1425


Bruce


More information about the NumPy-Discussion mailing list