ID:               17414
 User updated by:  [EMAIL PROTECTED]
-Summary:          Segfaults on restart, iff a request is made during the
                   restart process.
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.2.1
 Assigned To:      aaron
 New Comment:

I can't reproduce this exact problem.
However, Apache2 now segfaults on restart whenever PHP4 is loaded.
(current CVS for both.)
This uses the following apache2 config:

"./configure" \
"--with-mpm=worker" \
"--prefix=/usr/local/apache2-php/" \
"--enable-modules=max" \
"--enable-maintainer-mode" \
"$@"

and the following PHP config.
'./configure' \
'--with-mysql' \
'--with-gd=/usr' \
'--with-curl=/usr' \
'--with-ttf=/usr' \
'--with-png-dir=/usr' \
'--with-jpeg-dir=/usr' \
'--with-openssl=/usr' \
'--with-zlib=/usr' \
'--with-freetype-dir=/usr' \
'--enable-debug' \
'--with-apxs2=/usr/local/apache2-php/bin/apxs' \
"$@"


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

[2002-10-09 14:23:18] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

I am unable to duplicate the problem using PHP 4.3-dev and Apache
2.0.43. Could you try and see if the problem you've mentioned is still
there on your machine, thanks.

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

[2002-09-16 10:36:22] [EMAIL PROTECTED]

Any news on this?

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

[2002-05-24 11:52:08] [EMAIL PROTECTED]

Thom and I already spoke about this bug, and I'm going to
try to reproduce it locally as soon as possible, but
at this point I'm not sure if it's Apache's fault or
something in the apache2filter. I'm leaning toward
a problem in the latter. I'm also going to try to reproduce
this under the prefork MPM, but if someone beats me to
it, please submit your results here.

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

[2002-05-24 11:35:15] [EMAIL PROTECTED]

(Occurs with both HEAD and 4.2.1). Only tested with worker mpm. (This
only occurs when the php module is loaded)
to reproduce:

attempt to restart (gracefully or otherwise) a running apache2 server.
Make a page request while apache is still starting the child
processes.

backtrace:
(gdb) bt
#0  0x40305445 in sapi_initialize_empty_request (tsrm_ls=0x8126330)
    at SAPI.c:366
#1  0x4030136d in php_module_startup (sf=0x403debc0) at main.c:881
#2  0x402ff03a in php_apache_server_startup (pconf=0x8094e80,
plog=0x80bef28, 
    ptemp=0x80f6150, s=0x8096bd0) at sapi_apache2.c:459
#3  0x08064441 in ap_run_post_config (pconf=0x8094e80, plog=0x80bef28,

    ptemp=0x80f6150, s=0x8096bd0) at config.c:129
#4  0x080689fc in main (argc=1, argv=0xbffff9c4) at main.c:635

(gdb) frame 0
#0  0x40305445 in sapi_initialize_empty_request (tsrm_ls=0x8126330)
    at SAPI.c:366
366             SG(server_context) = NULL;
(gdb) frame 1
#1  0x4030136d in php_module_startup (sf=0x403debc0) at main.c:881
881             sapi_initialize_empty_request(TSRMLS_C);
(gdb) frame 2
#2  0x402ff03a in php_apache_server_startup (pconf=0x8094e80,
plog=0x80bef28, 
    ptemp=0x80f6150, s=0x8096bd0) at sapi_apache2.c:459
459             apache2_sapi_module.startup(&apache2_sapi_module);
(gdb) frame 3
#3  0x08064441 in ap_run_post_config (pconf=0x8094e80, plog=0x80bef28,

    ptemp=0x80f6150, s=0x8096bd0) at config.c:129
129                                apr_pool_t *ptemp, server_rec *s),


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


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

Reply via email to