[Home]

Summary:ASTERISK-13676: [patch] unloading chan_iax2.so segfaults asterisk
Reporter:Alec Davis (alecdavis)Labels:
Date Opened:2009-03-02 01:16:43.000-0600Date Closed:2009-03-02 08:29:24.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) gdb.txt
( 1) gdb2.txt
( 2) valgrind.txt
Description:Normally I wouldn't have done this during the production day, but I did!

Immediately after 'module unload chan_iax2.so' is execute at the console, Asterisk segfaults.

backtrace attached, after recompile with 'DON'T OPTIMIZE' enabled.


****** ADDITIONAL INFORMATION ******

*CLI> core show version
Asterisk SVN-trunk-r178446M built by root @ astrid on a i686 running Linux on 2009-03-02 06:54:06 UTC
*CLI> module unload chan_iax2.so
 == Unregistered custom function IAXPEER
 == Unregistered custom function IAXVAR
 == Manager unregistered action IAXpeers
 == Manager unregistered action IAXpeerlist
 == Manager unregistered action IAXnetstats
 == Manager unregistered action IAXregistry
 == Unregistered application 'IAX2Provision'
 == Unregistered channel type 'IAX2'
Segmentation fault (core dumped)
astrid:/home/alec/bt#
Comments:By: Alec Davis (alecdavis) 2009-03-02 01:41:26.000-0600

please remove gdb.txt

make menuselect with 'enable MALLOC_DEBUG' and 'DONT_OPTIMIZE'
make
make install

valgrind --version
valgrind-3.3.1-Debian

ran 'valgrind --log-file=valgrind.txt asterisk -vvvvcg 2>malloc_debug.txt'

uploaded valgrind.txt

was unable to upload valgrind.txt.core.22641.gz size is 7780583, after waiting several minutes web site reported file is to large for this PHP site.

malloc_debug.txt was 0 bytes long so didn't upload.



By: Alec Davis (alecdavis) 2009-03-02 02:26:50.000-0600

Version of chan_iax2.c reported on was 178300.

Just tried latest chan_iax2.c 178871, same result, segfault.

By: Digium Subversion (svnbot) 2009-03-02 08:28:25.000-0600

Repository: asterisk
Revision: 179323

U   trunk/channels/chan_iax2.c

------------------------------------------------------------------------
r179323 | file | 2009-03-02 08:28:25 -0600 (Mon, 02 Mar 2009) | 5 lines

Do not try to remove a registration scheduled item if the scheduler context has already been destroyed.

(closes issue ASTERISK-13676)
Reported by: alecdavis

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

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

By: Digium Subversion (svnbot) 2009-03-02 08:28:56.000-0600

Repository: asterisk
Revision: 179324

_U  branches/1.6.0/

------------------------------------------------------------------------
r179324 | file | 2009-03-02 08:28:56 -0600 (Mon, 02 Mar 2009) | 11 lines

Blocked revisions 179323 via svnmerge

........
 r179323 | file | 2009-03-02 10:28:09 -0400 (Mon, 02 Mar 2009) | 5 lines
 
 Do not try to remove a registration scheduled item if the scheduler context has already been destroyed.
 
 (closes issue ASTERISK-13676)
 Reported by: alecdavis
........

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

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

By: Digium Subversion (svnbot) 2009-03-02 08:29:23.000-0600

Repository: asterisk
Revision: 179325

_U  branches/1.6.1/

------------------------------------------------------------------------
r179325 | file | 2009-03-02 08:29:23 -0600 (Mon, 02 Mar 2009) | 11 lines

Blocked revisions 179323 via svnmerge

........
 r179323 | file | 2009-03-02 10:28:09 -0400 (Mon, 02 Mar 2009) | 5 lines
 
 Do not try to remove a registration scheduled item if the scheduler context has already been destroyed.
 
 (closes issue ASTERISK-13676)
 Reported by: alecdavis
........

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

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