472,968 Members | 1,686 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,968 software developers and data experts.

Segmentation Fault using MySQLdb and twisted

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
0 1880

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: sivignon | last post by:
Hi, I'm writing a php script which deals with 3 ORACLE databases. This script is launch by a script shell on an linux machine like this : /../php/bin/php ./MySript.php (PHP 4.3.3) My script...
6
by: Jay donnell | last post by:
I have a short multi-threaded script that checks web images to make sure they are still there. I get a segmentation fault everytime I run it and I can't figure out why. Writing threaded scripts is...
3
by: Zheng Da | last post by:
Program received signal SIGSEGV, Segmentation fault. 0x40093343 in _int_malloc () from /lib/tls/libc.so.6 (gdb) bt #0 0x40093343 in _int_malloc () from /lib/tls/libc.so.6 #1 0x40094c54 in malloc...
6
by: I_have_nothing | last post by:
Hi! I am new in C. I try to use dynamical allocation fuction malloc( ) and realloc( ). I found something strange. After several calling realloc( ), the malloc( ) will give me a Segmentation...
5
by: Fra-it | last post by:
Hi everybody, I'm trying to make the following code running properly, but I can't get rid of the "SEGMENTATION FAULT" error message when executing. Reading some messages posted earlier, I...
18
by: Digital Puer | last post by:
Hi, I'm coming over from Java to C++, so please bear with me. In C++, is there a way for me to use exceptions to catch segmentation faults (e.g. when I access a location off the end of an array)?...
27
by: Paminu | last post by:
I have a wierd problem. In my main function I print "test" as the first thing. But if I run the call to node_alloc AFTER the printf call I get a segmentation fault and test is not printed! ...
3
by: madunix | last post by:
My Server is suffering bad lag (High Utlization) I am running on that server Oracle10g with apache_1.3.35/ php-4.4.2 Web visitors retrieve data from the web by php calls through oci cobnnection...
0
by: rmashukov | last post by:
Program terminated with signal 11, Segmentation fault. Environment: FreeBSD 6.2, Python 2.4.4, MySQLdb 1.2.2, SQLObject 0.9.1 I faced with an error in our multithreaded, network oriented...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.