[Home]

Summary:ASTERISK-07898: IF causes seg fault if label doesn't exist
Reporter:bjweeks (bjweeks)Labels:
Date Opened:2006-10-09 01:35:27Date Closed:2006-10-10 11:43:35
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Functions/func_logic
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20061009__bug8117.diff.txt
( 1) asterisk_bt.txt
Description:e.g, exten => s,n,Set(j=${CUT(ARG1,&,${i})})

In this case ${i} is 3 and nothing is in the location 3 so asterisk seg faults. Not sure if this is a feature or a bug but I think Cut should exit gracefully.
Comments:By: jmls (jmls) 2006-10-09 03:57:56

bjweeks, please could you upload a bt full (as per bug guidelines for a crash) so the developers can see where the error is ocurring. Thanks.

By: bjweeks (bjweeks) 2006-10-09 17:46:06

Uploaded a bt full of the crash.

By: Tilghman Lesher (tilghman) 2006-10-09 18:31:17

Your crash is actually in the IF, not within CUT.  I have updated the bug and am uploading a fix.  Please test out this patch and ensure that it fixes your issue.

By: bjweeks (bjweeks) 2006-10-09 19:43:18

The patch fixed it, thanks.

By: Tilghman Lesher (tilghman) 2006-10-10 11:43:35

Committed to 1.4, revision 44808; merged to trunk.