Deadlock when python script has a hook_print on "DCC
Chat Abort" and then uses xchat.command('DCC CLOSE CHAT
foo')
The attached backtrace log can be reproduced with the
attached small but functional python script in xchat
2.0.3 under linux.
When a dcc chat is open with nick and the script loaded
then
using /dccclose nick will call command "DCC CLOSE CHAT"
on nick, the problem is that the dcc abort is processed
and the script's hook on DCC CHAT Abort is called while
the DCC CLOSE command is still being processed so there
is a lock due to command while another attempt to get
the lock is made for the DCC CHAT Abort processing
causing a deadlock and hang.
Nobody/Anonymous
None
None
Public
|
Date: 2003-09-06 12:10 Logged In: YES |
|
Date: 2003-09-05 16:57 Logged In: YES |
|
Date: 2003-08-01 09:39 Logged In: YES |
|
Date: 2003-07-17 17:09 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| xchat.py | sample script that shows the deadlock | Download |
| backtrace | backtrace on break showing attempt to gain lock while already inside python script processing | Download |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use