From:             philippe dot gablain at gmail dot com
Operating system: Linux Ubuntu 7.10
PHP version:      5.2.4
PHP Bug Type:     DBM/DBA related
Bug description:  Seg Fault (11) when using DB4 handler

Description:
------------
Segmentation fault got anytime I call dba_open() since I upgraded from
Ubuntu 7.04 French to 7.10 French (Apache 2.2.4,PHP5.2.3).



Reproduce code:
---------------
$dbfile=" some ";


$id = dba_open ($dbfile, "n", "db4"); // tested wl or n

if (!$id) {
    echo "dba_open failed\n";
    exit;
}

dba_replace ("key", "some value", $id);
echo "<PRE>\n";
if ($the_key = dba_firstkey($id)) do {
    print("$the_key => ");
    print dba_fetch($the_key, $id);
    print("\n");
} while ($the_key = dba_nextkey($id));
echo "</PRE>\n";

dba_close ($id);

Expected result:
----------------
key => some value

Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1216125264 (LWP 1289)]
0x085d7410 in ?? ()
(gdb) bt
#0  0x085d7410 in ?? ()
#1  0xb71f09ad in dba_open_db4 () from
/usr/lib/apache2/modules/libphp5.so
#2  0xb71eefe5 in ?? () from /usr/lib/apache2/modules/libphp5.so
#3  0x08603d1c in ?? ()
#4  0xbfb590f8 in ?? ()
#5  0x00000001 in ?? ()
#6  0x00000000 in ?? ()

-- 
Edit bug report at http://bugs.php.net/?id=43039&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43039&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43039&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43039&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43039&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43039&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43039&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43039&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43039&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43039&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43039&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43039&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43039&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43039&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43039&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43039&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43039&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43039&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43039&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43039&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43039&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43039&r=mysqlcfg

Reply via email to