#23514 [Opn->Fbk]: doing strlen on NULL script_path_translated
ID: 23514
Updated by: sniper@php.net
Reported By: chopin+phpbug at sgh dot waw dot pl
-Status: Open
+Status: Feedback
-Bug Type: Reproducible crash
+Bug Type: CGI related
Operating System: Solaris 2.6
PHP Version: 4.3.2RC2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-05-06 15:46:59] chopin+phpbug at sgh dot waw dot pl
Trying to fetch http://freedns.sgh.waw.pl/ I get crash,
while
http://freedns.sgh.waw.pl/index.php everything
works as expected. Of
course the first one should work exactly as the latter. (And it did
until I recompiled PHP.)
HTTP daemon is Apache 1.3.27
DirectoryIndex contains index.php
PHP is run as CGI via AddHandler cgi-script
This "freedns.sgh.waw.pl" is (namebased) VirtualHost with DocumentRoot
in user directory
Any script would do, simple echo "hello".
(gdb) bt
#0 0xef125448 in strlen () from /usr/lib/libc.so.1
#1 0x12823c in _estrdup (s=0x0)
at /services/apache/src/php-4.3.2RC2/Zend/zend_alloc.c:363
#2 0x150a5c in init_request_info ()
at /services/apache/src/php-4.3.2RC2/sapi/cgi/cgi_main.c:709
#3 0x1510d0 in main (argc=2, argv=0xeffffac4)
at /services/apache/src/php-4.3.2RC2/sapi/cgi/cgi_main.c:1238
(gdb) fr 2
(gdb) p script_path_translated
$6 = 0x0
Adding "cgi.fix_pathinfo = false" to php.ini fixed things.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23514&edit=1
Thread (5 messages)