Summary: | ASTERISK-19713: Asterisk segfaults on invalid datastore in channel destructor | ||||||
Reporter: | Aleksandr Gordeev (axonaro) | Labels: | |||||
Date Opened: | 2012-04-12 05:58:16 | Date Closed: | 2015-03-13 21:35:34 | ||||
Priority: | Major | Regression? | |||||
Status: | Closed/Complete | Components: | Core/PBX | ||||
Versions: | 10.3.0 10.4.0 | Frequency of Occurrence | Constant | ||||
Related Issues: |
| ||||||
Environment: | Attachments: | ( 0) backtrace.txt ( 1) backtrace.txt ( 2) extconfig.conf ( 3) full_log.txt ( 4) sip.conf | |||||
Description: | Asterisk always segfault after processing a certain number of calls extensions.conf [test-sip] exten => service,1,Progress exten => service,n,Wait(2) exten => service,n,Playback(vm-sorry,noanswer) exten => service,n,Hangup | ||||||
Comments: | By: Matt Jordan (mjordan) 2012-04-12 08:44:20.762-0500 We require a complete debug log to help triage the issue. This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information It looks like somehow an invalid datastore was put onto the channel. Can you provide your full extensions.conf as well as a DEBUG log leading up to the crash? Thanks! By: Aleksandr Gordeev (axonaro) 2012-04-13 00:26:37.809-0500 /etc/asterisk/extensions.conf ---------------------------------------------------- [general] static=yes writeprotect=no clearglobalvars=no [globals] #include "config/extensions.config" ---------------------------------------------------- /etc/asterisk/config/extensions.config ---------------------------------------------------- [test-sip] exten => service,1,Progress ;exten => service,n,Answer exten => service,n,Wait(2) exten => service,n,Playback(vm-sorry,noanswer) exten => service,n,Hangup ---------------------------------------------------- By: Matt Jordan (mjordan) 2012-04-17 09:09:49.439-0500 Please attach your sip.conf and extconfig.conf as well. It appears as if you have an invalid configuration, as chan_sip is attempting to look up a realtime peer named 'service' when you have no realtime backend configured (or it can't find the realtime backend you've specified.) By: Matt Jordan (mjordan) 2012-04-17 09:12:58.237-0500 As an fyi, you have two crashes illustrated in your backtraces here. 1) The invalid datastore on the channel destructor 2) An invalid lookup of SIP realtime peers causing a crash in the realtime engine By: Aleksandr Gordeev (axonaro) 2012-04-18 03:17:44.502-0500 I'm not use realtime backend. In config/sip.config [def_conf](!) host=dynamic type=friend call-limit=1 canreinvite=no context=default dtmfmode=rfc2833 qualify=120000 disallow=all allow=g729,alaw t38pt_udptl=yes,redundancy [sipp](def_conf) host=dynamic type=friend context=test-sip deny=0.0.0.0/0.0.0.0 permit=10.44.100.0/24 insecure=invite disallow=all allow=ulaw t38pt_udptl=yes call-limit=200 By: Matt Jordan (mjordan) 2012-04-24 12:19:39.179-0500 I spawned a second issue to address the seg fault occurring in the security_event handling. We will track the original datastore problem off this issue. By: Matt Jordan (mjordan) 2015-03-13 21:35:26.900-0500 Per the Asterisk versions page [1], the maintenance (bug fix) support for the Asterisk branch you are using has ended. For continued maintenance support please move to a supported branch of Asterisk. After testing with a supported branch, if you find this problem has not been resolved, please open a new issue against the latest version of that Asterisk branch. Thanks! [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions |