#40211 [NEW]: dba_firstkey segfaults when used with mod_php5
| From: | stuhood at gmail dot com | Date: | Tue, 23 Jan 2007 14:40:29 +0000 |
| Subject: | #40211 [NEW]: dba_firstkey segfaults when used with mod_php5 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-107937@lists.php.net to get a copy of this message | ||
From: stuhood at gmail dot com
Operating system: Red Hat w/ 2.4.21-32.0.1.EL
PHP version: 5.2.0
PHP Bug Type: DBM/DBA related
Bug description: dba_firstkey segfaults when used with mod_php5
Description:
------------
This bug affects 5.1.4, 5.2.0 and latest CVS on this system, compiled with
"--enable-dba=shared --with-db4=/usr/local/BerkeleyDB.4.5/" (or 4.3), and
with the dba shared extension in my php.ini file. httpd version is
Apache/2.0.46.
php run-tests.php ext/dba runs without errors.
Permissions:
-rw-r--r-- thedatabase.db
Reproduce code:
---------------
The following script works correctly from the command line, but causes
httpd processes to segfault. With a dba_exists call instead of firstkey,
it works fine, so I'm fairly certain its a problem with firstkey:
<?php
$db = dba_open("thedatabase.db", "r", "db4");
$key = dba_firstkey ($db);
if($db)
print "Success: ".$key."\n";
dba_close($db);
?>
Expected result:
----------------
Should see Success: (first key)
Actual result:
--------------
httpd child segfaults (11) and displays a 500 error.
--
Edit bug report at http://bugs.php.net/?id=40211&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40211&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40211&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40211&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40211&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40211&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40211&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40211&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40211&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40211&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40211&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40211&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40211&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40211&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40211&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40211&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40211&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40211&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40211&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40211&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40211&r=mysqlcfg