#45609 [Opn->Fbk]: Segfault when using pg_pconnect/pg_connect from the CLI

From: Date: Thu, 24 Jul 2008 00:37:04 +0000
Subject: #45609 [Opn->Fbk]: Segfault when using pg_pconnect/pg_connect from the CLI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127221@lists.php.net to get a copy of this message
 ID:               45609
 Updated by:       jani@php.net
 Reported By:      tavs_d at hotmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Ubuntu 8.04
 PHP Version:      5.2.6
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[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)

« previous php.bugs (#127221) next »