Ticket #146 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Changed 3 years ago by gh

  • status changed from new to assigned

Changed 3 years ago by gh

  • milestone changed from 2.2.0 to 2.3.0

Changed 3 years ago by gh

  • milestone deleted

Changed 3 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).

Changed 2 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.

Note: See TracTickets for help on using tickets.