Thread problems

Aahz aahz at pythoncraft.com
Wed May 7 19:33:50 EDT 2003


In article <b9c2d1$j7a$1 at pegasus.csx.cam.ac.uk>,
Tomek  <rtomek at hotmail.com> wrote:
>
>I am running program called aria, fully written in python, under Python 
>2.2.2 on Redhat 9.0 on dual P4 2.4 GHz.
>
>The program has a nasty bug, whereby calling a .start() method of a
>Thread subclass does not execute the run() method every single time (as
>it is specified by the python api). The failure rate on my computer to
>execute the run() is of around 10%. Interestingly, the program failes
>to run the method at different points every single time even though I
>give it the same input.  I looked at the source code of the program,
>but the class that inherits Thread looks very normal with only run()
>method overloaded.

How do you know the run() method isn't getting called?  If you are
accurate about that, it pretty much has to be a gcc or RH9 bug; try
running your program with a different OS/compiler combo (or at least
recompile with optiizations turned off).
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles:  boring syntax, unsurprising semantics,
few automatic coercions, etc etc.  But that's one of the things I like
about it."  --Tim Peters on Python, 16 Sep 93




More information about the Python-list mailing list