[mod_python] apache2 + mod_python + mod_php segfaults

Martin Lesser ml at bettercom.de
Mon May 23 12:27:25 EDT 2005

This may be OT on this list so please take my apologies for this

I need a pointer which is the right address to report an IMO serious
bug which is _not_ caused by mod_python but occurs when using it.

We use mod_python since several months with success, yesterday we
extended some modules to use cdb-files with python-cdb

The apache 2.0.54 (gentoo-linux) running mod_python also loads mod_php
(4.3.11) and simple code like

| from mod_python import apache, util
| import cdb
| def index(req):
|     _c = cdb.init('any_cdb_file.cdb')
|     _x = _c.get('any_key') # This line caused the segfault, not the init
|     return '<html>%s</html>' % _x

caused a segmentation fault.

After recompiling mod_php several times with reduced options
(--disable-dba, --disable-dbx, --without-cdb etc.) the code above worked
as expected.

How is it possible that one modul (mod_php) causes a segfault in the
main program (apache) when this program executes code from another modul
(mod_python)? Is this an apache-bug?

What's the right place to report this bug?

TIA, Martin

More information about the Mod_python mailing list