[asterisk-dev] 1.4.19.rc2 core dump

Martin Vít vit at lam.cz
Thu Mar 20 05:44:54 CDT 2008


I've looked into the source and on the line 175 there is

    if ((ext = strrchr(mixmonitor->filename, '.')))

This is cutted debug line from syslog right before crash

    Executing [s at macro-dial_ext_1:8] MixMonitor("mISDN/3-u0", 
"LINKA-IN-Andrea-222935972-121-20080320-094910-1206002938.0.wav|") in 
new stack

And this is full debug before crash

Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'MixMonitor'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [s at macro-dial_ext_1:8] MixMonitor("mISDN/7-u0", 
"LINKA-IN-Petra--122-20080320-094752-1206002858.0
.wav|") in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: MixMonitor
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'Set'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [s at macro-dial_ext_1:9] Set("mISDN/7-u0", 
"CDR(mfile)=/var/spool/asterisk/monitor/LINKA-IN-Petra--
122-20080320-094752-1206002858.0.wav") in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: Set
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'Goto'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [s at macro-dial_ext_1:10] Goto("mISDN/7-u0", "122|1") in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- Goto 
(macro-dial_ext_1,122,1)
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: goto
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'MYSQL'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [122 at macro-dial_ext_1:1] MYSQL("mISDN/7-u0", "Connect connid 
localhost ast 932g8dsb ast") in new
stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13530]:   == Begin 
MixMonitor Recording mISDN/7-u0
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: MYSQL
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'MYSQL'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [122 at macro-dial_ext_1:2] MYSQL("mISDN/7-u0", "Query resultid 1 
SELECT max_inbound,timeout,uncondT
ype,IDvoicemail,IDfax,uncond_extension from extensions where ID=14") in 
new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: MYSQL
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'MYSQL'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [122 at macro-dial_ext_1:3] MYSQL("mISDN/7-u0", "Fetch fetchid 2 
maxin mtimeout uncondType IDvoicema
il IDfax uncond_extension") in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: MYSQL
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'MYSQL'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [122 at macro-dial_ext_1:4] MYSQL("mISDN/7-u0", "Clear 2") in new 
stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: MYSQL
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'Goto'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [122 at macro-dial_ext_1:5] Goto("mISDN/7-u0", "sss|1") in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- Goto 
(macro-dial_ext_1,sss,1)
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: Goto
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'Set'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [sss at macro-dial_ext_1:1] Set("mISDN/7-u0", 
"OUTBOUND_GROUP=ex14") in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: Set
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1756 in 
pbx_substitute_variables_helper_full: Expression result is '0'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'GotoIf'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [sss at macro-dial_ext_1:2] GotoIf("mISDN/7-u0", "0 ? 10 : 20") 
in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- Goto 
(macro-dial_ext_1,sss,20)
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: GotoIf
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'Goto'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [sss at macro-dial_ext_1:20] Goto("mISDN/7-u0", "122|6") in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- Goto 
(macro-dial_ext_1,122,6)
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: Goto
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1756 in 
pbx_substitute_variables_helper_full: Expression result is '1'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'GotoIf'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [122 at macro-dial_ext_1:6] GotoIf("mISDN/7-u0", "1 ? 10 : 20") 
in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- Goto 
(macro-dial_ext_1,122,10)
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: GotoIf
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'MYSQL'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [122 at macro-dial_ext_1:10] MYSQL("mISDN/7-u0", "Disconnect 1") 
in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: app_macro.c:337 
in _macro_exec: Executed application: MYSQL
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: db.c:198 in 
ast_db_get: Unable to find key '14' in family 'loggedchan'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: func_db.c:70 in 
function_db_read: DB: loggedchan/14 not found in database.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1756 in 
pbx_substitute_variables_helper_full: Expression result is '1'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: db.c:198 in 
ast_db_get: Unable to find key '14' in family 'loggedchan'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: func_db.c:70 in 
function_db_read: DB: loggedchan/14 not found in database.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1756 in 
pbx_substitute_variables_helper_full: Expression result is '0'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1756 in 
pbx_substitute_variables_helper_full: Expression result is '1'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: pbx.c:1839 in 
pbx_extension_helper: Launching 'Dial'
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- 
Executing [122 at macro-dial_ext_1:11] Dial("mISDN/7-u0", 
"SIP/a222|50|jtT") in new stack
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: 
chan_sip.c:15966 in sip_request_call: Asked to create a SIP channel with 
formats: 0x8 (alaw)
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: chan_sip.c:2762 
in do_setnat: Setting NAT on RTP to On
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: chan_sip.c:2772 
in do_setnat: Setting NAT on UDPTL to On
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: rtp.c:1593 in 
ast_rtp_make_compatible: Channel 'mISDN/7-u0' has no RTP, not doing anything
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable 
FORWARD_CONTEXT.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable 
TRANSFER_CONTEXT.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable 
BACKUP_TRANSFER_CONTEXT.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable 
VA_TRANSFER_NAME.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable 
VA_TRANSFER_NUM.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable 
VA_TRANSFER_BACK.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable 
FORCE_TIMEOUT.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3323 
in ast_channel_inherit_variables: Copying soft-transferable variable 
SIPTRANSFER_REFERER.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3323 
in ast_channel_inherit_variables: Copying soft-transferable variable 
SIPTRANSFER.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable 
FROM_DIALLINKS.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3331 
in ast_channel_inherit_variables: Copying hard-transferable variable OCID.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: channel.c:3323 
in ast_channel_inherit_variables: Copying soft-transferable variable 
MISDN_PID.
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: chan_sip.c:3020 
in sip_call: Outgoing Call for a222
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: DEBUG[13509]: sched.c:284 in 
ast_sched_del: Attempted to delete nonexistent schedule entry -1!
Mar 20 09:47:52 VTT-Hasco asterisk[13401]: VERBOSE[13509]:     -- Called 
a222

This is last line

Martin Vít wrote:
> Hello devs!
>
> I'm testing the latest svn SVN-branch-1.4-r109838M. I'm using mISDN and 
> SIP and mixmonitor. It starts crashing.
>
> bt
>
> #0  0xb7e00743 in strrchr () from /lib/tls/libc.so.6
> #1  0xb5881734 in mixmonitor_thread (obj=0x82d4318) at app_mixmonitor.c:175
> #2  0x080fefe5 in dummy_start (data=0x2e2e) at utils.c:865
> #3  0xb7f34b63 in start_thread () from /lib/tls/libpthread.so.0
> #4  0xb7e6018a in clone () from /lib/tls/libc.so.6
>
> bt full
>
> #0  0xb7dba743 in strrchr () from /lib/tls/libc.so.6
> (gdb) bt
> #0  0xb7dba743 in strrchr () from /lib/tls/libc.so.6
> #1  0xb583b734 in mixmonitor_thread (obj=0x8283bc8) at app_mixmonitor.c:175
> #2  0x080fefe5 in dummy_start (data=0x2e2e) at utils.c:865
> #3  0xb7eeeb63 in start_thread () from /lib/tls/libpthread.so.0
> #4  0xb7e1a18a in clone () from /lib/tls/libc.so.6
> (gdb) bt full
> #0  0xb7dba743 in strrchr () from /lib/tls/libc.so.6
> No symbol table info available.
> #1  0xb583b734 in mixmonitor_thread (obj=0x8283bc8) at app_mixmonitor.c:175
>         fr = (struct ast_frame *) 0x8283bc8
>         fs = (struct ast_filestream *) 0x0
>         oflags = 0
>         ext = 0x0
>         errflag = 0
>         __PRETTY_FUNCTION__ = "mixmonitor_thread"
> #2  0x080fefe5 in dummy_start (data=0x2e2e) at utils.c:865
>         _buffer = {__routine = 0x80681d0 <ast_unregister_thread>, __arg 
> = 0xb5448bb0, __canceltype = -1253798992, __prev = 0x0}
>         ret = (void *) 0x8239220
>         a = {start_routine = 0xb583b650 <mixmonitor_thread>, data = 
> 0x8283bc8,
>   name = 0x8239220 "mixmonitor_thread    started at [  286] 
> app_mixmonitor.c launch_monitor_thread()"}
> #3  0xb7eeeb63 in start_thread () from /lib/tls/libpthread.so.0
> No symbol table info available.
> #4  0xb7e1a18a in clone () from /lib/tls/libc.so.6
> No symbol table info available.
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>   


-- 
Martin Vít
LAM plus s.r.o.
http://www.lam.cz/
Tel.: 605 267 610




More information about the asterisk-dev mailing list