[Home]

Summary:ASTERISK-11330: WARNING: Freeing unused memory at (nil), in ast_yyfree of ast_expr2f.c, line 3089
Reporter:Norman Franke (norman)Labels:
Date Opened:2008-01-29 16:16:03.000-0600Date Closed:2011-06-07 14:07:59
Priority:MinorRegression?No
Status:Closed/CompleteComponents:PBX/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When running asterisk MALLOC_DEBUG enabled, I periodically get these messages:

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

I've enclosed a backtrace after setting a breakpoint.

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

#0  __ast_free_region (ptr=0x0, file=0x812ef33 "ast_expr2f.c", lineno=3089, func=0x812ef4e "ast_yyfree") at astmm.c:176
#1  0x08071a40 in __ast_free (ptr=0x0, file=0x812ef33 "ast_expr2f.c", lineno=3089, func=0x812ef4e "ast_yyfree") at astmm.c:208
#2  0x08068f5d in ast_yyfree (ptr=0x0, yyscanner=0x825a310) at ast_expr2f.c:3089
#3  0x08068ea2 in ast_yylex_destroy (yyscanner=0x825a310) at ast_expr2f.c:3033
#4  0x08068fc3 in ast_expr (expr=0xb67eb4b8 " ADDED=ADDED ", buf=0xb67ef680 "", length=8191) at ast_expr2.fl:231
ASTERISK-1  0x080bfbd9 in pbx_substitute_variables_helper_full (c=0x83e7f30, headp=0x83e8274, cp1=0x828f728 "$[ ${AQMSTATUS}=ADDED ]?80",
   cp2=0xb67ef680 "", count=8191) at pbx.c:1744
ASTERISK-2  0x080bfc80 in pbx_substitute_variables_helper (c=0x83e7f30, cp1=0x828f728 "$[ ${AQMSTATUS}=ADDED ]?80", cp2=0xb67ef680 "",
   count=8191) at pbx.c:1758
ASTERISK-3  0x080bfd89 in pbx_substitute_variables (passdata=0xb67ef680 "", datalen=8192, c=0x83e7f30, e=0x828f7b8) at pbx.c:1776
ASTERISK-4  0x080bff75 in pbx_extension_helper (c=0x83e7f30, con=0x0, context=0x83e80b0 "smcx", exten=0x83e8100 "7101", priority=7,
   label=0x0, callerid=0x82b7dc0 "6107441333", action=E_SPAWN) at pbx.c:1829
ASTERISK-5  0x080c1218 in ast_spawn_extension (c=0x83e7f30, context=0x83e80b0 "smcx", exten=0x83e8100 "7101", priority=7,
   callerid=0x82b7dc0 "6107441333") at pbx.c:2306
ASTERISK-6 0x080c175b in __ast_pbx_run (c=0x83e7f30) at pbx.c:2408
ASTERISK-7 0x080c24b1 in pbx_thread (data=0x83e7f30) at pbx.c:2623
ASTERISK-8 0x080fca4e in dummy_start (data=0x83e58a8) at utils.c:852
ASTERISK-9 0xb7f03b63 in start_thread () from /lib/tls/libpthread.so.0
ASTERISK-10 0xb7e2f18a in clone () from /lib/tls/libc.so.6

Comments:By: Norman Franke (norman) 2008-01-29 16:25:32.000-0600

If I have verbose = 3, it shows this:

   -- Executing [7104@smcx:2] Set("SIP/station130-083e6448", "STAT=1") in new stack
WARNING: Freeing unused memory at (nil), in ast_yyfree of ast_expr2f.c, line 3089
   -- Executing [7104@smcx:3] GotoIf("SIP/station130-083e6448", "0?10:4") in new stack

By: Steve Murphy (murf) 2008-01-31 11:38:44.000-0600

Sorry for the inconvenience; but the version in svn of 1.4 right now, has this problem fixed, hopefully permanently. The solution should appear in the next release of 1.4.