[Home]

Summary:ASTERISK-15766: Asterisk segmentation fault
Reporter:emre (mrkrnz)Labels:
Date Opened:2010-03-08 07:48:52.000-0600Date Closed:2011-06-07 14:00:21
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Registration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) gdb-bt.txt
( 1) gdb-bt_full.txt
( 2) gdb-thread_apply_all_bt.txt
Description:Asterisk gives segmentation fault report and automatically restart itself randomly in time. I am not sure what is point of crash. I use asterisk only as a SIP server.

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

I am using XEN para-virtualization with the last RedHat Enterprise Linux kernel: 2.6.18-164.11.1.el5xen and the digium yum repository for the installation and sip realtime (database mysql connecting by odbc).
Comments:By: emre (mrkrnz) 2010-03-08 08:24:57.000-0600

the last lines of the asterisk full log before restarting asterisk itself.

[2010-03-08 12:42:32] DEBUG[28604] chan_sip.c: Auto destroying SIP dialog 'YzI3MTYzZGNmNDUxZDJhNjc3Y2FjNjY2ODQ4MmU4OWU.'
[2010-03-08 12:42:32] DEBUG[28604] chan_sip.c: Destroying SIP dialog YzI3MTYzZGNmNDUxZDJhNjc3Y2FjNjY2ODQ4MmU4OWU.
[2010-03-08 12:42:36] DEBUG[28604] chan_sip.c: Auto destroying SIP dialog 'MjNjY2M0NTc2YzM1YzI0OTc2ZjhlMDM0MTBhYmVlZjk.'
[2010-03-08 12:42:36] DEBUG[28604] chan_sip.c: Destroying SIP dialog MjNjY2M0NTc2YzM1YzI0OTc2ZjhlMDM0MTBhYmVlZjk.
[2010-03-08 12:42:40] DEBUG[28604] chan_sip.c: Auto destroying SIP dialog 'MjczMzE3YmJjNTRiMWNjYzc4MWEyZmYyZDRmMGY2YWM.'
[2010-03-08 12:42:40] DEBUG[28604] chan_sip.c: Destroying SIP dialog MjczMzE3YmJjNTRiMWNjYzc4MWEyZmYyZDRmMGY2YWM.
[2010-03-08 12:42:42] DEBUG[28604] acl.c: Found IP address for this socket
[2010-03-08 12:42:42] DEBUG[28604] chan_sip.c: Setting SIP_TRANSPORT_UDP with address XX.XX.XX.XX:5060
[2010-03-08 12:42:42] DEBUG[28604] chan_sip.c: Allocating new SIP dialog for OTY3YTQzYTM3Njc2ZjdjNGM0MjdmZTIzZTk4ZGU4ZjU. - REGISTER (No RTP)
[2010-03-08 12:42:42] DEBUG[28604] chan_sip.c: Trying to put 'SIP/2.0 401' onto UDP socket destined for YY.YY.YY.YY:PORT
[2010-03-08 12:42:43] DEBUG[28604] chan_sip.c: Trying to put 'SIP/2.0 200' onto UDP socket destined for YY.YY.YY.YY:PORT
[2010-03-08 12:42:43] DEBUG[28604] devicestate.c: Notification of state change to be queued on device/channel SIP/eozturk
[2010-03-08 12:42:43] DEBUG[28595] chan_sip.c: Checking device state for peer eozturk
[2010-03-08 12:42:43] DEBUG[28595] devicestate.c: Changing state for SIP/eozturk - state 1 (Not in use)
[2010-03-08 12:42:44] DEBUG[28604] devicestate.c: Notification of state change to be queued on device/channel SIP/karadas
[2010-03-08 12:42:44] DEBUG[28595] chan_sip.c: Checking device state for peer karadas
[2010-03-08 12:42:44] DEBUG[28595] devicestate.c: Changing state for SIP/karadas - state 1 (Not in use)
[2010-03-08 12:42:44] DEBUG[28604] chan_sip.c: -REALTIME- peer expired registration. Name: karadas. Realtime peer objects now -17
[2010-03-08 12:42:48] VERBOSE[28860] logger.c:  Asterisk Event Logger Started /var/log/asterisk/event_log
[2010-03-08 12:42:48] VERBOSE[28860] logger.c:  Asterisk Dynamic Loader Starting:
[2010-03-08 12:42:48] VERBOSE[28860] logger.c:   == Parsing '/etc/asterisk/modules.conf': [2010-03-08 12:42:48] DEBUG[28860] config.c: Parsing /etc/asterisk/modules.conf
[2010-03-08 12:42:48] VERBOSE[28860] logger.c:   == Found
[2010-03-08 12:42:48] NOTICE[28860] loader.c: 6 modules will be loaded.
[2010-03-08 12:42:48] VERBOSE[28860] logger.c:   == Parsing '/etc/asterisk/res_odbc.conf': [2010-03-08 12:42:48] DEBUG[28860] config.c: Parsing /etc/asterisk/res_odbc.conf

By: emre (mrkrnz) 2010-03-08 08:30:37.000-0600

by the way the attachments show a location in the filesystem as /usr/src/redhat/BUILD/asterisk16-1.6.0.25/include/asterisk/channel.h but i dont have a such a file in my system.

By: emre (mrkrnz) 2010-03-08 08:37:03.000-0600

besides i am using voicemail service also, just sending the voicemail to users e-mails and delete it from the system.

By: Leif Madsen (lmadsen) 2010-03-08 10:21:52.000-0600

Unfortunately there isn't much we can probably do here because your Asterisk is not compiled with DONT_OPTIMIZE. In order to produce a useful backtrace, you'll need to compile Asterisk with DONT_OPTIMIZE (per the backtrace.txt file) and then resubmit your backtraces.

By: emre (mrkrnz) 2010-03-08 13:13:32.000-0600

i want to use centos based rpm packages, thus what should i do? system is on production so i cannot compile. What do you prefer to do?

By: Leif Madsen (lmadsen) 2010-03-08 14:04:26.000-0600

There is nothing that can be done here then. You would need to compile from source with the options I've mentioned in order to get the options enabled, unless some third-party package maintainer can provide you debugging RPMs.

The Asterisk yum repo does not have debugging RPMs, so there is little to nothing that can be done here to advance your issue forward if you're unable to provide the required information (which requires compiling from source).

By: Paul Belanger (pabelanger) 2010-04-28 15:48:56

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.

Further information can be found at http://www.asterisk.org/developers/bug-guidelines