473,833 Members | 2,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_in dex () 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_ini t () from /lib/libssl.so.4
#7 0x00969294 in init_ssl () from
/usr/lib/python2.3/lib-dynload/_ssl.so
#8 0x00d140f9 in _PyImport_LoadD ynamicModule () from
/usr/lib/libpython2.3.so .1.0
#9 0x00d11ea5 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#10 0x00d12303 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#11 0x00d12535 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#12 0x00d1299a in PyImport_Import ModuleEx () 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_Cal l () 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_CallObje ctWithKeywords () from
/usr/lib/libpython2.3.so .1.0
#17 0x00cfaca7 in _PyEval_SliceIn dex () from
/usr/lib/libpython2.3.so .1.0
#18 0x00cff196 in PyEval_EvalCode Ex () 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_ExecCo deModuleEx () from
/usr/lib/libpython2.3.so .1.0
#21 0x00d10c0d in PyImport_ExecCo deModule () from
/usr/lib/libpython2.3.so .1.0
#22 0x00d11e81 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#23 0x00d12303 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#24 0x00d12571 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#25 0x00d1299a in PyImport_Import ModuleEx () 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_Cal l () 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_CallObje ctWithKeywords () from
/usr/lib/libpython2.3.so .1.0
#30 0x00cfaca7 in _PyEval_SliceIn dex () from
/usr/lib/libpython2.3.so .1.0
#31 0x00cff196 in PyEval_EvalCode Ex () 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_ExecCo deModuleEx () from
/usr/lib/libpython2.3.so .1.0
#34 0x00d10c0d in PyImport_ExecCo deModule () from
/usr/lib/libpython2.3.so .1.0
#35 0x00d11e81 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#36 0x00d12303 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#37 0x00d127c7 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#38 0x00d12bad in PyImport_Import ModuleEx () 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_Cal l () 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_CallObje ctWithKeywords () from
/usr/lib/libpython2.3.so .1.0
#43 0x00cfaca7 in _PyEval_SliceIn dex () from
/usr/lib/libpython2.3.so .1.0
#44 0x00cff196 in PyEval_EvalCode Ex () 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_ExecCo deModuleEx () from
/usr/lib/libpython2.3.so .1.0
#47 0x00d10c0d in PyImport_ExecCo deModule () from
/usr/lib/libpython2.3.so .1.0
#48 0x00d11e81 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#49 0x00d12165 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#50 0x00d11eb1 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#51 0x00d12303 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#52 0x00d12535 in PyImport_Import FrozenModule () from
/usr/lib/libpython2.3.so .1.0
#53 0x00d1299a in PyImport_Import ModuleEx () 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_Cal l () 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_CallObje ctWithKeywords () from
/usr/lib/libpython2.3.so .1.0
#58 0x00cfaca7 in _PyEval_SliceIn dex () from
/usr/lib/libpython2.3.so .1.0
#59 0x00cff196 in PyEval_EvalCode Ex () 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_Interacti veOneFlags () from
/usr/lib/libpython2.3.so .1.0
#63 0x00d19f9a in PyRun_Interacti veLoopFlags () from
/usr/lib/libpython2.3.so .1.0
#64 0x00d1aa67 in PyRun_AnyFileEx Flags () 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 1927

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

Similar topics

2
6817
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 works fine and do all what I need. But at the end of the execution, I can read "Segmentation Fault". The segmentation fault appear at the end of my script execution,
6
4797
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 new to me so I may be doing something wrong that should be obvious :( google messes up the python code so here is a link to it. http://kracomp.com/~jay/py.txt This is the output of the script.
3
11464
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 () from /lib/tls/libc.so.6 It's really strange; I just call malloc() like "tmp=malloc(size);" the system gives me Segmentation fault I want to write a code to do like a dynamic array, and the code is as
6
4785
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 fault. If I just call realloc( ) once before calling malloc( ), it is OK. Why? I am trying to read some double-typed items from infile and save them
5
3001
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 understood that a segmentation fault can occur whenever I declare a pointer and I leave it un-initialized. So I thought the problem here is with the (const char *)s in the stuct flightData (please note that I get the same fault declaring as char * the...
18
26127
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)? Thanks.
27
3377
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! #include <stdlib.h> #include <stdio.h> typedef struct _node_t {
3
5192
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 from 10g release2 PHP is configured with the following parameters './configure' '--prefix=/opt/oracle/php' '--with-apxs=/opt/oracle/apache/bin/apxs' '--with-config-file-path=/opt/oracle/apache/conf' '--enable-safe-mode' '--enable-session'...
0
1166
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 application, wich interacts actively with MySQL database. Brief information from core dump is below (more detailed one is in the file attached). Though I am not very experienced with FreeBSD and gdb, I have still tried to collect information about the...
0
9796
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10543
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9323
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7753
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3972
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.