[asterisk-bugs] [Asterisk 0018310]: [patch] hint state changes deadlock/race
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Jan 6 13:06:15 UTC 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18310
======================================================================
Reported By: one47
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18310
Category: Core/PBX
Reproducibility: always
Severity: major
Priority: normal
Status: ready for testing
Asterisk Version: 1.6.2.14
JIRA: SWP-2541
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-11-15 12:19 CST
Last Modified: 2011-01-06 07:06 CST
======================================================================
Summary: [patch] hint state changes deadlock/race
Description:
VERY similar to https://issues.asterisk.org/view.php?id=18165, but this is a
different deadlock path, so I have
raised a separate report.
Thread 1: taskprocessor -> handle_statechange
Lock order = conlock, hints, hint, pvt
Thread 2: chan_sip.c: handle_request_do -> handle_response_notify
Lock order = pvt, conlock
Thread2 only gets into the conlock if STATECHANGEQUEUE is true, ie. there
are rapid state changes happening on a subscribed hint.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0018165 [patch] hint state changes deadlock pro...
has duplicate 0018535 app_queue deadlocks if weight is set
======================================================================
----------------------------------------------------------------------
(0130252) one47 (reporter) - 2011-01-06 07:06
https://issues.asterisk.org/view.php?id=18310#c130252
----------------------------------------------------------------------
I am seeing some kind of corruption with the newer patch - I have not yet
identified the source, but it seems that the CallBack data that is passed
into chan_sip.c:cb_extensionstate() is not a sip_pvt*
The result is:
[Jan 6 12:41:37] ERROR[11547]:
/usr/src/asterisk-1.6.2.15/include/asterisk/lock.h:619
__ast_pthread_mutex_lock: chan_sip.c line 13045 (cb_extensionstate): Error
obtaining mutex: Invalid argument
Program received signal SIGSEGV, Segmentation fault.
I am still looking for any obvious reason for this. Not found it yet.
Issue History
Date Modified Username Field Change
======================================================================
2011-01-06 07:06 one47 Note Added: 0130252
======================================================================
More information about the asterisk-bugs
mailing list