Comment 0 for bug 165247

Revision history for this message
Zefram (zefram) wrote : PHP and Apache segfault on db4

Binary package hint: libapache2-mod-php5

I'm getting a segfault when trying to read in PHP5 some db4 RewriteMaps in Apache. I believe the problem has to do with linking of different db4 libraries in php5 and apache2:

apache2-mpm-prefork requires libdb4.4
libapache2-mod-php5 requires libdb4.5

So, to reiterate a bit. I have some RewriteMaps in Apache2, such as:

RewriteMap testHash dbm=db:/var/www/website/map.db

When trying to access this file from php5, I get a segfault on:

dba_open('/var/www/website/map.db', 'c');