Summary:ASTERISK-17173: Asterisk Crash possibly with app_swift
Reporter:Jeremy Kister (jkister)Labels:
Date Opened:2010-12-28 11:53:42.000-0600Date Closed:2011-06-07 14:00:19
Versions:Frequency of
Environment:Attachments:( 0) backtrace-20101226.txt
Description:I noticed my asterisk crashing once/twice per month.  I recompiled with the DONT_OPTIMIZE and here are some results.
Comments:By: Jeremy Kister (jkister) 2010-12-28 12:04:32.000-0600

Asterisk will crash when MixMonitor()ing and then trying to use Swift.

from syslog:
Dec 26 16:35:50 pbx1 kernel: [770536.963189] asterisk[29544] general protection ip:808819e sp:b5e957c0 error:0 in asterisk[8048000+1a3000]

By: Jeremy Kister (jkister) 2011-01-05 12:58:16.000-0600

== Using UDPTL CoS mark 5
 == Using SIP RTP CoS mark 5
   -- Executing [*#@extensions:1] Answer("SIP/143-00000001", "") in new stack
   -- Executing [*#@extensions:2] Set("SIP/143-00000001", "FILENAME=143-1294253874.1") in new stack
   -- Executing [*#@extensions:3] NoOp("SIP/143-00000001", "before mixmonitor") in new stack
   -- Executing [*#@extensions:4] Swift("SIP/143-00000001", "before") in new stack
   -- Executing [*#@extensions:5] MixMonitor("SIP/143-00000001", "143-1294253874.1.wav") in new stack
 == Begin MixMonitor Recording SIP/143-00000001
   -- Executing [*#@extensions:6] NoOp("SIP/143-00000001", "after mixmonitor, before swift") in new stack
   -- Executing [*#@extensions:7] Swift("SIP/143-00000001", "after") in new stack
Disconnected from Asterisk server

By: Jeremy Kister (jkister) 2011-01-05 12:58:40.000-0600


exten => *#,1,Answer
exten => *#,n,Set(FILENAME=${CALLERID(num)}-${UNIQUEID})
exten => *#,n,NoOp(before mixmonitor)
exten => *#,n,Swift(before)
exten => *#,n,MixMonitor(${FILENAME}.wav)
exten => *#,n,NoOp(after mixmonitor, before swift)
exten => *#,n,Swift(after)
exten => *#,n,NoOp(after swift)
exten => *#,n,Hangup

By: Jeremy Kister (jkister) 2011-01-05 13:00:04.000-0600

asterisk will crash after printing to the console that is about to say "after" with swift.

By: Russell Bryant (russell) 2011-01-05 13:13:25.000-0600

This crash is in app_swift.  Since that module is not distributed with Asterisk, we do not support it.

By: Jeremy Kister (jkister) 2011-01-05 16:51:19.000-0600

Sorry to reopen, but can you confirm that this issue is not simply https://issues.asterisk.org/view.php?id=16196 which might not have made it into 1.8 ?

By: Leif Madsen (lmadsen) 2011-01-17 10:41:34.000-0600

This made it into 1.8 because it was merged into trunk (which 1.8 was branched from).