#43039 [Fbk]: Seg Fault (11) when using DB4 handler

From: Date: Sun, 21 Oct 2007 15:44:11 +0000
Subject: #43039 [Fbk]: Seg Fault (11) when using DB4 handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118790@lists.php.net to get a copy of this message
ID: 43039 Updated by: magnus@php.net Reported By: philippe dot gablain at gmail dot com Status: Feedback Bug Type: DBM/DBA related Operating System: Linux Ubuntu 7.10 PHP Version: 5.2.4 New Comment: just tried it with db4.4 (default on Ubuntu 7.10) and it crashed, then I tried with db4.6 which works.. Previous Comments: ------------------------------------------------------------------------ [2007-10-21 15:37:42] iliaa@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Works fine in CVS, could be an issue with a buggy db4 library. ------------------------------------------------------------------------ [2007-10-19 14:45:08] philippe dot gablain at gmail dot com 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 this bug report at http://bugs.php.net/?id=43039&edit=1

« previous php.bugs (#118790) next »