[Python-Dev] threading bug?

Thomas Heller thomas.heller@ion-tof.com
Fri, 5 Oct 2001 21:34:14 +0200


From: "Tim Peters" <tim.one@home.com>
> [Thomas Heller]
> > Unhandled exception in thread:
> > Traceback (most recent call last):
> >   File "c:\python21\lib\threading.py", line 393, in __bootstrap
> >     self.__stop()
> >   File "c:\python21\lib\threading.py", line 399, in __stop
> >     self.__block.notifyAll()
> >   File "c:\python21\lib\threading.py", line 235, in notifyAll
> >     self.notify(len(self.__waiters))
> >   File "c:\python21\lib\threading.py", line 217, in notify
> >     me = currentThread()
> > TypeError: object of type 'None' is not callable
> >
> > This traceback does not appear when I register an atexit
> > function to stop the thread.
> 
> We're missing basic info, like which OS and which Python release.  More than
> one shutdown race has been fixed over the decades <wink>.
> 
> I've seen reports of this before, but under older Pythons, and/or in
> conjunction with running GUIs where the problem went away if the GUI was
> taken out of the equation.  AFAIK, nobody ever stuck with it long enough to
> track down the real cause, though.
Here's the short info (I can provide everything to produce this,
but not today).
ActiveState's Python 2.1.1, running under Win2k SP1.
Haven't tried in other Python versions.
No gui involved.
The thread basically calls os.stat, not sure if it also calls reload().

Later,

Thomas