[Home]

Summary:ASTERISK-07269: Usage of REGEX crashing Asterisk
Reporter:Sherwood McGowan (rushowr)Labels:
Date Opened:2006-07-01 17:02:03Date Closed:2006-07-06 11:18:20
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:PBX/pbx_ael
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) extensions.ael
( 1) output.txt
Description:After reviewing my other recent report concerning use of FILTER, I found that REGEX was the point in my dialplan at which the system crashed. As a result, I did a clean trunk installation of asterisk and created a simple dialplan to attempt to reproduce the issue.

Attached is the core dump from the resulting crash. I'm putting some possibly useful output information in "additional information". I'll upload a copy of the test dialplan.

Please note I have tried multiple different regular expressions in the past, and all have crashed the server.



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

OUTPUT:
   -- Executing [123@incoming:1] Verbose("SIP/16145606924-081cf3b8", "2|#### Starting Test Run ####") in new stack
 == #### Starting Test Run ####
   -- Executing [123@incoming:2] Macro("SIP/16145606924-081cf3b8", "debug-contexts|"enter"") in new stack
   -- Executing [s@macro-debug-contexts:1] Set("SIP/16145606924-081cf3b8", "stage="enter"") in new stack
Comments:By: Sherwood McGowan (rushowr) 2006-07-01 17:03:10

Attachment "extensions.ael" is an example of a dialplan I created to test this issue.

By: Sherwood McGowan (rushowr) 2006-07-01 17:03:41

Correction to my submission. Output.txt is the backtrace, not the core dump. Sorry about that.

By: Tilghman Lesher (tilghman) 2006-07-03 00:59:13

This appears to be a combination of 1) your mistaken use of | to delimit arguments (it's the space for REGEX) and 2) the fact that AEL is removing the quotes from your arguments, even though they're required for the REGEX function.



By: Tilghman Lesher (tilghman) 2006-07-03 01:01:04

I would suggest that you try backslashing your quotes in the .ael file, as well as changing the "|" to " " and trying again.

By: Tilghman Lesher (tilghman) 2006-07-03 07:55:18

I've committed a change that should at least prevent Asterisk from crashing, though you will still need to try the remedy I suggested to get the quotes through to REGEX.

Reopen if you can still reproduce the crash after revision 36777.