VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
joes.mailing.lists at ... Guest
|
Posted: Tue Nov 11, 2008 10:46 pm Post subject: [Freeswitch-users] mod_python sqlalchemy core dumps |
|
|
Hi,
I've been having some frustrations with mod_python lately. I've
stripped down the script I've been using to the barest of bare bones,
and am still getting core dumps; so I've decided to share it in the
hopes that someone else will be able to see where I've gone wrong.
The stripped down script below does nothing more than answer, lookup
a caller based on their caller_id_number and then play back some
audio. I'm pretty certain that the issue is with sqlalchemy, but I'm
still not clear as to why sqlalchemy should cause freeswitch to dump
core and die.
The database model I'm using with sqlalchemy is also quite simple,
and has worked fine for almost a year with a corresponding pylons
application, so I'm fairly confident that the model itself is not the
underlying problem. My best guess thus far is that sqlalchemy is
somehow tripping up mod_python and then freeswitch with the way it
attempts to maintain connections/state across calls?
In any case my setup is as follows:
Python Version: 2.4.4
sqlalchemy v0.5.0rc2
freeswitch (1.0.1) [from changelog, compiled from src]
Debian 4.0 etch
The script I'm running (trying to run right now):
---------------------------------------------------------------------------------------
# -*- mode: python; coding: utf-8 -*-
import os, re, sys
from freeswitch import *
from datetime import datetime
from time import strftime, gmtime
from loadmodel import model
consoleLog("info", "Current Python Version: %s\n\n" % str(sys.version))
def hangup_hook( session, what, caller_id ):
"""
Default hangup hook. Overload as needed.
"""
consoleLog("info","The application hung up for %s.\n\n" % what)
return
def input_callback(session, what, obj, arg):
"""
Default input callback for dtmf and other events. Overload
this as needed.
"""
if (what == "dtmf"):
consoleLog("info", what + " " + obj.digit + "\n")
try:
return arg[obj.digit]
except:
return None # will make the streamfile audio stop
else:
consoleLog("info", what + " " + obj.serialize() + "\n")
return "pause"
def get_current_caller( session ):
"""
Dig up the current caller in the database.
if the caller isn't registered return null.
"""
current_caller =
model.Session.query(model.Caller).filter_by(phone=session.getVariable('caller_id_number')).first()
if current_caller==None:
current_caller =
model.Session.query(model.Caller).filter_by(phone="123456789").first()
return current_caller
class dummy_caller:
def __init__(self, user_id="0", phone="123456789"):
self.user_id = user_id
self.phone = phone
def handler( session, args ):
session.answer( )
playback_dtmf =
{"1":"pause","3":"stop","7":"seek:-500","9":"seek:+500"}
recording_dtmf = {"2":"stop","3":"stop","5":"stop","6":"stop"}
guidance_dtmf = {"3":"stop","4":"stop","9":"stop"} #3 upload,
4 replay, 9 re-record
session.setVariable( "intro",
"/usr/local/freeswitch/sounds/ja/test/test_intro_padded.wav" )
session.setVariable( "guidance",
"/usr/local/freeswitch/sounds/ja/test/test_annai_padded.wav" )
session.setVariable( "goodbye",
"/usr/local/freeswitch/sounds/ja/test/test_thanks_padded.wav" )
session.setVariable( "beep",
"/usr/local/freeswitch/sounds/beeps/beep_fm.wav" )
current_caller = get_current_caller( session )
session.setHangupHook( hangup_hook, str(current_caller.user_id) )
session.streamFile( session.getVariable("intro") )
#make_recording( session, recording_dtmf,
session.getVariable("intro"), process=True )
session.streamFile( session.getVariable("goodbye") )
session.hangup( )
---------------------------------------------------------------------------------------
After 2 or sometimes 3 calls this inevitably causes the following crash:
---------------------------------------------------------------------------------------
2008-11-12 12:40:08 [NOTICE] switch_channel.c:538
switch_channel_set_name() New Channel
sofia/external/+818053753079@voxbone.com
[9a56541a-b06b-11dd-8a29-191ef9635961]
2008-11-12 12:40:08 [INFO] mod_dialplan_xml.c:228 dialplan_hunt()
Processing +XXXXXXXX->9993 in context default
Segmentation fault (core dumped)
---------------------------------------------------------------------------------------
I've spent hours hunting through related lists: mod_python (for
apache), sqlalchemy, etc. but all to no avail. Any suggestions or
alternatives ( I've also started looking into outbound event socket,
but there still seems to be few people using this with python/twisted
) will be greatly appreciated. If all else fails I can probably
switch to perl or js but I'd much prefer to stick to python if there
is a workable solution ( or -hopefully- if I've just missed something
very obvious ).
Cheers
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
joes.mailing.lists at ... Guest
|
Posted: Wed Nov 12, 2008 6:06 am Post subject: [Freeswitch-users] mod_python sqlalchemy core dumps |
|
|
Hi,
It seems (still need to run a few more tests to be sure) you have
completely solved my problem. This had been driving me nuts for the
last several days, and I can't tell you how helpful this simple
suggestion was!
Quote: | I've used Django/psycopg + mod_python successfully in production and it
never crashes. (never tried sqlalchemy).
One thing you could try is to remove the hangup hook. That has been
problematic in the past and not well tested AFAIK. I doubt that's the
problem but you never know.
| After I removed the hangup hook all of my problems disappeared.
Maybe it's worth adding something to the freeswitch mod_python wiki
page about this? I still don't know exactly why this causes a core
dump, and it seems to work ok, as long as there is nothing else
interacting with it (e.g. sqlalchemy), but it probably would have
taken me quite a while longer to get to this on my own, given the
prominent placing of the hangup_hook in most of the examples on the
wiki.
Quote: | Also please load the core dump in gdb and post a backtrace.. maybe that will
reveal something interesting. (or maybe it won't). Actually you might want
to put it in a jira bug in case it becomes an involved debugging process.
| I did this as well, after recompiling freeswitch with
# export CFLAGS="-g -ggdb"
# export MOD_CFLAGS="-g -ggdb"
as suggested in the wiki, however the results didnt seem very helpful:
(gdb) core core.4051
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Core was generated by `/usr/local/freeswitch/bin/freeswitch'.
Program terminated with signal 11, Segmentation fault.
#0 0x00e140df in ?? ()
Quote: | Quote: | I've spent hours hunting through related lists: mod_python (for
apache), sqlalchemy, etc. but all to no avail. Any suggestions or
alternatives ( I've also started looking into outbound event socket,
but there still seems to be few people using this with python/twisted
) will be greatly appreciated.
| Yeah an outbound event socket framework in python would be really cool.
deally you could write a script in the same style as mod_python scripts,
and the framework behind it would handle all the communication with the
switch. Kamealia might be a bettter networking library than Twisted for
this one.
| I still think this could be very nice, and useful. I'm not familiar
with kamealia at all. if you don't mind, could you elaborate on why
you think it would be preferable to twisted in this case?
Thanks again!
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
joes.mailing.lists at ... Guest
|
Posted: Wed Nov 12, 2008 9:34 pm Post subject: [Freeswitch-users] mod_python sqlalchemy core dumps |
|
|
Hi,
Quote: | 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
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Wed Nov 12, 2008 9:44 pm Post subject: [Freeswitch-users] mod_python sqlalchemy core dumps |
|
|
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"
/b
On Nov 12, 2008, at 8:31 PM, . wrote:
Quote: | 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
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
joes.mailing.lists at ... Guest
|
Posted: Thu Nov 13, 2008 2:44 am Post subject: [Freeswitch-users] mod_python sqlalchemy core dumps |
|
|
Hi,
Quote: | 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
/usr/lib/libpython2.4.so.1.0
#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,
application_interface=0x9d69c18,
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
src/switch_core_state_machine.c:430
#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
threadproc/unix/thread.c:138
#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
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Thu Nov 13, 2008 8:58 am Post subject: [Freeswitch-users] mod_python sqlalchemy core dumps |
|
|
has anyone tried it with latest trunk to see if we fixed it yet?
On Thu, Nov 13, 2008 at 1:42 AM, . <joes.mailing.lists@gmail.com (joes.mailing.lists@gmail.com)> wrote:
Quote: | Hi,
Quote: | 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
/usr/lib/libpython2.4.so.1.0
#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,
application_interface=0x9d69c18,
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
src/switch_core_state_machine.c:430
#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
threadproc/unix/thread.c:138
#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
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|