php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6416 when run through CGI and Apache 1.2.4, any script will segfault/dump the core
Submitted: 2000-08-29 11:45 UTC Modified: 2000-11-28 07:23 UTC
From: cristesc at igr dot fr Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: Solaris 2.5.1 (Sun OS 5.5.1) w I
Private report: No CVE-ID: None
 [2000-08-29 11:45 UTC] cristesc at igr dot fr
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-27 05:27 UTC] sniper@php.net
Is this still happening when using PHP4.0.3pl1 ?
Or latest snapshot from http://snaps.php.net?

If the apache really is 1.2.4 it might be good thing
to get that updated too..

--Jani
 [2000-11-28 07:23 UTC] sniper@php.net
User feedback:
--------------
Not reproducable.
(system changed, not working with it anymore..etc.)

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC