[asterisk-dev] agi segfaults 1.2.9.1

Koncz Ádám akoncz at opennet.hu
Wed Jun 14 01:26:40 MST 2006


AGI script segfaults asterisk if null parameter used for exec background.

     -- Executing EAGI("mISDN/6-u10", "test/dtmf.php") in new stack
     -- Launched AGI Script /var/lib/asterisk/agi-bin/test/dtmf.php
AGI Tx >> agi_request: test/dtmf.php
AGI Tx >> agi_channel: mISDN/6-u10
AGI Tx >> agi_language: hu
AGI Tx >> agi_type: mISDN
AGI Tx >> agi_uniqueid: 1150273170.10
AGI Tx >> agi_callerid: 015
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 1
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: unknown
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: nt
AGI Tx >> agi_extension: 8
AGI Tx >> agi_priority: 3
AGI Tx >> agi_enhanced: 1.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << EXEC BACKGROUND
     -- AGI Script Executing Application: (BACKGROUND) Options: ((null))
iphone2*CLI>
Disconnected from Asterisk server
Executing last minute cleanups 



(gdb) bt
#0  0xb7e3a363 in strlen () from /lib/tls/libc.so.6
#1  0x0808b1ff in pbx_builtin_background (chan=0x81803a8, data=0x0) at 
pbx.c:5729
#2  0x0808c71d in pbx_exec (c=0x81803a8, app=0x0, data=0x0, newstack=1) 
at pbx.c:553
#3  0xb7b20cd3 in handle_exec (chan=0x0, agi=0x0, argc=2, 
argv=0x81803a8) at res_agi.c:1100
#4  0xb7b236da in agi_handle_command (chan=0x0, agi=0xb608eb10, buf=0x0) 
at res_agi.c:1834
#5  0xb7b22ee1 in run_agi (chan=0x81803a8, request=0xb608eb20 
"test/dtmf.php", agi=0xb608eb10, pid=26666, dead=0) at res_agi.c:1914
#6  0xb7b224a7 in agi_exec_full (chan=0x81803a8, data=0xb608eb20, 
enhanced=1, dead=0) at res_agi.c:2055
#7  0xb7b21e1e in eagi_exec (chan=0x81803a8, data=0x0) at res_agi.c:2083
#8  0x0808e5d5 in pbx_extension_helper (c=0x81803a8, con=0x0, 
context=0x81804f8 "nt", exten=0x81805ec "8", priority=3, label=0x0,
     callerid=0x0, action=0) at pbx.c:553
#9  0x0808f17a in __ast_pbx_run (c=0x81803a8) at pbx.c:2230
#10 0x0808fe6f in pbx_thread (data=0x0) at pbx.c:2517
#11 0xb7f9fb63 in start_thread () from /lib/tls/libpthread.so.0
#12 0xb7e9a18a in clone () from /lib/tls/libc.so.6




More information about the asterisk-dev mailing list