[asterisk-bugs] [Asterisk 0016062]: [patch] Asterisk crashes after "core stop gracefully"

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 9 01:43:42 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16062 
====================================================================== 
Reported By:                alexanderheinz
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16062
Category:                   General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-325 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 223910 
Request Review:              
====================================================================== 
Date Submitted:             2009-10-13 10:20 CDT
Last Modified:              2009-11-09 01:43 CST
====================================================================== 
Summary:                    [patch] Asterisk crashes after "core stop
gracefully"
Description: 
I have tried to compile and install Asterisk SVN on a fresh copy of Debian
stable. This system has 254728k of RAM and 746980k of swap (is this enough
to compile Asterisk? Are there any error messages, if the system runs into
memory problems?). Compilation process seems to run smoothly.

If I start asterisk and then try to quit it using "core stop gracefully",
there is a segmentation fault.

gdb info is attached.

====================================================================== 

---------------------------------------------------------------------- 
 (0113396) svnbot (reporter) - 2009-11-09 01:43
 https://issues.asterisk.org/view.php?id=16062#c113396 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 228798

U   trunk/addons/cdr_mysql.c
U   trunk/channels/chan_console.c
U   trunk/main/event.c
U   trunk/main/loader.c
U   trunk/res/res_pktccops.c

------------------------------------------------------------------------
r228798 | tilghman | 2009-11-09 01:43:40 -0600 (Mon, 09 Nov 2009) | 14
lines

Fix various problems detected with Valgrind.
 * chan_console accessed pvts after deallocation.
 * cdr_mysql stored a pointer that was freed by realloc()
 * The module loader did not check usecount on shutdown, which led to
chan_iax2
 reading a timer that was already unloaded.
 * The event subsystem sometimes creates an event with no IEs.  Due to a
corner
 condition, the code would read beyond the memory boundary.
 * res_pktccops did not correctly check whether its monitor thread was
started.
(closes issue https://issues.asterisk.org/view.php?id=16062)
 Reported by: alexanderheinz
 Patches: 
       20091109__issue16062.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=228798 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-09 01:43 svnbot         Checkin                                      
2009-11-09 01:43 svnbot         Note Added: 0113396                          
======================================================================




More information about the asterisk-bugs mailing list