** Attachment added: "debdiff for gutsy-proposed (updated)"
   http://launchpadlibrarian.net/10983343/php5_5.2.3-1ubuntu6.3.dsc.diff

** Attachment removed: "debdiff for gutsy-proposed"

   http://launchpadlibrarian.net/10981736/php5_5.2.3-1ubuntu6.3.dsc.diff

** Description changed:

  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');
+ 
+ TESTCASE:
+   1. Install libapache2-mod-php5.
+   2. Create /var/www/test.php containing the line:
+              <?php 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.

-- 
PHP and Apache segfault on db4 - not linked to the same version of the db 
library
https://bugs.launchpad.net/bugs/165247
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to