|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2001-04-18 09:54 UTC] ptierney at iss dot net
 The configure line:
./configure --with-nsapi=/opt/NetScape/server4 --with-oci8=/oracle/OraHome1 --prefix=/usr/local/php --mandir=/usr/man --srcdir=/usr/src/php-4.0.4pl1 --with-exec
-dir --enable-track-vars --enable-force-cgi-redirect --enable-discard-path --with-config-file-path=/opt/NetScape/server4
Using Iplanet 4.1sp6 on Sun 420R, single proc, 1GB ram
We were seeing large numbers of watchdog restarts, whenever php was enabled, as many as 100 in 5 minutes.  After much testing, we started to realize larger php files appeared to be causing the problem.  We have been able to create a php file that is 3812 lines long, that will crash the ns-httpd service _every_ time.  It is too long to attach here, but I can email it, once I have an address.  It simply consists of the following:
===========
<?php
        <HTML><HEAD><TITLE>bombs.php</TITLE></HEAD>";
        print "<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\" LINK=\"#0000FF\"";
        print "VLINK=\"#840084\" ALINK=\"#0000FF\">";
        print "There is a file in this directory called BigBigGame.php";
<*REPEAT ABOVE LINE 3805 TIMES*>
 print "</BODY></HTML>";
 ?>
============
I am unable to obtain a backtrace, as netscape won't start with debug version.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Thu Oct 30 03:00:01 2025 UTC | 
I've been able to DL and compile 4.0.5. Now Iplanet will not start with PHP enabled. Relevant obj.conf lines: Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/ opt/NetScape/server4/bin/libphp4.so" Init fn="php4_init" errorString="Failed to Initialize PHP!" Service method="(GET|HEAD|POST)" type="magnus-internal/x-httpd-php" fn="php4_execute" <Object name="x-httpd-php"> ObjectType fn="force-type" type="magnus-internal/x-httpd-php" Service fn="php4_execute" </Object> Last few lines of truss of process: 23555: door_info(7, 0xFFBEE7A8) = 0 23555: getpid() = 23555 [23554] 23555: door_call(7, 0xFFBEE790) = 0 23555: close(7) = 0 23554: signotifywait() = 17 23554: Received signal #17, SIGUSR2, in sigsuspend() [caught] 23554: siginfo: SIGUSR2 pid=23555 uid=16 23554: lwp_sigredirect(1, SIGUSR2) = 0 23554: sigsuspend(0xFFBEF3F0) Err#4 EINTR 23554: sysconfig(_CONFIG_SIGRT_MIN) = 38 23554: sigprocmask(SIG_SETMASK, 0xFEFBDAE0, 0x00000000) = 0 23554: sigprocmask(SIG_SETMASK, 0xFEFC9810, 0x00000000) = 0 23554: sysconfig(_CONFIG_SIGRT_MIN) = 38 23554: setcontext(0xFFBEECE0) 23554: sigprocmask(SIG_SETMASK, 0xFFBEF380, 0x00000000) = 0 23554: llseek(0, 0, SEEK_CUR) = 165404 23554: _exit(1) 23557: *** process killed *** 23555: unlink("/opt/NetScape/server4/https-itjs44.iss.net/logs/pid") = 0 23555: fstat(4, 0xFFBEF2C0) = 0 23555: close(4) = 0 23555: llseek(0, 0, SEEK_CUR) = 165625