[asterisk-bugs] [Asterisk 0014485]: CURL() function crashes in /trunk

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Feb 17 08:24:24 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14485 
====================================================================== 
Reported By:                davevg
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   14485
Category:                   Functions/func_curl
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 176174 
Request Review:              
====================================================================== 
Date Submitted:             2009-02-16 16:06 CST
Last Modified:              2009-02-17 08:24 CST
====================================================================== 
Summary:                    CURL() function crashes in /trunk
Description: 
With this stripped down dialplan, asterisk crashes in /trunk version.
exten => 77,1,Answer()
exten => 77,n,Set(foo=${CURL(http://192.168.175.100/push)})

I've also tried a known working link from the last round of testing I did
and have the same issue: 
;exten => 77,n,Set(foo=${CURL(http://192.168.175.97/nascar/test.pl)})
;exten => 77,n,Set(foo=${CURL(http://www.google.com)})

Here is the bug with the testing that was done last time.
http://bugs.digium.com/bug_view_page.php?bug_id=12920


(gdb) bt
http://bugs.digium.com/view.php?id=0  0x00596402 in __kernel_vsyscall ()
http://bugs.digium.com/view.php?id=1  0x003b8d10 in raise () from /lib/libc.so.6
http://bugs.digium.com/view.php?id=2  0x003ba621 in abort () from /lib/libc.so.6
http://bugs.digium.com/view.php?id=3  0x003f0e5b in __libc_message () from
/lib/libc.so.6
http://bugs.digium.com/view.php?id=4  0x003fb5be in _int_realloc () from
/lib/libc.so.6
http://bugs.digium.com/view.php?id=5  0x003fc4dd in realloc () from
/lib/libc.so.6
http://bugs.digium.com/view.php?id=6  0x081485ec in _ast_realloc (p=0x9731710,
len=44, file=0x81a9954
"/usr/src/asterisk-trunk/include/asterisk/strings.h", lineno=540, 
    func=0x81a9987 "ast_str_make_space") at
/usr/src/asterisk-trunk/include/asterisk/utils.h:493
http://bugs.digium.com/view.php?id=7  0x08148b7b in ast_str_make_space
(buf=0x298bb1c, new_len=32) at
/usr/src/asterisk-trunk/include/asterisk/strings.h:518
http://bugs.digium.com/view.php?id=8  0x0813b629 in __ast_str_helper2
(buf=0x298bb1c, maxlen=0,
src=0x985e83c "nt IP Telephone HTTPd", maxsrc=21, append=1, escapecommas=0)
at strings.c:135
http://bugs.digium.com/view.php?id=9  0x08148d05 in ast_str_append_substr
(buf=0x298bb1c, maxlen=0,
src=0x985e82c "Polycom SoundPoint IP Telephone HTTPd", maxsrc=37)
    at /usr/src/asterisk-trunk/include/asterisk/strings.h:736
http://bugs.digium.com/view.php?id=10 0x03f2912b in WriteMemoryCallback
(ptr=0x985e82c, size=1, nmemb=37,
data=0x298bb1c) at func_curl.c:359
http://bugs.digium.com/view.php?id=11 0x06601c54 in Curl_client_write () from
/usr/lib/libcurl.so.3
http://bugs.digium.com/view.php?id=12 0x066171f1 in Curl_readwrite () from
/usr/lib/libcurl.so.3
http://bugs.digium.com/view.php?id=13 0x06617bbe in Curl_perform () from
/usr/lib/libcurl.so.3
http://bugs.digium.com/view.php?id=14 0x06617fc9 in curl_easy_perform () from
/usr/lib/libcurl.so.3
http://bugs.digium.com/view.php?id=15 0x03f295d6 in acf_curl_exec
(chan=0x9857a68, cmd=0x298bb70 "CURL",
info=0x298bb75 "http://192.168.175.100/push", buf=0x298bc20 "", len=4096)
    at func_curl.c:456
http://bugs.digium.com/view.php?id=16 0x080f4a90 in ast_func_read
(chan=0x9857a68, function=0x298cc30
"CURL(http://192.168.175.100/push)", workspace=0x298bc20 "", len=4096) at
pbx.c:3316
http://bugs.digium.com/view.php?id=17 0x080f4fd1 in
pbx_substitute_variables_helper_full (c=0x9857a68,
headp=0x9857b80, cp1=0x98f60a0 "foo=${CURL(http://192.168.175.100/push)}",

    cp2=0x298fe9c "", count=8187, used=0x298dd34) at pbx.c:3451
http://bugs.digium.com/view.php?id=18 0x080f5575 in
pbx_substitute_variables_helper (c=0x9857a68,
cp1=0x98f60a0 "foo=${CURL(http://192.168.175.100/push)}", cp2=0x298fe98
"foo=", count=8191)
    at pbx.c:3546
http://bugs.digium.com/view.php?id=19 0x080f5655 in pbx_substitute_variables
(passdata=0x298fe98 "foo=",
datalen=8192, c=0x9857a68, e=0x98fac50) at pbx.c:3569
http://bugs.digium.com/view.php?id=20 0x080f587d in pbx_extension_helper
(c=0x9857a68, con=0x0,
context=0x9857cd6 "default", exten=0x9857d26 "77", priority=2, label=0x0, 
    callerid=0x9837380 "1223", action=E_SPAWN, found=0x29922ec,
combined_find_spawn=1) at pbx.c:3631
http://bugs.digium.com/view.php?id=21 0x080f6e23 in ast_spawn_extension
(c=0x9857a68, context=0x9857cd6
"default", exten=0x9857d26 "77", priority=2, callerid=0x9837380 "1223",
found=0x29922ec, 
    combined_find_spawn=1) at pbx.c:4096
http://bugs.digium.com/view.php?id=22 0x080f74af in __ast_pbx_run (c=0x9857a68,
args=0x0) at pbx.c:4186
http://bugs.digium.com/view.php?id=23 0x080f8937 in pbx_thread (data=0x9857a68)
at pbx.c:4473
http://bugs.digium.com/view.php?id=24 0x08149697 in dummy_start (data=0x9762ad8)
at utils.c:968
http://bugs.digium.com/view.php?id=25 0x0030845b in start_thread () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=26 0x00460e5e in clone () from /lib/libc.so.6

====================================================================== 

---------------------------------------------------------------------- 
 (0100244) davevg (reporter) - 2009-02-17 08:24
 http://bugs.digium.com/view.php?id=14485#c100244 
---------------------------------------------------------------------- 
Still seeing a crash at the same point in the dialplan with svn version
Asterisk SVN-trunk-r176459.  I have another crash I encountered when the
server was idle related to IMAP voicemail, but I'll open a new bug for it. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-17 08:24 davevg         Note Added: 0100244                          
======================================================================




More information about the asterisk-bugs mailing list