[Numpy-discussion] More intel about the bug "Reference count error detected"

Matthieu Brucher matthieu.brucher at gmail.com
Tue Oct 30 04:46:45 EDT 2007


Hi again,

I'm trying to debug what is going on, but I do not know much about the
universal functions. I'm trying to understand what PyUFunc_GenericFunction()
does and what the parameters should be.
Perhaps I should move to the numpy development list ?

Matthieu

2007/10/29, Matthieu Brucher <matthieu.brucher at gmail.com>:
>
> Hi,
>
> Instead of using : xp = (x-self.loc) * (1/self.scale)
> I've decided to use : xp = (x-self.loc) / self.scale
>
> and by some miracle, the bug does not show up in almost all tests.
> Before this bug, the program seems to be hung in a DOUBLE_substract
> function() for quite some time (umathmodule.c file). Perhaps it is this
> function that triggers to many references or dereferencing them too much ?
> If someone wants to take a look, I may be able to wrap what is needed in a
> single (but big) file.
>
> Matthieu
> --
> French PhD student
> Website : http://miles.developpez.com/
> Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92




-- 
French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20071030/f571a31d/attachment.html>


More information about the NumPy-Discussion mailing list