ID:               22213
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         cURL related
 Operating System: FreeBSD 4.6-STABLE
 PHP Version:      4CVS-2003-02-13 (stable)
 New Comment:

And the full configure line used to configure php was..?



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

[2003-02-13 16:17:05] [EMAIL PROTECTED]

This bug could be related to bug #22112.

------------------------------------------------------------------------

[2003-02-13 15:56:40] [EMAIL PROTECTED]

I've reproduced this bug with PHP versions 4.2.2, and the STABLE PHP
dated Feb 13, 2003. 

FreeBSD 4.6-stable
PHP 4.2.2 --with-curl
curl --with-ssl, versions 7.9.8 and 7.10.3
Apache 1.3.27 mod_ssl
OpenSSL 0.9.7, and a variety of flavors of 0.9.6.

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) before the HUP is
sent.  Apache crashes, I believe while trying to reinitialize the
mod_ssl module.

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 without the parent segfaulting.

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);

Unfortunately, by the time it segfaults, the stack has been corrupted,
and it gets really difficult to debug.

Alan




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22213&edit=1

Reply via email to