PHP 4.0 Bug #6416: when run through CGI and Apache 1.2.4, any script will segfault/dump the core

From: Date: Tue, 29 Aug 2000 15:45:06 +0000
Subject: PHP 4.0 Bug #6416: when run through CGI and Apache 1.2.4, any script will segfault/dump the core
Groups: php.dev 
Request: Send a blank email to php-dev+get-31084@lists.php.net to get a copy of this message
From: cristesc@igr.fr Operating system: Solaris 2.5.1 (Sun OS 5.5.1) w Intel x86 PHP version: 4.0.1pl2 PHP Bug Type: Reproduceable crash Bug description: when run through CGI and Apache 1.2.4, any script will segfault/dump the core any script will do, including <?php echo 'Hello World' ?>. Everything runs ok from the command line (no varibles provided). However, some (but not all) of the variables passed from the CGI will cause it to bomb. From what we've toyed with, DOCUMENT_ROOT for example is ok, but when HTTP_something is provided, you get a guaranteed crash. ./configure --prefix=/export/home1/www/php4 --with-mysql=/export/home1/www/mysql --enable-track-vars --with-config-file-path=/export/home1/www/php4 --with-gd=/export/home1/www/gd tested both with and w/o --enable-force-cgi-redirect php.ini dubbed irrelevant I don't have su rights on this remote machine and am not aware of its specificities. All I know is that it's a Pentium class processor running Solaris 2.5.1 and an old Apache (if I remember well is 1.2.4 or maybe 1.2.9) that I have no choice but get along with. A friend of mine "truss"-ed execution of both a successful execution (when for example DOCUMENT_ROOT is the only variable provided at launch) and a crash and noticed that at some point before even starting to interpret the script (that's why any script will crash just the same), after opening some files and doing some mmaps, it gets a SIG from the OS and dies in response dumping the core.

« previous php.dev (#31084) next »