Opened 19 years ago

Last modified 18 years ago

#698 closed defect

Exceptions thrown after CONTROL-C typed to stop test web server. — at Version 2

Reported by: Tekhne Owned by: Adrian Holovaty
Component: Core (Management commands) Version:
Severity: normal Keywords:
Cc: pete.crosier@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Jacob)

I received the following exceptions after attempting to stop the built-in test server with CONTROL-C:

shell> django-admin.py runserver
Validating models...
0 errors found.

Starting server on port 8000 with settings module 'myproject.settings'.
Go to http://127.0.0.1:8000/ for Django.
Quit the server with CONTROL-C (Unix) or CTRL-BREAK (Windows).
[26/Oct/2005 09:43:53] "GET /admin/ HTTP/1.1" 200 1615
[26/Oct/2005 09:44:00] "POST /admin/ HTTP/1.1" 302 0
[26/Oct/2005 09:44:00] "GET /admin/ HTTP/1.1" 200 5899
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/local/python-2.4.1/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/local/python-2.4.1/lib/python2.4/threading.py", line 636, in __exitfunc
    self._Thread__delete()
  File "/usr/local/python-2.4.1/lib/python2.4/threading.py", line 522, in __delete
    del _active[_get_ident()]
KeyError: 1076103392
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/local/python-2.4.1/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/local/python-2.4.1/lib/python2.4/threading.py", line 636, in __exitfunc
    self._Thread__delete()
  File "/usr/local/python-2.4.1/lib/python2.4/threading.py", line 522, in __delete
    del _active[_get_ident()]
KeyError: 1076103392

Change History (2)

comment:1 by Adrian Holovaty, 19 years ago

Yeah, this happens sometimes; it has to do with the auto-reloading of code. It doesn't really cause any problems other than ugliness (and scariness), but I'd love to see a patch that fixes the problem.

comment:2 by Jacob, 18 years ago

Description: modified (diff)

(fixed formatting)

Note: See TracTickets for help on using tickets.
Back to Top