[Freeswitch-users] mod_python sqlalchemy core dumps

. joes.mailing.lists at gmail.com
Wed Nov 12 18:31:21 PST 2008


Hi,
>If you can get a good core dump it might reveal something.  Maybe a clean
>build or something .. I thought it was built with debugging symbols by
>default.  Also you should call gdb freeswitch core.1234 (2nd arg should be
>freeswitch binary) if you are not already.
  Here is a more useful core dump read out,

405112-31-39-01-C0-81:/usr/lib/python2.4/site-packages/foo# gdb
/usr/local/freeswitch/bin/freeswitch core.
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "i486-linux-gnu"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /usr/local/freeswitch/lib/libfreeswitch.so.1...done.
Loaded symbols for /usr/local/freeswitch/lib/libfreeswitch.so.1
Reading symbols from /lib/tls/i686/cmov/librt.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
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 /usr/local/freeswitch/mod/mod_console.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_console.so
Reading symbols from /usr/local/freeswitch/mod/mod_logfile.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_logfile.so
Reading symbols from /usr/local/freeswitch/mod/mod_enum.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_enum.so
Reading symbols from /usr/local/freeswitch/mod/mod_xml_rpc.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_xml_rpc.so
Reading symbols from /usr/local/freeswitch/mod/mod_cdr_csv.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_cdr_csv.so
Reading symbols from /usr/local/freeswitch/mod/mod_event_socket.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_event_socket.so
Reading symbols from /usr/local/freeswitch/mod/mod_sofia.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_sofia.so
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /usr/local/freeswitch/mod/mod_commands.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_commands.so
Reading symbols from /usr/local/freeswitch/mod/mod_conference.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_conference.so
Reading symbols from /usr/local/freeswitch/mod/mod_dptools.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_dptools.so
Reading symbols from /usr/local/freeswitch/mod/mod_expr.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_expr.so
Reading symbols from /usr/local/freeswitch/mod/mod_fifo.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_fifo.so
Reading symbols from /usr/local/freeswitch/mod/mod_voicemail.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_voicemail.so
Reading symbols from /usr/local/freeswitch/mod/mod_limit.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_limit.so
Reading symbols from /usr/local/freeswitch/mod/mod_esf.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_esf.so
Reading symbols from /usr/local/freeswitch/mod/mod_fsv.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_fsv.so
Reading symbols from /usr/local/freeswitch/mod/mod_dialplan_xml.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_dialplan_xml.so
Reading symbols from /usr/local/freeswitch/mod/mod_dialplan_asterisk.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_dialplan_asterisk.so
Reading symbols from /usr/local/freeswitch/mod/mod_voipcodecs.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_voipcodecs.so
Reading symbols from /usr/local/freeswitch/mod/mod_g723_1.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_g723_1.so
Reading symbols from /usr/local/freeswitch/mod/mod_g729.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_g729.so
Reading symbols from /usr/local/freeswitch/mod/mod_amr.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_amr.so
Reading symbols from /usr/local/freeswitch/mod/mod_ilbc.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_ilbc.so
Reading symbols from /usr/local/freeswitch/mod/mod_speex.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_speex.so
Reading symbols from /usr/local/freeswitch/mod/mod_h26x.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_h26x.so
Reading symbols from /usr/local/freeswitch/mod/mod_sndfile.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_sndfile.so
Reading symbols from /usr/local/freeswitch/mod/mod_native_file.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_native_file.so
Reading symbols from /usr/local/freeswitch/mod/mod_local_stream.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_local_stream.so
Reading symbols from /usr/local/freeswitch/mod/mod_tone_stream.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_tone_stream.so
Reading symbols from /usr/local/freeswitch/mod/mod_spidermonkey.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_spidermonkey.so
Reading symbols from /usr/local/freeswitch/lib/libnspr4.so...done.
Loaded symbols for /usr/local/freeswitch/lib/libnspr4.so
Reading symbols from /usr/local/freeswitch/lib/libjs.so.1...done.
Loaded symbols for /usr/local/freeswitch/lib/libjs.so.1
Reading symbols from
/usr/local/freeswitch/mod/mod_spidermonkey_teletone.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_spidermonkey_teletone.so
Reading symbols from
/usr/local/freeswitch/mod/mod_spidermonkey_core_db.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_spidermonkey_core_db.so
Reading symbols from
/usr/local/freeswitch/mod/mod_spidermonkey_socket.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_spidermonkey_socket.so
Reading symbols from /usr/local/freeswitch/mod/mod_python.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_python.so
Reading symbols from /lib/tls/i686/cmov/libutil.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libutil.so.1
Reading symbols from /usr/lib/libpython2.4.so.1.0...done.
Loaded symbols for /usr/lib/libpython2.4.so.1.0
Reading symbols from /usr/local/freeswitch/mod/mod_lua.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_lua.so
Reading symbols from /usr/local/freeswitch/mod/mod_say_en.so...done.
Loaded symbols for /usr/local/freeswitch/mod/mod_say_en.so
Reading symbols from /usr/lib/python2.4/lib-dynload/datetime.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/datetime.so
Reading symbols from /usr/lib/python2.4/lib-dynload/time.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/time.so
Reading symbols from /usr/lib/python2.4/lib-dynload/zlib.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/zlib.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/python2.4/lib-dynload/strop.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/strop.so
Reading symbols from /usr/lib/python2.4/lib-dynload/collections.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/collections.so
Reading symbols from /usr/lib/python2.4/lib-dynload/itertools.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/itertools.so
Reading symbols from /usr/lib/python2.4/lib-dynload/operator.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/operator.so
Reading symbols from /usr/lib/python2.4/lib-dynload/_weakref.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/_weakref.so
Reading symbols from /usr/lib/python2.4/lib-dynload/cPickle.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/cPickle.so
Reading symbols from /usr/lib/python2.4/lib-dynload/cStringIO.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/cStringIO.so
Reading symbols from /usr/lib/python2.4/lib-dynload/_socket.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/_socket.so
Reading symbols from /usr/lib/python2.4/lib-dynload/_ssl.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/_ssl.so
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /usr/lib/python2.4/lib-dynload/math.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/math.so
Reading symbols from /usr/lib/python2.4/lib-dynload/binascii.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/binascii.so
Reading symbols from /usr/lib/python2.4/lib-dynload/_random.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/_random.so
Reading symbols from /usr/lib/python2.4/lib-dynload/fcntl.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/fcntl.so
Reading symbols from /usr/lib/python2.4/lib-dynload/struct.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/struct.so
Reading symbols from /usr/lib/python2.4/lib-dynload/sha.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/sha.so
Reading symbols from /usr/lib/python2.4/lib-dynload/array.so...done.
Loaded symbols for /usr/lib/python2.4/lib-dynload/array.so
Reading symbols from /usr/lib/python2.4/site-packages/_mysql.so...done.
Loaded symbols for /usr/lib/python2.4/site-packages/_mysql.so
Reading symbols from /usr/lib/libmysqlclient_r.so.15...done.
Loaded symbols for /usr/lib/libmysqlclient_r.so.15
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Core was generated by `/usr/local/freeswitch/bin/freeswitch'.
Program terminated with signal 11, Segmentation fault.
#0  0x00e140df in PyObject_Malloc () from /usr/lib/libpython2.4.so.1.0

unfortunately I'm still not entirely sure what this adds up to, other
than the obvious memory allocation problem.  Is this a direct issue
with sqlalchemy/the python mysql backend? It would seem that the
hangup hook has some issue with one of these, as sqlalchemy works fine
without the hangup hook, and the hangup hook seems generally ok
without sqlalchemy, but put the two together and you've got problems.

i wonder if switching up to python2.5 would be a good idea?

Cheers




More information about the FreeSWITCH-users mailing list