[ python-Bugs-993394 ] test_dummy_threading vs -O

SourceForge.net noreply at sourceforge.net
Sun Jul 18 20:31:29 CEST 2004


Bugs item #993394, was opened at 2004-07-18 14:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=993394&group_id=5470

Category: Threads
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Brett Cannon (bcannon)
Summary: test_dummy_threading vs -O

Initial Comment:
In Python 2.4, running test_dummy_threading with -O 
leads to an exception after the test is finished, in 
threading's exit func.  Didn't happen under 2.3.  Sorry, 
no idea why, and as soon as I saw all the fiddling with 
sys.modules I ran screaming in terror <wink>.  Here on 
WinXP:

C:\Python23>python lib/test/regrtest.py 
test_dummy_threading # OK
test_dummy_threading
1 test OK.

C:\Python23>python -O lib/test/regrtest.py 
test_dummy_threading # OK
test_dummy_threading
1 test OK.

C:\Python23>cd \python24

C:\Python24>python lib/test/regrtest.py 
test_dummy_threading # OK
test_dummy_threading
1 test OK.

C:\Python24>python -O lib/test/regrtest.py 
test_dummy_threading # not OK
test_dummy_threading
1 test OK.
Error in sys.exitfunc:
Traceback (most recent call last):
  File "C:\Python24\lib\atexit.py", line 20, in 
_run_exitfuncs
    func(*targs, **kargs)
  File "C:\Python24\lib\threading.py", line 607, in 
__exitfunc
    self._Thread__delete()
  File "C:\Python24\lib\threading.py", line 497, in __delete
    del _active[_get_ident()]
KeyError: -1

C:\Python24>

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=993394&group_id=5470


More information about the Python-bugs-list mailing list