Re: [sqlite] Segmentation Fault when using mod_python / mod_wsgi

2008-06-18 Thread Eric Holmberg
This is now officially off-topic since the problem is in the Python SQLite wrappers and Apache instead of the SQLite C code. Regardless, I would like to post the cause and solution so that anybody who ends up here while doing a web search will know the solution. > Program received signal SIGSEGV,

Re: [sqlite] Segmentation Fault when using mod_python / mod_wsgi

2008-06-17 Thread Eric Holmberg
> Eric Holmberg wrote: > > PyDict_GetItem (op=0x0, key=0xb7ce82cc) at Objects/dictobject.c:571 > > 571 if (!PyDict_Check(op)) > > You would need to supply more of the backtrace since the > calling routine is supplying a null pointer instead of a > dictionary. Nothing points to SQLit

Re: [sqlite] Segmentation Fault when using mod_python / mod_wsgi

2008-06-17 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric Holmberg wrote: > PyDict_GetItem (op=0x0, key=0xb7ce82cc) at Objects/dictobject.c:571 > 571 if (!PyDict_Check(op)) You would need to supply more of the backtrace since the calling routine is supplying a null pointer instead of a dicti

[sqlite] Segmentation Fault when using mod_python / mod_wsgi

2008-06-16 Thread Eric Holmberg
I'm trying to solve a RedHat Enterprise Linux 4 issue where I have built, from source, Python 2.5.2, mod_python v3.2.8, and SQLite 3.5.9. SQLite works fine in the Python 2.5.2 interpreter, but when running from mod_python (I also tried mod_wsgi), I get a segmentation fault in the Python file Object