Summary:ASTERISK-14275: [patch] Asterisk crashes randomly
Reporter:Gregory Massel (gmza)Labels:
Date Opened:2009-06-06 09:35:18Date Closed:2009-06-26 15:51:12
Versions:Frequency of
Environment:Attachments:( 0) gdb.txt
( 1) gdb1.txt
( 2) iax_fix.diff
( 3) iax.conf
Description:Since upgrading from Asterisk to, Asterisk crashes randomly within approximately 30 minutes of starting up.

Nothing is logged to "full", "messages" or the console.

When logged into the console with verbosity 9 as this happens, all I see is:

Disconnected from Asterisk server
Executing last minute cleanups


This is running on Ubuntu Hardy, kernel 2.6.24-24-server, i686 (32-bit).

I have assumed that this is chan_iax2 related as that appears to be the only thing that has changed from to

This problem is reproducable -- simply by restarting Asterisk and waiting for ~30 to 60 minutes. Unfortunately, it is extremely difficult to obtain any information on the cause as nothing is logged.

I do NOT experience the same issue on a similar server that was upgraded from 1.4.25 to at the same time.
Comments:By: Gregory Massel (gmza) 2009-06-06 09:38:20

Further to the above, I've upgraded another system to Asterisk and it is stable, however, that system has no IAX2 peers.

By: Sean Bright (seanbright) 2009-06-06 09:48:29

Thank you for your bug report. In order to move your issue forward, we require a backtrace from the core file produced after the crash. Please see the doc/backtrace.txt file in your Asterisk source directory.

Also, be sure you have DONT_OPTIMIZE enabled in menuselect within the Compiler Flags section, then \'make install\' after enabling, reproduce the crash, and then execute the instructions in doc/backtrace.txt.

When complete, attach that file to this issue report. Thanks!

By: Gregory Massel (gmza) 2009-06-06 15:04:33

I've replicated this problem twice and attached the backtraces from each occassion.

By: Sean Bright (seanbright) 2009-06-06 15:20:00

Could you upload your iax.conf with any sensitive information (usernames, passwords and hostnames) masked out?  I'd like to try and reproduce this locally.

By: Gregory Massel (gmza) 2009-06-06 16:15:12

uploaded iax.conf

By: David Vossel (dvossel) 2009-06-26 15:51:11

use the patch I uploaded to fix this.  It has already been fixed in the 1.6.0 svn branch.