Comment 1 for bug 165247

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: PHP and Apache segfault on db4

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I confirm this bug with the following version:
  apache2-mpm-prefork 2.2.6-2
  libapache2-mod-php5 5.2.3-1ubuntu6

TESTCASE:
 1. Install libapache2-mod-php5.
 2. Create /var/www/test.php containing the line:
            <? dba_open('/var/www/map.db', 'c'); ?>
 3. Create /var/www/.htaccess:
           RewriteMap testHash dbm=db:/var/www/map.db
           RewriteRule ^/ex/(.*) ${testHash:$1}
 4. Create /var/www/map.txt:
           a b
 5. Generate the db file with the command:
          $ sudo httxt2dbm -i /var/www/map.txt -o /var/www/map.db
 6. Open the test.php file with a browser. It should prompt you to download test.php. /var/log/apache2/error.log has a line similar to: [notice] child pid 17987 exit signal Segmentation fault (11)

Expected result: blank page.