471,348 Members | 1,438 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Python 2.4.4, Segmentation fault

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 error. As far as I understand there is recursion in thread 14, which is a reason of the error. Even though I tried to track it down I didn't manage to do it.

I'll be happy to hear any comments, suggestions and any support to my assumption.

TIA

Here is a link to the full gdb info: http://paste-it.net/5038

...

#0 0x0000000800b5356c in pthread_testcancel () from /lib/libpthread.so.2
[New Thread 0x2a6f800 (sleeping)]
[New Thread 0x1786800 (sleeping)]
[New Thread 0x1739000 (sleeping)]
[New Thread 0x1792400 (runnable)]
[New Thread 0x1791800 (sleeping)]
[New Thread 0x1791400 (sleeping)]
[New Thread 0x1791000 (sleeping)]
[New Thread 0x178cc00 (sleeping)]
[New Thread 0x178c400 (sleeping)]
[New Thread 0x1731400 (sleeping)]
[New Thread 0x1690c00 (sleeping)]
[New Thread 0x14f8800 (sleeping)]
[New Thread 0x14f8400 (LWP 100180)]
[New Thread 0x639000 (runnable)]
[New LWP 100087]
(gdb)

...

(gdb) bt
#0 0x0000000800b5352c in pthread_testcancel () from /lib/libpthread.so.2
#1 0x0000000800b42000 in sigaction () from /lib/libpthread.so.2
#2 0x0000000800b4bf1a in pthread_mutexattr_init () from /lib/libpthread.so.2
#3 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffffbff000

...

(gdb) info threads
* 15 LWP 100087 0x0000000800b5356c in pthread_testcancel ()
from /lib/libpthread.so.2
14 Thread 0x639000 (runnable) 0x0000000802b33858 in seq2set (seq=0x5e7520,
set=0x7fffffff1850, fd2obj=0x7fffffff5960)
at /usr/local/ports/distfiles/python/Python-2.4.4/Modules/selectmodule.c:100
13 Thread 0x14f8400 (LWP 100180) 0x0000000800b5352c in pthread_testcancel ()
from /lib/libpthread.so.2
12 Thread 0x14f8800 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
11 Thread 0x1690c00 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
10 Thread 0x1731400 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
9 Thread 0x178c400 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
8 Thread 0x178cc00 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
7 Thread 0x1791000 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
6 Thread 0x1791400 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
5 Thread 0x1791800 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
4 Thread 0x1792400 (runnable) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
3 Thread 0x1739000 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
2 Thread 0x1786800 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
1 Thread 0x2a6f800 (sleeping) 0x0000000800b4bfdf in pthread_mutexattr_init
() from /lib/libpthread.so.2
Dec 5 '07 #1
0 1083

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by satish | last post: by
5 posts views Thread by Fra-it | last post: by
99 posts views Thread by Shi Mu | last post: by
18 posts views Thread by Digital Puer | last post: by
27 posts views Thread by Paminu | last post: by
3 posts views Thread by madunix | last post: by
1 post views Thread by nimitsis | last post: by
9 posts views Thread by Randy.Galbraith | last post: by

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.