By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,567 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

Segmentation Fault using MySQLdb and twisted

P: n/a
Hello,

I just upgraded MySQLdb to the 1.2.0 version provided by Redhat
Enterprise Linux ES4. At that point I began to get segfaults when
importing twisted after MySQLdb, but not before.

--
RedHat Enterprise Linux ES 4 (fully updated)
Python 2.3.4
mysql-python (MySQLdb) version 1.2.0
twisted version 2.4.0
--

For example:

[jason@lake ~]$ python
Python 2.3.4 (#1, Feb 6 2006, 10:38:46)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>import MySQLdb
import twisted
Segmentation fault

[jason@lake ~]$ python
Python 2.3.4 (#1, Feb 6 2006, 10:38:46)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>import twisted
import MySQLdb
Any ideas?

Thanks!
Jason Garber

---------------------------------------------------------------------------------------------------------------------------
Here is the gdb backtrace of the event:

[jason@lake zcore]$ gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 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 "i386-redhat-linux-gnu"...(no debugging
symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/python
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208486208 (LWP 4302)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Python 2.3.4 (#1, Feb 6 2006, 10:38:46)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
>>import MySQLdb
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
>>import twisted
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208486208 (LWP 4302)]
0x00b849f8 in strcmp () from /lib/tls/libc.so.6
(gdb) bt
#0 0x00b849f8 in strcmp () from /lib/tls/libc.so.6
#1 0x00494e9d in OBJ_NAME_new_index () from /lib/libcrypto.so.4
#2 0x0049122f in lh_free () from /lib/libcrypto.so.4
#3 0x004914ff in lh_insert () from /lib/libcrypto.so.4
#4 0x00495075 in OBJ_NAME_add () from /lib/libcrypto.so.4
#5 0x00499405 in EVP_add_cipher () from /lib/libcrypto.so.4
#6 0x00590bc7 in SSL_library_init () from /lib/libssl.so.4
#7 0x00969294 in init_ssl () from
/usr/lib/python2.3/lib-dynload/_ssl.so
#8 0x00d140f9 in _PyImport_LoadDynamicModule () from
/usr/lib/libpython2.3.so.1.0
#9 0x00d11ea5 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#10 0x00d12303 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#11 0x00d12535 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#12 0x00d1299a in PyImport_ImportModuleEx () from
/usr/lib/libpython2.3.so.1.0
#13 0x00cf1dee in _PyUnicodeUCS4_IsAlpha () from
/usr/lib/libpython2.3.so.1.0
#14 0x00cca961 in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0
#15 0x00ca7637 in PyObject_Call () from /usr/lib/libpython2.3.so.1.0
#16 0x00cf92a0 in PyEval_CallObjectWithKeywords () from
/usr/lib/libpython2.3.so.1.0
#17 0x00cfaca7 in _PyEval_SliceIndex () from
/usr/lib/libpython2.3.so.1.0
#18 0x00cff196 in PyEval_EvalCodeEx () from
/usr/lib/libpython2.3.so.1.0
#19 0x00cff45d in PyEval_EvalCode () from /usr/lib/libpython2.3.so.1.0
#20 0x00d107db in PyImport_ExecCodeModuleEx () from
/usr/lib/libpython2.3.so.1.0
#21 0x00d10c0d in PyImport_ExecCodeModule () from
/usr/lib/libpython2.3.so.1.0
#22 0x00d11e81 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#23 0x00d12303 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#24 0x00d12571 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#25 0x00d1299a in PyImport_ImportModuleEx () from
/usr/lib/libpython2.3.so.1.0
#26 0x00cf1dee in _PyUnicodeUCS4_IsAlpha () from
/usr/lib/libpython2.3.so.1.0
#27 0x00cca961 in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0
#28 0x00ca7637 in PyObject_Call () from /usr/lib/libpython2.3.so.1.0
#29 0x00cf92a0 in PyEval_CallObjectWithKeywords () from
/usr/lib/libpython2.3.so.1.0
#30 0x00cfaca7 in _PyEval_SliceIndex () from
/usr/lib/libpython2.3.so.1.0
#31 0x00cff196 in PyEval_EvalCodeEx () from
/usr/lib/libpython2.3.so.1.0
#32 0x00cff45d in PyEval_EvalCode () from /usr/lib/libpython2.3.so.1.0
#33 0x00d107db in PyImport_ExecCodeModuleEx () from
/usr/lib/libpython2.3.so.1.0
#34 0x00d10c0d in PyImport_ExecCodeModule () from
/usr/lib/libpython2.3.so.1.0
#35 0x00d11e81 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#36 0x00d12303 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#37 0x00d127c7 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#38 0x00d12bad in PyImport_ImportModuleEx () from
/usr/lib/libpython2.3.so.1.0
#39 0x00cf1dee in _PyUnicodeUCS4_IsAlpha () from
/usr/lib/libpython2.3.so.1.0
#40 0x00cca961 in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0
#41 0x00ca7637 in PyObject_Call () from /usr/lib/libpython2.3.so.1.0
#42 0x00cf92a0 in PyEval_CallObjectWithKeywords () from
/usr/lib/libpython2.3.so.1.0
#43 0x00cfaca7 in _PyEval_SliceIndex () from
/usr/lib/libpython2.3.so.1.0
#44 0x00cff196 in PyEval_EvalCodeEx () from
/usr/lib/libpython2.3.so.1.0
#45 0x00cff45d in PyEval_EvalCode () from /usr/lib/libpython2.3.so.1.0
#46 0x00d107db in PyImport_ExecCodeModuleEx () from
/usr/lib/libpython2.3.so.1.0
#47 0x00d10c0d in PyImport_ExecCodeModule () from
/usr/lib/libpython2.3.so.1.0
#48 0x00d11e81 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#49 0x00d12165 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#50 0x00d11eb1 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#51 0x00d12303 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#52 0x00d12535 in PyImport_ImportFrozenModule () from
/usr/lib/libpython2.3.so.1.0
#53 0x00d1299a in PyImport_ImportModuleEx () from
/usr/lib/libpython2.3.so.1.0
#54 0x00cf1dee in _PyUnicodeUCS4_IsAlpha () from
/usr/lib/libpython2.3.so.1.0
#55 0x00cca961 in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0
#56 0x00ca7637 in PyObject_Call () from /usr/lib/libpython2.3.so.1.0
#57 0x00cf92a0 in PyEval_CallObjectWithKeywords () from
/usr/lib/libpython2.3.so.1.0
#58 0x00cfaca7 in _PyEval_SliceIndex () from
/usr/lib/libpython2.3.so.1.0
#59 0x00cff196 in PyEval_EvalCodeEx () from
/usr/lib/libpython2.3.so.1.0
#60 0x00cff45d in PyEval_EvalCode () from /usr/lib/libpython2.3.so.1.0
---Type <returnto continue, or q <returnto quit---
#61 0x00d18917 in PyErr_Display () from /usr/lib/libpython2.3.so.1.0
#62 0x00d19e37 in PyRun_InteractiveOneFlags () from
/usr/lib/libpython2.3.so.1.0
#63 0x00d19f9a in PyRun_InteractiveLoopFlags () from
/usr/lib/libpython2.3.so.1.0
#64 0x00d1aa67 in PyRun_AnyFileExFlags () from
/usr/lib/libpython2.3.so.1.0
#65 0x00d1f78e in Py_Main () from /usr/lib/libpython2.3.so.1.0
#66 0x080485b2 in main ()

Aug 16 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.