[Freeswitch-dev] FreeSWITCH Core Dump

Peter Nixon listuser at peternixon.net
Wed Mar 28 04:55:15 EDT 2007


On Wed 28 Mar 2007 11:37, Peter Nixon wrote:
> Hi Guys
>
> I managed to track down the core dump I was seeing. It occurs whenever I
> use dingaling with mod_cdr loaded. If mod_cdr is not loaded it doesn't
> crash. 

Here is the bt with symbols:

# gdb /opt/freeswitch/bin/freeswitch core.9370
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Core was generated by `/opt/freeswitch/bin/freeswitch'.
Program terminated with signal 11, Segmentation fault.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /opt/freeswitch/lib/libfreeswitch.so.1...Reading symbols 
from /usr/lib/debug/opt/freeswitch/lib/libfreeswitch.so.1.0.0.debug...done.
done.
Loaded symbols for /opt/freeswitch/lib/libfreeswitch.so.1
Reading symbols from /usr/lib/libsqlite3.so.0...done.
Loaded symbols for /usr/lib/libsqlite3.so.0
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /opt/freeswitch/mod/mod_console.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_console.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_console.so
Reading symbols from /opt/freeswitch/mod/mod_syslog.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_syslog.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_syslog.so
Reading symbols from /opt/freeswitch/mod/mod_enum.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_enum.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_enum.so
Reading symbols from /opt/freeswitch/mod/mod_xml_rpc.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_xml_rpc.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_xml_rpc.so
Reading symbols from /opt/freeswitch/mod/mod_cdr.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_cdr.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_cdr.so
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /opt/freeswitch/mod/mod_dingaling.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_dingaling.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_dingaling.so
Reading symbols from /usr/lib/libgnutls.so.12...done.
Loaded symbols for /usr/lib/libgnutls.so.12
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libgcrypt.so.11...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libgpg-error.so.0...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /opt/freeswitch/mod/mod_sofia.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_sofia.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_sofia.so
Reading symbols from /usr/lib/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/libssl.so.0.9.8
Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.8
Reading symbols from /opt/freeswitch/mod/mod_bridgecall.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_bridgecall.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_bridgecall.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /opt/freeswitch/mod/mod_commands.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_commands.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_commands.so
Reading symbols from /opt/freeswitch/mod/mod_conference.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_conference.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_conference.so
Reading symbols from /opt/freeswitch/mod/mod_dptools.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_dptools.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_dptools.so
Reading symbols from /opt/freeswitch/mod/mod_echo.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_echo.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_echo.so
Reading symbols from /opt/freeswitch/mod/mod_playback.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_playback.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_playback.so
Reading symbols from /opt/freeswitch/mod/mod_dialplan_xml.so...Reading 
symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_dialplan_xml.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_dialplan_xml.so
Reading symbols from /opt/freeswitch/mod/mod_g711.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_g711.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_g711.so
Reading symbols from /opt/freeswitch/mod/mod_gsm.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_gsm.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_gsm.so
Reading symbols from /opt/freeswitch/mod/mod_ilbc.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_ilbc.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_ilbc.so
Reading symbols from /opt/freeswitch/mod/mod_l16.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_l16.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_l16.so
Reading symbols from /opt/freeswitch/mod/mod_speex.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_speex.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_speex.so
Reading symbols from /opt/freeswitch/mod/mod_sndfile.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_sndfile.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_sndfile.so
Reading symbols from /opt/freeswitch/mod/mod_native_file.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_native_file.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_native_file.so
Reading symbols from /opt/freeswitch/mod/mod_softtimer.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_softtimer.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_softtimer.so
Reading symbols from /opt/freeswitch/mod/mod_say_en.so...Reading symbols 
from /usr/lib/debug/opt/freeswitch/mod/mod_say_en.so.debug...done.
done.
Loaded symbols for /opt/freeswitch/mod/mod_say_en.so
#0  0xb7ed1d99 in switch_channel_get_caller_extension (channel=0x80ef130) at 
src/switch_channel.c:955
955     src/switch_channel.c: No such file or directory.
        in src/switch_channel.c
(gdb) bt full
#0  0xb7ed1d99 in switch_channel_get_caller_extension (channel=0x80ef130) at 
src/switch_channel.c:955
        extension = (switch_caller_extension_t *) 0x80eaf70
        __PRETTY_FUNCTION__ = "switch_channel_get_caller_extension"
#1  0xb52b36a4 in CDRContainer::add_cdr (this=0x807bf18, session=0x80eaf70) 
at cdrcontainer.cpp:217
        newchannel = (switch_mod_cdr_newchannel_t *) 0x80a6da0
        __func__ = "add_cdr"
        __PRETTY_FUNCTION__ = "void 
CDRContainer::add_cdr(switch_core_session_t*)"
#2  0xb52b3505 in my_on_hangup (session=0x80eaf70) at mod_cdr.cpp:119
No locals.
#3  0xb7edba4e in switch_core_session_run (session=0x80eaf70) at 
src/switch_core.c:3375
        index = 1
        proceed = 1
        exception = 0 '\0'
        state = CS_HANGUP
        laststate = CS_INIT
        midstate = CS_HANGUP
        endstate = CS_HANGUP
        endpoint_interface = (const switch_endpoint_interface_t *) 0xb3dc9108
        driver_state_handler = (const switch_state_handler_table_t *) 
0xb3dc90c0
        application_state_handler = (const switch_state_handler_table_t *) 
0xb52cb1a0
        __PRETTY_FUNCTION__ = "switch_core_session_run"
        __func__ = "switch_core_session_run"
#4  0xb7edcb01 in switch_core_session_thread (thread=0x80ef6c8, 
obj=0x80eaf70) at src/switch_core.c:3797
        session = (switch_core_session_t *) 0x80eaf70
        __func__ = "switch_core_session_thread"
#5  0xb7f130b8 in dummy_worker (opaque=0x80ef6c8) at 
threadproc/unix/thread.c:138
        thread = (apr_thread_t *) 0x80ef6c8
#6  0xb7dde34b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0xb7d7665e in clone () from /lib/libc.so.6
No symbol table info available.


-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc



More information about the Freeswitch-dev mailing list