<br><br><div class="gmail_quote">On Wed, Mar 10, 2010 at 10:39 AM, Bruce Southey <span dir="ltr"><<a href="mailto:bsouthey@gmail.com">bsouthey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On 03/10/2010 08:59 AM, Pauli Virtanen wrote:<br>
> Wed, 10 Mar 2010 15:40:04 +0100, Johann Cohen-Tanugi wrote:<br>
><br>
>> Pauli, isn't it hopeless to follow the execution of the source code when<br>
>> the crash actually occurs when I exit, and not when I execute. I would<br>
>> have to understand enough of this umath_tests.c.src to spot a refcount<br>
>> error or things like that????<br>
>><br>
> Yeah, it's not easy, and requires knowing how to track this type of<br>
> errors. I didn't actually mean that you should try do it, just posed it<br>
> as a general challenge to all interested parties :)<br>
><br>
> On a more serious note, maybe there's a compilation flag or something in<br>
> Python that warns when refcounts go negative (or something).<br>
><br>
> Cheers,<br>
> Pauli<br>
><br>
> _______________________________________________<br>
> NumPy-Discussion mailing list<br>
> <a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
><br>
</div></div>Hi,<br>
I think I managed to find this. I reverted back my svn versions ($svn<br>
update -r 8262) and cleaned both the build and installation directories.<br>
<br>
It occurred with changeset 8262 (earlier changesets appear okay but<br>
later ones do not)<br>
<a href="http://projects.scipy.org/numpy/changeset/8262" target="_blank">http://projects.scipy.org/numpy/changeset/8262</a><br>
<br>
Specifically in the file:<br>
numpy/core/code_generators/generate_ufunc_api.py<br>
<br>
There is an extra call to that should have been deleted on line 54(?).<br>
Py_DECREF(numpy);<br>
<br>
Attached a patch to ticket 1425<br>
<div class="im"><a href="http://projects.scipy.org/numpy/ticket/1425" target="_blank">http://projects.scipy.org/numpy/ticket/1425</a><br>
<br></div></blockquote><div><br>Look like my bad. I'm out of town at the moment so someone else needs to apply the patch. That whole bit of code could probably use a daylight audit.<br><br>Chuck <br></div><br></div>