segfault with sqlite-3.5.2

<kambitz.darabi.sp-5Wlsihp/[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <0B4C3A4F8A69BA428F5D398AE34F99900596F2C7@XW2K3-FRAMBX-03.ads.dlh.de>
Hello,

for the first time in my life, I need to compile the sqlite/pysqlite
combo from scratch, because the Red Hat Linux 9 server (i686, kernel
2.4.20-31.9smp), where I want to use them is not under my control and I
cannot install binary packages there.

Compiling sqlite 3.5.2 went smoothly and all tests run fine. I ran the
configure script without any additional options.
 
Building pysqlite 2.3.5 also produces no errors. Installation works.

When trying to run the tests, I immediately get a segmentation fault:

Python 2.4.4 (#2, Nov 16 2007, 10:59:28)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pysqlite2 import test
>>> test.test()
........................................................................
........
Segmentation fault (core dumped)


gdb output is the following:

$gdb /usr/local/python/bin/python

(gdb) core core.1718

Core was generated by `python'.
Program terminated with signal 11, Segmentation fault.
Loaded symbols for /lib/tls/libpthread.so.0 Loaded symbols for
/lib/libdl.so.2 Loaded symbols for /lib/libutil.so.1 Loaded symbols for
/usr/lib/libstdc++.so.5 Loaded symbols for /lib/tls/libm.so.6 Loaded
symbols for /lib/libgcc_s.so.1 Loaded symbols for /lib/tls/libc.so.6
Loaded symbols for /lib/ld-linux.so.2 Reading symbols from
/usr/local/python/lib/python2.4/lib-dynload/readline.so...done.
Loaded symbols for
/usr/local/python/lib/python2.4/lib-dynload/readline.so
Loaded symbols for /usr/lib/libreadline.so.4 Loaded symbols for
/usr/lib/libncurses.so.5 Reading symbols from
/usr/local/python/lib/python2.4/lib-dynload/time.so...done.
Loaded symbols for /usr/local/python/lib/python2.4/lib-dynload/time.so
Reading symbols from
/usr/local/python/lib/python2.4/lib-dynload/collections.so...done.
Loaded symbols for
/usr/local/python/lib/python2.4/lib-dynload/collections.so
Reading symbols from
/usr/local/python/lib/python2.4/lib-dynload/datetime.so...
done.
Loaded symbols for
/usr/local/python/lib/python2.4/lib-dynload/datetime.so
Reading symbols from
/usr/local/python/lib/python2.4/site-packages/pysqlite2/_sqllite.so...do
ne.
Loaded symbols for
/usr/local/python/lib/python2.4/site-packages/pysqlite2/_sqlite.so
Loaded symbols for /usr/local/lib/libsqlite3.so.0 Reading symbols from
/usr/local/python/lib/python2.4/lib-dynload/zlib.so...done.
Loaded symbols for /usr/local/python/lib/python2.4/lib-dynload/zlib.so
Loaded symbols for /usr/lib/libz.so.1

#0  sqlite3_step (pStmt=0x0) at ../sqlite-3.5.2/src/vdbeapi.c:389
389       sqlite3_mutex_enter(v->db->mutex);

(gdb)bt

#0  sqlite3_step (pStmt=0x0) at ../sqlite-3.5.2/src/vdbeapi.c:389
#1  0x4022c353 in _sqlite_step_with_busyhandler (statement=0x0,
    connection=0x402cac50) at src/util.c:32
#2  0x4022a8aa in pysqlite_cursor_executescript (self=0x402c4800,
    args=0x402ce9ac) at src/cursor.c:803
#3  0x080f9258 in PyCFunction_Call (func=0x402b56ec, arg=0x402ce9ac,
kw=0x1)
    at Objects/methodobject.c:108

...

Do you have any hints how I could solve the problem and get a working
pysqlite? 

I would like to use it to run trac through an apache2 mod_python.

Many thanks in advance


Kambiz
 
Sitz der Gesellschaft / Corporate Headquarters:
Lufthansa Systems Airline Services GmbH, Kelsterbach
Registereintragung / Registration:
Amtsgericht Darmstadt 83849
 
Geschaeftsfuehrung/ Management:
Dr. Ulrike Gall
Robert Viertel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.