#15224 [Com]: openSSL and cURL results in Apache seg-faulting

From: Date: Mon, 11 Jun 2007 12:19:59 +0000
Subject: #15224 [Com]: openSSL and cURL results in Apache seg-faulting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113634@lists.php.net to get a copy of this message
ID: 15224 Comment by: mk at netgroup dot dk Reported By: josh dot howlett at bris dot ac dot uk Status: No Feedback Bug Type: OpenSSL related Operating System: Linux RH 7.1 PHP Version: 4.1.1 New Comment: I am seeing a problem that is very similar to this one. i am useing apache2 -v Server version: Apache/2.0.54 Server built: Jul 28 2006 09:04:55php -v PHP 5.1.6-1 (cli) (built: Sep 1 2006 13:52:26) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies running on Debian Sarge. if i run the php script from the console, php -f <file> its okay. when i run it through the browser, it crashes the apache child and spawns a new one. Whats next? Previous Comments: ------------------------------------------------------------------------ [2003-02-13 12:37:19] sniper@php.net alan@pair.com: The original reporter of this bug doesn't seem to be interested/does not care, so please open a new report about this. ------------------------------------------------------------------------ [2003-02-13 11:00:29] alan at pair dot com > Please try using this CVS snapshot: > > http://snaps.php.net/php4-STABLE-latest.tar.gz I did this; no dice. It seems to be dying inside SSL_CTX_ctrl (via SSL_CTX_set_options) when called from apache's ssl_init_ConfigureServer at this line: SSL_CTX_set_options(ctx, SSL_OP_ALL); This is the same behavior it had before. Thanks. ------------------------------------------------------------------------ [2003-02-12 20:16:21] nicos@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-02-12 14:21:16] alan at pair dot com More details: This happens with curl 7.9.8 or 7.10.3. OpenSSL 0.9.7 or a variety of flavors of 0.9.6. ------------------------------------------------------------------------ [2003-02-12 14:20:22] alan at pair dot com FreeBSD 4.6-stable PHP 4.2.2 --with-curl curl --with-ssl Apache 1.3.27 with SSL To reproduce the bug: * start apache * send a HUP signal to apache's parent process (to restart it) The server needn't serve any pages (php or otherwise). Apache crashes while trying to reinitialize SSL. Running the same version of everything, but curl compiled --without-ssl makes it work correctly: the apache parent kills off its children and spawns new ones. ------------------------------------------------------------------------ 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/15224 -- Edit this bug report at http://bugs.php.net/?id=15224&edit=1

« previous php.bugs (#113634) next »