Summary:ASTERISK-17889: ExternalIVR Crash
Reporter:Chris Maciejewski (chris-mac)Labels:
Date Opened:2011-05-19 08:13:42Date Closed:2011-06-21 10:13:42
Versions:1.8.4 Frequency of
Environment:Attachments:( 0) backtrace.txt
( 1) modules-crash.conf
( 2) modules-OK.conf
( 3) test.sh
Description:Asterisk crashes as described below:

exten => _X.,1,Ringing()
exten => _X.,n,Answer()
exten => _X.,n,Answer()
exten => _X.,n,ExternalIVR(/enc/etc/asterisk/ivr/test.sh)

   -- Executing [448454198462@common:1] Ringing("SIP/OpenSER-00000000", "") in new stack
   -- Executing [448454198462@common:2] Answer("SIP/OpenSER-00000000", "") in new stack
   -- Executing [448454198462@common:3] ExternalIVR("SIP/OpenSER-00000000", "/enc/etc/asterisk/ivr/test.sh") in new stack
      > ExternalIVR received application and arguments: /enc/etc/asterisk/ivr/test.sh
      > ExternalIVR received options: (null)
      > Parsing options from: [(null)]
   -- Answering channel and starting generator
      > got command 'S,/var/lib/asterisk/sounds/demo-congrats'
Segmentation fault (core dumped)

test.sh IVR script and backtrace attached.
Comments:By: Leif Madsen (lmadsen) 2011-05-19 13:41:21

Assigned to the maintainer of ExternalIVR

By: David Ruggles (thedavidfactor) 2011-05-20 15:14:23

I'll take a look at this as soon as I have a few minutes

By: Chris Maciejewski (chris-mac) 2011-05-29 05:08:26

Just discovered I was missing:

load => bridge_*

in modules.conf

Once bridge modules are loaded, ExternalIVR doesn't crash any more.

Nevertheless it probably shouldn't crash, but throw some error message instead?

By: David Ruggles (thedavidfactor) 2011-05-29 11:30:50

I'm on vacation through memorial day, so I was going to look at this next week. Please attach a copy of your modules.conf when the crash occurs. Thanks!

By: Stephen A. Brandli (stevebrandli) 2011-05-30 00:52:54

Looks a lot like ASTERISK-17072.

By: Chris Maciejewski (chris-mac) 2011-06-01 03:54:03

Modules which case the crash (modules-crash.conf) and modules which work OK (modules-OK.conf) attached.

By: David Ruggles (thedavidfactor) 2011-06-17 14:18:19.897-0500

I am unable to duplicate using asterisk 1.8 branch from SVN, are you able to checkout the asterisk 1.8 branch and test against that? It may be an an issue in something underlying app_externalivr that has already been fixed, or it might be some difference between our test environments.

By: Leif Madsen (lmadsen) 2011-06-21 10:13:35.362-0500

I'm going to close this issue as it is not reproducible on Asterisk 1.8.

By: Sean Bright (seanbright) 2012-04-19 10:57:34.244-0500

I believe this was fixed with [r362586|http://svnview.digium.com/svn/asterisk?view=revision&revision=362586].  This will show up in (unless it is rolled into before release - which is unlikely).