Re: segfault with sqlite-3.5.2
Gerhard Haering <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <3897741736b333155f8b87eacfa33db9@localhost> |
On Mon, 19 Nov 2007 10:24:31 +0100, <kambitz.darabi.sp-5Wlsihp/[email protected]> wrote: > 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) [...] I think this is caused by http://initd.org/tracker/pysqlite/ticket/215 and #217 Basically there's currently a crash if you try to execute an empty statement, like cur.execute(""). This is not something you'll encounter in your own applications normally. When was the last time you tried to execute an empty statement? ;-) Looks like it's time for another pysqlite 2.3.x release. -- Gerhard