[Home]

Summary:ASTERISK-17093: Crash with malformed (invalid) exten in extensions.conf
Reporter:alric (alric)Labels:
Date Opened:2010-12-10 16:27:01.000-0600Date Closed:2012-02-14 10:09:55.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:PBX/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) malformed_extension_crash.rtf
Description:I set up a context like the following:

[main]
switch => Realtime/main@extensions

exten => 101,Meetme()

Asterisk will start successfully with that dialplan, and throw a bunch of this warning:
[Dec 10 15:51:40] WARNING[13234]: pbx.c:2578 pbx_find_extension: Maximum PBX stack exceeded

Once its up, if I 'reload', Asterisk crashes.  If I run through the same scenario with a properly formatted extension (with a priority), I have no problems.

OS is Ubuntu 10.04.

Attached is a gdb of the core dump with 'bt' and 'bt full'.
Comments:By: alric (alric) 2010-12-10 16:28:58.000-0600

Sorry, the attachment has a 'bt full' and 'thread apply all bt'

By: Joshua C. Colp (jcolp) 2012-02-01 13:45:23.374-0600

After looking at the attached backtrace and attempting to reproduce I believe that what you have found is not actually an issue with the PBX core or pbx_config. The pbx_config module will not allow that extension to exist and rightly refuses it. On reload though it attempts to find this extension, which seems to cause an include infinite loop using the dialplan you are using. The backtrace shows that the dialplan you have provided is not the same, if after looking at the dialplan you see no include loop can you please attach the complete dialplan so a deeper look can occur?

By: Joshua C. Colp (jcolp) 2012-02-14 10:09:55.293-0600

After looking at this deeper after fixing another pbx_config issue I believe this has now already been resolved.