[Freeswitch-users] mod_python sqlalchemy core dumps

. joes.mailing.lists at gmail.com
Wed Nov 12 23:42:28 PST 2008

>Well this backtrace doesn't help at all.  See the line starting with
>#0... at that point you need to type "bt" and email that to the list..
>and just the part after you type "bt"
Sorry about the spam.  This is my first time using gdb ( or any
similar tool ).  I've generated
another core dump with the same script and done as you suggested in
gdb.  Below is the semi
abbreviated readout, hopefully it is more useful than my previous submission.

*** glibc detected *** free(): invalid pointer: 0xb5e98009 ***
Aborted (core dumped)
$ gdb /usr/local/freeswitch/bin/freeswitch core.12966
GNU gdb 6.4.90-debian1-C0-81:/usr/lib/python2.4/site-packages/foo# gdb
/usr/local/freeswitch/bin/freeswitch core.12966
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.
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 6, Aborted.
#0  0x007a6402 in __kernel_vsyscall ()
(gdb) bt
#0  0x007a6402 in __kernel_vsyscall ()
#1  0x001389d1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0x0013a219 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0x0016e98a in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#4  0x001762df in mallopt () from /lib/tls/i686/cmov/libc.so.6
#5  0x00176382 in free () from /lib/tls/i686/cmov/libc.so.6
#6  0x01043031 in PyObject_Free () from /usr/lib/libpython2.4.so.1.0
#7  0x01047bdc in PyString_ConcatAndDel () from /usr/lib/libpython2.4.so.1.0
#8  0x0104f285 in PyTuple_Size () from /usr/lib/libpython2.4.so.1.0
#9  0x0104f285 in PyTuple_Size () from /usr/lib/libpython2.4.so.1.0
#10 0x0107d014 in PySymtable_Free () from /usr/lib/libpython2.4.so.1.0
#11 0x01096f6d in PyImport_ImportFrozenModule () from
#12 0x010975f4 in PyImport_ReloadModule () from /usr/lib/libpython2.4.so.1.0
#13 0x00d10b47 in eval_some_python (funcname=0xd2431b "handler",
args=<value optimized out>, session=0x9e4b740,
    stream=0x0, params=0x0, str=0x0) at mod_python.c:127
#14 0x00d110c6 in python_function (session=0x9e4b740, data=0x9ff8db0
"foo.bar") at mod_python.c:279
#15 0x0050f7c1 in switch_core_session_exec (session=0x9e4b740,
    arg=0x9ff8db0 "foo.bar") at src/switch_core_session.c:1126
#16 0x0050f45e in switch_core_session_execute_application
(session=0x9e4b740, app=0x9ff8da8 "python",
    arg=0x9ff8db0 "foo.bar") at src/switch_core_session.c:1077
#17 0x0051054a in switch_core_standard_on_execute (session=0x9e4b740)
at src/switch_core_state_machine.c:143
#18 0x00511c07 in switch_core_session_run (session=0x9e4b740) at
#19 0x0050e345 in switch_core_session_thread (thread=0x9ff8a38,
obj=0x9e4b740) at src/switch_core_session.c:792
#20 0x0056f026 in dummy_worker (opaque=0x9ff8a38) at
#21 0x00a7b267 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#22 0x001dd60e in clone () from /lib/tls/i686/cmov/libc.so.6

More information about the FreeSWITCH-users mailing list