#45209 [Opn->Fbk]: segmentation fault, when exit script (when i open PGSQL conection)
| From: | jani@php.net | Date: | Mon, 21 Jul 2008 20:33:12 +0000 |
| Subject: | #45209 [Opn->Fbk]: segmentation fault, when exit script (when i open PGSQL conection) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127092@lists.php.net to get a copy of this message | ||
ID: 45209
Updated by: jani@php.net
Reported By: p dot elagin at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: PDO related
Operating System: Linux
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-06-08 13:27:24] p dot elagin at gmail dot com
i disable eAccelerator and Xdebug
but seg fault exists
------------------------------------------------------------------------
[2008-06-08 13:22:54] p dot elagin at gmail dot com
"To get a backtrace with correct information you must have PHP
configured with --enable-debug!"
i cant reinstall ( on this server, i can show strace
strace -o test-pdo.txt php test-pdo.php
___
ls -la
-rw-r--r-- 1 root root 112248 zzz 8 17:22 test-pdo.txt
last rows in this file (i can send email or post to this)
......
munmap(0x2aab739e1000, 2239664) = 0
munmap(0x2aab735b8000, 2198712) = 0
munmap(0x2aab73180000, 2104904) = 0
munmap(0x2aab7338b000, 2280128) = 0
munmap(0x2aab72c37000, 2132936) = 0
munmap(0x2aab72e49000, 1244576) = 0
munmap(0x2aab72f79000, 2123712) = 0
munmap(0x2aab71238000, 2226584) = 0
munmap(0x2aab71461000, 2379400) = 0
munmap(0x2aab716a6000, 2465576) = 0
munmap(0x2aab723dd000, 2292136) = 0
munmap(0x2aab71900000, 2608800) = 0
munmap(0x2aab71d86000, 2164464) = 0
munmap(0x2aab71b7d000, 2133536) = 0
munmap(0x2aab71f97000, 2242640) = 0
munmap(0x2aab721bb000, 2234584) = 0
munmap(0x2aab7260d000, 2105112) = 0
munmap(0x2aab7280f000, 2115360) = 0
munmap(0x2aab72a14000, 2236448) = 0
munmap(0x2aab71014000, 2243872) = 0
munmap(0x2aab70e05000, 2154816) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
......
------------------------------------------------------------------------
[2008-06-08 12:51:03] p dot elagin at gmail dot com
Description:
------------
when script exit i get segmentation fault Error
i create instanse of PDO object (use DNS - PGSQL)
if i use another driver (SQLITE), no segmentation fault when i exit
Reproduce code:
---------------
/* Version PHP */
> php -v
PHP 5.2.6-1 with Suhosin-Patch 0.9.6.2 (cli) (built: May 4 2008
19:41:04)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator,
by eAccelerator
with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans
/* Test Script PHP */
> cat test-do.php
<?
$PGDB = new PDO( 'pgsql:user=html host=localhost dbname=***
password=*****' );
////$PGDB = new PDO( 'pgsql:host=localhost dbname=*******', 'html',
'*******' );
//$PGDB = null;
//unset( $PGDB );
die;
?>
/* Run Script PHP */
> php test-pdo.php
segmentation fault php test-pdo.php
Expected result:
----------------
segmentation fault
Actual result:
--------------
no seg fault , when exit
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45209&edit=1