| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2002-10-26 14:40 UTC] cjs at goosenest dot org
 This bug is similar to 18701 and 15439, but those bugs never reported backtraces or have been full resolved.
The ns-httpd process crashes and core dumps as follows:
26/Oct/2002:14:28:05] catastrophe (12480): Server crash detected (signal SIGBUS)
[26/Oct/2002:14:28:05] info (12480): Crash occurred in NSAPI SAF php4_execute
[26/Oct/2002:14:28:05] info (12480): Crash occurred in function php_register_variable_ex from module
when loading any php script. The php script that reproduces this is:
bash-2.05$ more phpinfo.php 
<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo "Hello World<p>"; ?>
 <? phpinfo(); ?>
 </body>
</html>
Configuration info:
Running snapshot: php4-200210252100
iPlanet 6 SP4 Webserver on Solaris 9
iPlanet-WebServer-Enterprise/6.0SP4 B07/17/2002 14:04
./configure  --enable-debug --enable-libgcc --with-nsapi=/usr/iplanet/servers/
gdb backtrace:
(gdb) bt
#0  0xfe629cac in php_register_variable_ex (var=0xfe6c05a8 "REQUEST_LINE", 
    val=0xfda5f6b8, track_vars_array=0xfe6c05a8, tsrm_ls=0x1792d8)
    at /home/cjs/work/php4-200210252100/main/php_variables.c:176
#1  0xfe62986c in php_register_variable_safe (var=0xfe6c05a8 "REQUEST_LINE", 
    strval=0xc722f0 "GET /phpinfo.php HTTP/1.1", str_len=25, 
    track_vars_array=0x35a6d8, tsrm_ls=0x1792d8)
    at /home/cjs/work/php4-200210252100/main/php_variables.c:56
#2  0xfe629784 in php_register_variable (var=0xfe6c05a8 "REQUEST_LINE", 
    strval=0xc722f0 "GET /phpinfo.php HTTP/1.1", track_vars_array=0x35a6d8, 
    tsrm_ls=0x1792d8)
    at /home/cjs/work/php4-200210252100/main/php_variables.c:37
#3  0xfe678df0 in sapi_nsapi_register_server_variables (
    track_vars_array=0x35a6d8, tsrm_ls=0x1792d8)
    at /home/cjs/work/php4-200210252100/sapi/nsapi/nsapi.c:290
#4  0xfe61e794 in php_hash_environment (tsrm_ls=0x1792d8)
    at /home/cjs/work/php4-200210252100/main/main.c:1220
#5  0xfe61d258 in php_request_startup (tsrm_ls=0x1792d8)
    at /home/cjs/work/php4-200210252100/main/main.c:857
#6  0xfe67956c in nsapi_module_main (request_context=0xc72d60, 
    tsrm_ls=0x1792d8)
    at /home/cjs/work/php4-200210252100/sapi/nsapi/nsapi.c:458
#7  0xfe679744 in php4_execute (pb=0xc3f88, sn=0xc36a48, rq=0xc36a90)
    at /home/cjs/work/php4-200210252100/sapi/nsapi/nsapi.c:523
#8  0xff1d89b4 in __0FNfunc_exec_strP6KFuncStructP6GpblockP6HSessionP6HRequest
    () from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so
#9  0xff1d9cf8 in INTobject_execute ()
   from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so
#10 0xff1dd8e8 in INTservact_service ()
   from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so
#11 0xff1dde84 in INTservact_handle_processed ()
   from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so
#12 0xff215c0c in __0fLHttpRequestUUnacceleratedRespondPCcTBPc ()
   from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so
#13 0xff2150c0 in __0fLHttpRequestNHandleRequestP6Gnetbuf ()
   from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so
#14 0xff213388 in __0fNDaemonSessionDrunv ()
   from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so
#15 0xff163b80 in ThreadMain ()
   from /usr/iplanet/servers/bin/https/lib/libnsprwrap.so
#16 0xfede76a0 in _pt_root ()
   from /usr/iplanet/servers/bin/https/lib/libnspr4.so
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
Tried php4-200210262100, same crash, same backtrace. Crash: [27/Oct/2002:09:45:07] catastrophe (29972): Server crash detected (signal SIGBUS) [27/Oct/2002:09:45:07] info (29972): Crash occurred in NSAPI SAF php4_execute [27/Oct/2002:09:45:07] info (29972): Crash occurred in function php_register_variable_ex from module /usr/iplanet/servers/bin/libphp4.so [27/Oct/2002:09:45:12] failure (29957): Child process admin thread is shutting down Backtrace: #0 0xfe629ccc in php_register_variable_ex (var=0xfe6c05c0 "REQUEST_LINE", val=0xfda5f6b8, track_vars_array=0xfe6c05c0, tsrm_ls=0x1792d8) at /home/cjs/work/php4-200210262100/main/php_variables.c:176 #1 0xfe62988c in php_register_variable_safe (var=0xfe6c05c0 "REQUEST_LINE", strval=0xc722f0 "GET /phpinfo.php HTTP/1.1", str_len=25, track_vars_array=0x35a6d8, tsrm_ls=0x1792d8) at /home/cjs/work/php4-200210262100/main/php_variables.c:56 #2 0xfe6297a4 in php_register_variable (var=0xfe6c05c0 "REQUEST_LINE", strval=0xc722f0 "GET /phpinfo.php HTTP/1.1", track_vars_array=0x35a6d8, tsrm_ls=0x1792d8) at /home/cjs/work/php4-200210262100/main/php_variables.c:37 #3 0xfe678e10 in sapi_nsapi_register_server_variables ( track_vars_array=0x35a6d8, tsrm_ls=0x1792d8) at /home/cjs/work/php4-200210262100/sapi/nsapi/nsapi.c:290 #4 0xfe61e7b4 in php_hash_environment (tsrm_ls=0x1792d8) at /home/cjs/work/php4-200210262100/main/main.c:1220 #5 0xfe61d278 in php_request_startup (tsrm_ls=0x1792d8) at /home/cjs/work/php4-200210262100/main/main.c:857 #6 0xfe679590 in nsapi_module_main (request_context=0xc72d60, tsrm_ls=0x1792d8) at /home/cjs/work/php4-200210262100/sapi/nsapi/nsapi.c:460 #7 0xfe679768 in php4_execute (pb=0xc3f88, sn=0xc36a48, rq=0xc36a90) at /home/cjs/work/php4-200210262100/sapi/nsapi/nsapi.c:525 #8 0xff1d89b4 in __0FNfunc_exec_strP6KFuncStructP6GpblockP6HSessionP6HRequest () from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so #9 0xff1d9cf8 in INTobject_execute () from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so #10 0xff1dd8e8 in INTservact_service () from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so #11 0xff1dde84 in INTservact_handle_processed () from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so #12 0xff215c0c in __0fLHttpRequestUUnacceleratedRespondPCcTBPc () from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so #13 0xff2150c0 in __0fLHttpRequestNHandleRequestP6Gnetbuf () from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so #14 0xff213388 in __0fNDaemonSessionDrunv () from /usr/iplanet/servers/bin/https/lib/libns-httpd40.so #15 0xff163b80 in ThreadMain () from /usr/iplanet/servers/bin/https/lib/libnsprwrap.so #16 0xfede76a0 in _pt_root () from /usr/iplanet/servers/bin/https/lib/libnspr4.so