PHP and Apache segfault on db4 - not linked to the same version of the db library
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Low
|
Daniel Hahler | ||
Gutsy |
Fix Released
|
Low
|
Unassigned | ||
Hardy |
Fix Released
|
Low
|
Daniel Hahler |
Bug Description
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:
When trying to access this file from php5, I get a segfault on:
dba_open(
TESTCASE:
1. Install libapache2-
2. Create /var/www/test.php containing the line:
<?php dba_open(
3. Create /var/www/.htaccess:
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/
Expected result: blank page.
Related branches
CVE References
Changed in php5: | |
assignee: | nobody → blueyed |
importance: | Undecided → Medium |
status: | Triaged → In Progress |
Changed in php5: | |
assignee: | blueyed → nobody |
importance: | Medium → Low |
status: | In Progress → Triaged |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I confirm this bug with the following version: mpm-prefork 2.2.6-2 mod-php5 5.2.3-1ubuntu6
apache2-
libapache2-
TESTCASE: mod-php5. '/var/www/ map.db' , 'c'); ?>
RewriteMap testHash dbm=db: /var/www/ map.db
RewriteRule ^/ex/(.*) ${testHash:$1} apache2/ error.log has a line similar to: [notice] child pid 17987 exit signal Segmentation fault (11)
1. Install libapache2-
2. Create /var/www/test.php containing the line:
<? dba_open(
3. Create /var/www/.htaccess:
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/
Expected result: blank page.