php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4557 Any script crashes the web server
Submitted: 2000-05-23 06:03 UTC Modified: 2000-06-17 19:39 UTC
From: Uwe dot Steinmann at fernuni-hagen dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (23/05/2000) OS: Linux 2.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Uwe dot Steinmann at fernuni-hagen dot de
New email:
PHP Version: OS:

 

 [2000-05-23 06:03 UTC] Uwe dot Steinmann at fernuni-hagen dot de
Calling any script crashes the web server
I use apache 1.3.12.

Here is a backtrace:

wwwrun@gehtnix:~/bin > gdb ./httpd
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run  -X -f /usr/local/apache/conf/httpd.conf
Starting program: /local_libc5/apache-1.3/bin/./httpd -X -f /usr/local/apache/conf/httpd.conf

Program received signal SIGSEGV, Segmentation fault.
0x805e847 in php_build_argv (s=0x0, track_vars_array=0x840f2ec) at main.c:1092
1092            if(*s) {
(gdb) bt
#0  0x805e847 in php_build_argv (s=0x0, track_vars_array=0x840f2ec)
    at main.c:1092
#1  0x805e553 in php_register_server_variables () at main.c:986
#2  0x805e6f2 in php_hash_environment () at main.c:1055
#3  0x805ea59 in php_execute_script (primary_file=0xbffff5a8) at main.c:1151
#4  0x807cabc in apache_php_module_main (r=0x8361674, fd=23,
    display_source_mode=0) at sapi_apache.c:93
#5  0x805a7f4 in send_php (r=0x8361674, display_source_mode=0,
    filename=0x8363274 "/usr/local/apache/htdocs/hw/info.php3")
    at mod_php4.c:512
#6  0x805a836 in send_parsed_php (r=0x8361674) at mod_php4.c:524
#7  0x8155539 in ap_invoke_handler ()
#8  0x8169b8f in process_request_internal ()
#9  0x8169bfa in ap_process_request ()
#10 0x8160e26 in child_main ()
#11 0x8161001 in make_child ()
#12 0x816117c in startup_children ()
#13 0x81617dd in standalone_main ()
#14 0x816201c in main ()
#15 0x40241213 in __libc_start_main (main=0x8161c74 <main>, argc=4,
    argv=0xbffff894, init=0x804c670 <_init>, fini=0x8255e60 <_fini>,
    rtld_fini=0x4000ac30 <_dl_fini>, stack_end=0xbffff88c)
    at ../sysdeps/generic/libc-start.c:90

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-17 19:39 UTC] andi at cvs dot php dot net
I'm pretty sure this has been fixed in the latest CVS. If you still have these problems then please open a new bug report with a reproducing script or ini file
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 13:01:30 2024 UTC