backtrace from core dump of crash on this call: (gdb) bt #0 0x4018731b in mallopt () from /lib/libc.so.6 #1 0x401860df in free () from /lib/libc.so.6 #2 0x401747bb in fclose () from /lib/libc.so.6 #3 0x403c5dc9 in run_agi (chan=0x81db278, request=0xbd5eb9e4 "dialparties.agi", agi=0xbd5eb9d4, pid=2713, dead=0) at res_agi.c:1926 #4 0x403c5497 in agi_exec_full (chan=0x81db278, data=0xbd5eb9d4, enhanced=0, dead=136113912) at res_agi.c:2049 #5 0x403c4d50 in agi_exec (chan=0x81db278, data=0x81ceef8) at res_agi.c:2063 #6 0x0808e3f5 in pbx_extension_helper (c=0x81db278, con=0x81ceef8, context=0x81db3c8 "macro-dial", exten=0x81db4bc "s", priority=1, label=0x0, callerid=0xbd5f6ea4 "dial|15|tr|44", action=136068904) at pbx.c:553 #7 0x0808cb14 in ast_spawn_extension (c=0x81ceef8, context=0x81ceef8 "21", exten=0x81ceef8 "21", priority=136113912, callerid=0x81ceef8 "21") at pbx.c:2230 #8 0x40875a8d in macro_exec (chan=0x81db278, data=0x1) at app_macro.c:215 #9 0x0808e3f5 in pbx_extension_helper (c=0x81db278, con=0x81ceef8, context=0x81db3c8 "macro-dial", exten=0x81db4bc "s", priority=9, label=0x0, callerid=0xbd5fd754 "exten-vm|44|44", action=136068904) at pbx.c:553 #10 0x0808cb14 in ast_spawn_extension (c=0x81ceef8, context=0x81ceef8 "21", exten=0x81ceef8 "21", priority=136113912, callerid=0x81ceef8 "21") at pbx.c:2230 #11 0x40875a8d in macro_exec (chan=0x81db278, data=0x9) at app_macro.c:215 #12 0x0808e3f5 in pbx_extension_helper (c=0x81db278, con=0x81ceef8, context=0x81db3c8 "macro-dial", exten=0x81db4bc "s", priority=1, label=0x0, callerid=0x0, action=0) at pbx.c:553 #13 0x0808ef9a in __ast_pbx_run (c=0x81db278) at pbx.c:2230 #14 0x0808fc8f in pbx_thread (data=0x81ceef8) at pbx.c:2517 #15 0x40024e51 in pthread_start_thread () from /lib/libpthread.so.0 #16 0x401ec8aa in clone () from /lib/libc.so.6 (gdb)