php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6420 Core dump when PATH_TRANSLATED not set
Submitted: 2000-08-29 14:37 UTC Modified: 2000-09-03 05:55 UTC
From: php2eran at tromer dot org Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: Linux 2.2 (RedHar 6.2)
Private report: No CVE-ID: None
 [2000-08-29 14:37 UTC] php2eran at tromer dot org
When PHP is run as CGI but the PATH_TRANSLATED environment variable is not set, it dumps core:

To reproduce:
----------------------
bash% set -a; REQUEST_METHOD=GET; SERVER_SOFTWARE=moose; /www/cgi-bin/php
Segmentation fault (core dumped)

gdb backtrace:
----------------------
Program received signal SIGSEGV, Segmentation fault.
0x80b625f in _estrdup (s=0x0) at zend_alloc.c:289
289             length = strlen(s)+1;
(gdb) bt
#0  0x80b625f in _estrdup (s=0x0) at zend_alloc.c:289
#1  0x805d410 in main (argc=1, argv=0xbffffb04) at cgi_main.c:632

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-03 05:55 UTC] stas@php.net
Cannot reproduce in latest CVS, so I suppose it's fixed. If not, please reopen.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 15:00:01 2026 UTC