[asterisk-bugs] [Asterisk 0015192]: segfault in local_devicestate() in chan_local.c

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 28 15:17:22 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15192 
====================================================================== 
Reported By:                caspy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15192
Category:                   Channels/chan_local
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0.6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-26 05:53 CDT
Last Modified:              2009-05-28 15:17 CDT
====================================================================== 
Summary:                    segfault in local_devicestate() in chan_local.c
Description: 
Asterisk crashes randomly:
(gdb) bt full
https://issues.asterisk.org/view.php?id=0  0xb7c95e1a in strcmp () from
/lib/i686/cmov/libc.so.6
No symbol table info available.
https://issues.asterisk.org/view.php?id=1  0xb7291599 in local_devicestate
(data=0xb7a52286) at chan_local.c:150
	exten = 0xb7a52200 "1181"
	context = 0xb7a52205 "toagent"
	opts = 0x0
	res = 1
	lp = (struct local_pvt *) 0x558
	__PRETTY_FUNCTION__ = "local_devicestate"


complete backtraces in attaches
====================================================================== 

---------------------------------------------------------------------- 
 (0105679) caspy (reporter) - 2009-05-28 15:17
 https://issues.asterisk.org/view.php?id=15192#c105679 
---------------------------------------------------------------------- 
vanilla 1.6.0.9 w/DONT_OPTIMIZE,DEBUG_TREADS,MALLOC_DEBUG just after a few
minutes generated this messages:

[May 29 00:03:51] ERROR[27817]:
/usr/home/caspy/compile/asterisk-1.6.0.9/include/asterisk/lock.h:549
__ast_pthread_mutex_unlock: chan_local.c line 596 (local_hangup): Error
releasing mutex: Invalid argument
[May 29 00:05:11] ERROR[27864]:
/usr/home/caspy/compile/asterisk-1.6.0.9/include/asterisk/lock.h:549
__ast_pthread_mutex_unlock: chan_local.c line 596 (local_hangup): Error
releasing mutex: Invalid argument


i'm more than sure, it will die shortly. 
and i forget to mention, that in case of compiled in DEBUG_TREADS segfault
is happens in DEBUG_THREADS's code. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-28 15:17 caspy          Note Added: 0105679                          
======================================================================




More information about the asterisk-bugs mailing list