[asterisk-bugs] [Asterisk 0011275]: On certain deadlocks, running core show locks segfaults asterisk and yields no lock info

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Nov 28 15:51:40 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11275 
====================================================================== 
Reported By:                xmarksthespot
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11275
Category:                   Core-General
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 85316 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-16-2007 15:23 CST
Last Modified:              11-28-2007 15:51 CST
====================================================================== 
Summary:                    On certain deadlocks, running core show locks
segfaults asterisk and yields no lock info
Description: 
My machine occasionally deadlocks. Upon deadlocks I usually run "core show
locks" to be able to report bugs with the adequate info concerning
deadlocks.

However, upon this particular deadlock, the cause of which I have no idea,
running "core show locks" at the CLI will segfault asterisk. As it
segfaults, the output form core show locks is also incomplete, preventing
the possibility of finding out info about the deadlock.

This deadlock I am after happens quite often, and running core show locks
when asterisk is deadlocked ALWAYS results in a segfault.

However, when I was stuck with other deadlocks, core show locks worked
perfectly. Since this recent new deadlock appeared, the core show locks
function systematically segfaults asterisk.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0011334 core show locks crush
====================================================================== 

---------------------------------------------------------------------- 
 xmarksthespot - 11-28-07 15:51  
---------------------------------------------------------------------- 
Applying the patch, I noticed one thing: It doesn't compile at first. No
big deal, at line 716 you seem to have forgotten a reference to str, I
commented it out and it built perfectly.

I tried core show locks, and it doesn't segfault right away.

Now I have to wait for the crash to occur, and run core show locks.

In the meantime I also updated to SVN rev 89999. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-28-07 15:51  xmarksthespot  Note Added: 0074519                          
======================================================================




More information about the asterisk-bugs mailing list