#36152 [NEW]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
From: misiek at dione dot ids dot pl
Operating system: Linux 2.6/glibc 2.3
PHP version: 5CVS-2006-01-25 (snap)
PHP Bug Type: PostgreSQL related
Bug description: threaded version of php has problems with curl+ssl && pgsql+ss at the same
time
Description:
------------
php5.1-200601242130
./configure --prefix=/tmp/qq --enable-maintainer-zts
--with-pgsql=shared,/usr --with-curl=shared,/usr
postgresql client libs 8.1.2 (compiled with --enable-thread-safety and
--with-openssl)
curl 7.15.1 also compiled with openssl
[root@pepe 16112]# cat /tmp/qq/lib/php.ini
extension=curl.so
extension=pgsql.so
(note that extensions loading order matters)
The problems seems to be in thread safety locking code somewhere in
openssl and this combination triggers it (now the bug could be in php curl
module, pgsql client library, openssl... don't know yet).
Reproduce code:
---------------
[root@pepe 16112]# cat config.php
<?php
pg_connect("host='db01.agnat.pl' user='dfsdf' password='sfsf'
dbname='sdfsdf'");
?>
[root@pepe 16112]# /tmp/qq/bin/php config.php
X-Powered-By: PHP/5.1.3-dev
Content-type: text/html
Memory fault
The host is important - there needs to be postgresql server which accepts
SSL connections (this one accepts only ssl connections).
user/password/dbname doesn't matter.
Expected result:
----------------
No segfault.
Actual result:
--------------
Memory fault
--
Edit bug report at http://bugs.php.net/?id=36152&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36152&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36152&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36152&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36152&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36152&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36152&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36152&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36152&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36152&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36152&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36152&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36152&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36152&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36152&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36152&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36152&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36152&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36152&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36152&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36152&r=mysqlcfg
Thread (14 messages)
- misiek at dione dot ids dot pl
- tony2001@php.net#36152 [Opn->Fbk]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
- misiek at dione dot ids dot pl#36152 [Fbk->Opn]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
- misiek at dione dot ids dot pl#36152 [Opn]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
- misiek at dione dot ids dot pl#36152 [Opn]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
- sniper@php.net#36152 [Opn]: problems with curl+ssl and pgsql+ssl at the same time
- tony2001@php.net#36152 [Opn->Asn]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
- misiek at dione dot ids dot pl#36152 [Asn]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
- tony2001@php.net#36152 [Asn]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
- misiek at dione dot ids dot pl#36152 [Asn]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
- mike@php.net#36152 [Asn]: problems with curl+ssl and pgsql+ssl in same PHP
- mike@php.net#36152 [Asn]: problems with curl+ssl and pgsql+ssl in same PHP
- mike@php.net#36152 [Asn->Csd]: problems with curl+ssl and pgsql+ssl in same PHP
- misiek at dione dot ids dot pl#36152 [Csd]: problems with curl+ssl and pgsql+ssl in same PHP