#45609 [Com]: Segfault when using pg_pconnect/pg_connect from the CLI
ID: 45609
Comment by: tavs_d at hotmail dot com
Reported By: tavs_d at hotmail dot com
Status: Feedback
Bug Type: Reproducible crash
Operating System: Ubuntu 8.04
PHP Version: 5.2.6
New Comment:
Thanks for the quick response.
Sorry. I don't have the option of installing anything which is not a
package. Guess I have to wait for the Ubuntu community to release an
update.
Previous Comments:
------------------------------------------------------------------------
[2008-07-24 00:37:03] jani@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
------------------------------------------------------------------------
[2008-07-23 19:20:57] tavs_d at hotmail dot com
Description:
------------
The version reported is incorrect as you have no option for 5.2.4
Kernel: 2.6.24-16-server
PHP version: PHP 5.2.4-2ubuntu5.2 with Suhosin-Patch 0.9.6.2 (cli)
(built: Jul 3 2008 16:46:01)
When executing a script from the console which contains
pg_connect/pg_pconnect a segmentation fault is encountered.
This error is NOT present when the script is executed through a
browser.
Reproduce code:
---------------
<?
$dbconn = pg_connect("host=localhost port=5432 dbname=someName
user=someUser password=somePass") or die('Dbconnect failed!');
?>
# Run script
/usr/bin/php -f test.php
Expected result:
----------------
I just expect to connect to the DB
Actual result:
--------------
I actually do connect and can make any DB operation I want but the
program is always terminated with a segmentation fault.
Here's a backtrace from GDB:
Core was generated by `/usr/bin/php -f test.php'.
Program terminated with signal 11, Segmentation fault.
[New process 7287]
#0 0xb72ae000 in ?? ()
(gdb) bt
#0 0xb72ae000 in ?? ()
#1 0xb78891bd in ?? () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
#2 0xb788a98a in ERR_free_strings () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
#3 0xb7720487 in ?? () from /usr/lib/libcurl.so.4
#4 0xb77340a0 in ?? () from /usr/lib/libcurl.so.4
#5 0xb7729733 in curl_global_cleanup () from /usr/lib/libcurl.so.4
#6 0xb7743337 in zm_shutdown_curl () from
/usr/lib/php5/20060613+lfs/curl.so
#7 0x082c720a in module_destructor ()
#8 0x082cdd75 in ?? ()
#9 0x082ce007 in zend_hash_graceful_reverse_destroy ()
#10 0x082c349c in zend_shutdown ()
#11 0x08278f75 in php_module_shutdown ()
#12 0x0835405d in main ()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45609&edit=1
Thread (3 messages)