Donate Share

X-Chat

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Tracker: Bugs

3 Deadlock when python script has hook_print on DCC Chat Abort - ID: 772596
Last Update: Settings changed ( zed )

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.


caolan mcnamara ( caolan ) - 2003-07-16 20:47

3

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 4 )




Date: 2003-09-06 12:10
Sender: zedProject Admin

Logged In: YES
user_id=5012

The perl plugin doesn't use any threads or locking, so I
doubt it's affected.
It looks like the python plugin has been orphaned.



Date: 2003-09-05 16:57
Sender: caolan

Logged In: YES
user_id=48034

No change I'm afraid. I wonder if the same type of deadlock
affects the perl binding, or if it is a pecularity of the
python plugin.


Date: 2003-08-01 09:39
Sender: zedProject Admin

Logged In: YES
user_id=5012

Does this problem persist in 2.0.4?



Date: 2003-07-17 17:09
Sender: zedProject Admin

Logged In: YES
user_id=5012

The Python-plugin author is:
Gustavo Niemeyer <niemeyer@conectiva.com>
I don't think he reads bugs here.



Log in to comment.




Attached Files ( 2 )

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

Changes ( 6 )

Field Old Value Date By
status_id Open 2003-11-29 12:58 zed
close_date - 2003-11-29 12:58 zed
resolution_id None 2003-11-12 11:55 zed
priority 5 2003-07-16 20:49 caolan
File Added 56007: backtrace 2003-07-16 20:49 caolan
File Added 56006: xchat.py 2003-07-16 20:47 caolan