[Freeswitch-dev] GDB
Ali R.
aroumie at yahoo.com
Mon Feb 2 22:32:50 MSK 2015
Dear All,I have FS configured/compiled with "devel-bootstrap.sh" for better debugging. Is it possible to extract the parsed SIP message from a core dump (or as much SIP as possible.) traversing the back trace, I was able to see host, port, destination number which seems to be fine but I have a feeling there might be some structures with deep SIP info. I'm having random core dumps and I would like to get ideas at the call patterns that causes this crash. I will for sure report all details on this particular crash to JIRA for better tracking. In the mean time, any guidance is appreciated.
#0 0x00007f6d8192f165 in raise () from /lib/x86_64-linux-gnu/libc.so.6#1 0x00007f6d819323e0 in abort () from /lib/x86_64-linux-gnu/libc.so.6#2 0x00007f6d8196a1cb in ?? () from /lib/x86_64-linux-gnu/libc.so.6#3 0x00007f6d81973a16 in ?? () from /lib/x86_64-linux-gnu/libc.so.6#4 0x00007f6d819772f8 in ?? () from /lib/x86_64-linux-gnu/libc.so.6#5 0x00007f6d819788a0 in malloc () from /lib/x86_64-linux-gnu/libc.so.6#6 0x00007f6d82bf78c2 in my_dup (s=0x7f6d54313360 "user=phone") at src/switch_event.c:113#7 0x00007f6d82bf8e20 in switch_event_add_header_string (event=0x7f6d555b3ae0, stack=11636, stack at entry=SWITCH_STACK_BOTTOM, header_name=0x6 <Address 0x6 out of bounds>, header_name at entry=0x7f6d77d9afbc "sip_contact_params", data=0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>, data at entry=0x7f6d54313360 "user=phone") at src/switch_event.c:1182#8 0x00007f6d82b8ca02 in switch_channel_set_variable_var_check (channel=channel at entry=0x7f6d5492e380, varname=varname at entry=0x7f6d77d9afbc "sip_contact_params", value=0x7f6d54313360 "user=phone", var_check=var_check at entry=SWITCH_TRUE) at src/switch_channel.c:1385#9 0x00007f6d77c7462d in _url_set_chanvars (session=session at entry=0x7f6d55395d88, url=0x7f6d5432c488, user_var=user_var at entry=0x7f6d77d9afab "sip_contact_user", host_var=host_var at entry=0x7f6d77d9af9a "sip_contact_host", port_var=port_var at entry=0x7f6d77d9af89 "sip_contact_port", uri_var=uri_var at entry=0x7f6d77d9af79 "sip_contact_uri", params_var=params_var at entry=0x7f6d77d9afbc "sip_contact_params") at sofia.c:119#10 0x00007f6d77c8ec40 in sofia_handle_sip_i_invite (session=session at entry=0x7f6d55395d88, nua=nua at entry=0x7f6d782aae80, profile=profile at entry=0xb60550, nh=nh at entry=0x7f6d5498d830, sofia_private=0x7f6d552b0c70, sip=sip at entry=0x7f6d540492c8, de=de at entry=0x7f6d54207b30, tags=tags at entry=0x7f6d554de4b0) at sofia.c:9434#11 0x00007f6d77c96bc1 in our_sofia_event_callback (event=nua_i_invite, status=100, phrase=0x7f6d554de4c0 "Trying", nua=0x7f6d782aae80, profile=0xb60550, nh=0x7f6d5498d830, sofia_private=0x7f6d552b0c70, sip=0x7f6d540492c8, de=de at entry=0x7f6d54207b30, tags=0x7f6d554de4b0) at sofia.c:1491#12 0x00007f6d77c9a96c in sofia_process_dispatch_event (dep=dep at entry=0x7f6d427e2108) at sofia.c:1903#13 0x00007f6d77c6ace9 in sofia_receive_message (session=0x7f6d55395d88, msg=0x7f6d427e2a90) at mod_sofia.c:1115#14 0x00007f6d82bb14ae in switch_core_session_perform_receive_message (session=session at entry=0x7f6d55395d88, message=message at entry=0x7f6d427e2a90, file=file at entry=0x7f6d82caf290 "src/switch_ivr.c", func=func at entry=0x7f6d82cafb60 "switch_ivr_parse_all_signal_data", line=line at entry=838) at src/switch_core_session.c:775#15 0x00007f6d82c35705 in switch_ivr_parse_all_signal_data (session=session at entry=0x7f6d55395d88) at src/switch_ivr.c:838#16 0x00007f6d82c35750 in switch_ivr_parse_all_messages (session=session at entry=0x7f6d55395d88) at src/switch_ivr.c:797#17 0x00007f6d82bb5fdf in switch_core_session_run (session=0x7f6d55395d88) at src/switch_core_state_machine.c:475#18 0x00007f6d82bb0f1e in switch_core_session_thread (thread=<optimized out>, obj=0x7f6d55395d88) at src/switch_core_session.c:1598#19 0x00007f6d82bad1b5 in switch_core_session_thread_pool_worker (thread=0x7f6d710c7d40, obj=<optimized out>) at src/switch_core_session.c:1690#20 0x00007f6d822e7b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0#21 0x00007f6d819d97bd in clone () from /lib/x86_64-linux-gnu/libc.so.6#22 0x0000000000000000 in ?? ()
Ali R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20150202/37df4bf3/attachment.html
Join us at ClueCon 2014 Aug 4-7, 2014
More information about the FreeSWITCH-dev
mailing list