Ticket #146 (closed defect: fixed)
weird crashes when initially constructing the statement cache
| Reported by: | gh | Owned by: | gh |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | implementation | Version: | pysqlite-2.1.3 |
| Severity: | serious | Keywords: | cache mod_python |
| Cc: | nogradi@… |
Description
See http://lists.initd.org/pipermail/pysqlite/2006-January/000343.html
At least one users consistently gets SystemError?: NULL result without error in PyObject_Call when using pysqlite under Apache 2, mod_python, and pysqlite 2.1.*.
Gerhard couldn't reproduce it on Ubuntu 5.10 with pysqlite 2.1.3 and the Python/mod_python/Apache 2 packages in Ubuntu.
Change History
comment:4 Changed 5 years ago by gh
- Status changed from assigned to closed
- Resolution set to fixed
The reason was duplicate symbols with cache_init, which I fixed by adding a lot more name mangling (adding pysqlite_ prefixes to all public names).
comment:5 Changed 5 years ago by christian.boos
This was fixed in r295, so it's not present in release 2.3.2. One needs at least release 2.3.3.
A workaround for earlier releases would be to disable mod_cache, if possible.
apachectl -l
will tell you the list of compiled in modules. If mod_cache is not there, you can remove it or comment out the corresponding LoadModule? line, from your httpd.conf file.
#LoadModule cache_module modules/mod_cache.so
Of course, the above assumes you don't actually need mod_cache...
Then, the same problem could possibly occur for another symbol clash, so best is to upgrade to 2.3.3.