#36152 [Opn->Fbk]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time

From: Date: Wed, 25 Jan 2006 09:07:56 +0000
Subject: #36152 [Opn->Fbk]: threaded version of php has problems with curl+ssl && pgsql+ss at the same time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92446@lists.php.net to get a copy of this message
 ID:               36152
 Updated by:       tony2001@php.net
 Reported By:      misiek at dione dot ids dot pl
-Status:           Open
+Status:           Feedback
 Bug Type:         PostgreSQL related
 Operating System: Linux 2.6/glibc 2.3
 PHP Version:      5CVS-2006-01-25 (snap)
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




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

[2006-01-25 09:12:59] misiek at dione dot ids dot pl

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 this bug report at http://bugs.php.net/?id=36152&edit=1


Thread (14 messages)

« previous php.bugs (#92446) next »