From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.2.1
PHP Bug Type:     Apache2 related
Bug description:  Segfaults on restart, iff a request is made during the restart 
process.

(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 bug report at http://bugs.php.net/?id=17414&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17414&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17414&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17414&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17414&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17414&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17414&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17414&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17414&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17414&r=globals

Reply via email to