#14533: django signals not thread-safe
-------------------------------------+--------------------------------------
Reporter: milosu | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: 1.2
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Changes (by milosu):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
attached test case should crash some threads with the following exception:
{{{
Exception in thread Thread-99:
Traceback (most recent call last):
File "c:\Python26\lib\threading.py", line 532, in __bootstrap_inner
self.run()
File "signal_ts.py", line 25, in run
signals.post_delete.disconnect(self.handler2, sender=None)
File "c:\Python26\lib\site-
packages\django_versions\trunk\django\dispatch\dispatcher.py", line 141,
in disconnect
del self.receivers[index]
IndexError: list assignment index out of range
}}}
attached patch solves this problem for me and passes django test suite
--
Ticket URL: <http://code.djangoproject.com/ticket/14533#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.