[asterisk-bugs] [Asterisk 0011052]: Passing a NULL value back from IF() to Set() on 64-bit crashes Asterisk

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Oct 22 14:33:32 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11052 
====================================================================== 
Reported By:                blitzrage
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   11052
Category:                   Functions/func_logic
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-22-2007 12:43 CDT
Last Modified:              10-22-2007 14:33 CDT
====================================================================== 
Summary:                    Passing a NULL value back from IF() to Set() on
64-bit crashes Asterisk
Description: 
Here is the offending dialplan line:

exten => _X.,n,Set(RING_CYCLE=${IF($[${ISNULL(${ARG3})} &
${EXISTS(${RING_CYCLE})}]?${RING_CYCLE})})

If the IF() function returns NULL (false branch), then Asterisk will
crash. Doing:

Set(RING_CYCLE=)

Does not crash Asterisk, so it seems to be something that the IF() is
passing back. This works fine on a 32-bit OS.
====================================================================== 

---------------------------------------------------------------------- 
 blitzrage - 10-22-07 14:33  
---------------------------------------------------------------------- 
with DEBUG_MALLOC on, I get this in mmlog:

WARNING: Freeing unused memory at (nil), in ast_yyfree of ast_expr2f.c,
line 3091 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-22-07 14:33  blitzrage      Note Added: 0072382                          
======================================================================




More information about the asterisk-bugs mailing list