From: arjen at glas dot its dot tudelft dot nl Operating system: Linux (gentoo 1.4) PHP version: 5CVS-2004-01-05 (dev) PHP Bug Type: SQLite related Bug description: PHP segfaults on pg_connect if SQLite is built in
Description: ------------ I just did a default install of today's php-snapshot (php5-200401051230) in my apache2 and when a script came to its pg_connect, to open a postgresql connection, it segfaulted. When I tried to debug that in gdb I saw a few sqlite-functions being mentioned, so I disabled the sqlite-extension and my scripts work perfectly now. This issue was not there in php-5b3 and a snapshot of 22-12-2003 Actual result: -------------- Below is the backtrace I got from gdb, when loading a single threaded debug apache (apache2 -X) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 6588)] 0x4055bc0a in php_sqlite_callback_invalidator () from /etc/apache2/lib/apache2/libphp5.so (gdb) bt #0 0x4055bc0a in php_sqlite_callback_invalidator () from /etc/apache2/lib/apache2/libphp5.so #1 0x4064479c in zend_hash_apply () from /etc/apache2/lib/apache2/libphp5.so #2 0x4055abc4 in php_sqlite_forget_persistent_id_numbers () from /etc/apache2/lib/apache2/libphp5.so #3 0x4064479c in zend_hash_apply () from /etc/apache2/lib/apache2/libphp5.so #4 0x40555eb2 in zm_deactivate_sqlite () from /etc/apache2/lib/apache2/libphp5.so #5 0x40641037 in module_registry_cleanup () from /etc/apache2/lib/apache2/libphp5.so #6 0x4064479c in zend_hash_apply () from /etc/apache2/lib/apache2/libphp5.so #7 0x4063da10 in zend_deactivate_modules () from /etc/apache2/lib/apache2/libphp5.so #8 0x40605d89 in php_request_shutdown () from /etc/apache2/lib/apache2/libphp5.so #9 0x40666658 in php_handler () from /etc/apache2/lib/apache2/libphp5.so #10 0x080686b2 in ap_invoke_handler () #11 0x08065a2b in ap_process_request () #12 0x08060c7b in _start () #13 0x08072f85 in ap_process_connection () #14 0x0806818b in ap_graceful_stop_signalled () #15 0x0806755e in ap_graceful_stop_signalled () #16 0x08066e74 in ap_mpm_run () #17 0x0806e0e2 in main () #18 0x402f494c in __libc_start_main () from /lib/libc.so.6 -- Edit bug report at http://bugs.php.net/?id=26796&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26796&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26796&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26796&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26796&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26796&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26796&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26796&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26796&r=support Expected behavior: http://bugs.php.net/fix.php?id=26796&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26796&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26796&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26796&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26796&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26796&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26796&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26796&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26796&r=float