Edit report at http://bugs.php.net/bug.php?id=45209&edit=1
ID: 45209
Comment by: liam at morland dot ca
Reported by: p dot elagin at gmail dot com
Summary: segmentation fault, when exit script (when i open
PGSQL conection)
Status: No Feedback
Type: Bug
Package: PDO related
Operating System: Linux
PHP Version: 5.2.6
Block user comment: N
Private report: N
New Comment:
I had this problem with PHP 5.3.3. I solved it by loading pgsql.so
before curl.so on advice of this page:
http://linux.m2osw.com/php_cli_segmentation_fault_with_pgsql
Previous Comments:
------------------------------------------------------------------------
[2009-05-03 01:00:13] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-04-25 15:05:44] [email protected]
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
And do NOT apply any 3rd party patches (like Suhosin..)
------------------------------------------------------------------------
[2008-08-31 15:13:03] p dot elagin at gmail dot com
http - turn off
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) set arg /var/www/script/test-pdo.php
(gdb) run
Starting program: /usr/bin/php /var/www/script/test-pdo.php
[Thread debugging using libthread_db enabled]
[New Thread 0x2ba9c0b35080 (LWP 3698)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ba9c0b35080 (LWP 3698)]
0x00002ba9c562bae0 in ?? ()
(gdb) bt
#0 0x00002ba9c562bae0 in ?? ()
#1 0x00002ba9c024afdf in ?? () from /usr/lib/libcrypto.so.0.9.8
#2 0x00002ba9c184b659 in ?? () from /usr/lib/libcurl.so.4
#3 0x00002ba9c185d4e2 in ?? () from /usr/lib/libcurl.so.4
#4 0x00002ba9c1853a13 in curl_global_cleanup () from
/usr/lib/libcurl.so.4
#5 0x00002ba9c1615e89 in zm_shutdown_curl (type=9, module_number=1) at
/tmp/buildd/php5-5.2.6/ext/curl/interface.c:687
#6 0x0000000000670d31 in module_destructor (module=0xc02300) at
/tmp/buildd/php5-5.2.6/Zend/zend_API.c:1921
#7 0x00000000006772c0 in zend_hash_apply_deleter (ht=0xb74c20,
p=0xc022a0) at /tmp/buildd/php5-5.2.6/Zend/zend_hash.c:805
#8 0x0000000000677578 in zend_hash_graceful_reverse_destroy
(ht=0xb74c20) at /tmp/buildd/php5-5.2.6/Zend/zend_hash.c:840
#9 0x000000000066ccb7 in zend_shutdown () at
/tmp/buildd/php5-5.2.6/Zend/zend.c:814
#10 0x0000000000626b75 in php_module_shutdown () at
/tmp/buildd/php5-5.2.6/main/main.c:1906
#11 0x00000000006ea306 in main (argc=-312573176, argv=0x2ba9c050c358) at
/tmp/buildd/php5-5.2.6/sapi/cli/php_cli.c:1341
------------------------------------------------------------------------
[2008-08-31 15:09:28] p dot elagin at gmail dot com
>php test-pdo.php
>gdb php
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) set arg /var/www/script/test-pdo.php
(gdb) run
Starting program: /usr/bin/php /var/www/script/test-pdo.php
[Thread debugging using libthread_db enabled]
[New Thread 0x2b427e11d080 (LWP 3526)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b427e11d080 (LWP 3526)]
0x00002b4282e72ae0 in ?? ()
(gdb) bt
#0 0x00002b4282e72ae0 in ?? ()
#1 0x00002b427d832fdf in ?? () from /usr/lib/libcrypto.so.0.9.8
#2 0x00002b427e83b659 in ?? () from /usr/lib/libcurl.so.4
#3 0x00002b427e84d4e2 in ?? () from /usr/lib/libcurl.so.4
#4 0x00002b427e843a13 in curl_global_cleanup () from
/usr/lib/libcurl.so.4
#5 0x00002b427e5e0d79 in zm_shutdown_http_request (type=9,
module_number=1) at /tmp/pear/temp/pecl_http/http_request_api.c:194
#6 0x00002b427e5c812a in zm_shutdown_http (type=1, module_number=41) at
/tmp/pear/temp/pecl_http/http.c:339
#7 0x0000000000670d31 in module_destructor (module=0xc02310) at
/tmp/buildd/php5-5.2.6/Zend/zend_API.c:1921
#8 0x00000000006772c0 in zend_hash_apply_deleter (ht=0xb74c20,
p=0xc022b0) at /tmp/buildd/php5-5.2.6/Zend/zend_hash.c:805
#9 0x0000000000677578 in zend_hash_graceful_reverse_destroy
(ht=0xb74c20) at /tmp/buildd/php5-5.2.6/Zend/zend_hash.c:840
#10 0x000000000066ccb7 in zend_shutdown () at
/tmp/buildd/php5-5.2.6/Zend/zend.c:814
#11 0x0000000000626b75 in php_module_shutdown () at
/tmp/buildd/php5-5.2.6/main/main.c:1906
#12 0x00000000006ea306 in main (argc=805293352, argv=0x2b427daf4358) at
/tmp/buildd/php5-5.2.6/sapi/cli/php_cli.c:1341
------------------------------------------------------------------------
[2008-08-31 15:02:34] p dot elagin at gmail dot com
in php ini (cli mode)
#extension=http.so
php test-pdo.php
zsh: segmentation fault php test-pdo.php
(
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=45209
--
Edit this bug report at http://bugs.php.net/bug.php?id=45209&edit=1