More intel about the bug "Reference count error detected"

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

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@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
participants (1)
-
Matthieu Brucher