PHP 4.0 Bug #4557: Any script crashes the web server

From: Date: Tue, 23 May 2000 10:03:43 +0000
Subject: PHP 4.0 Bug #4557: Any script crashes the web server
Groups: php.dev 
Request: Send a blank email to php-dev+get-19277@lists.php.net to get a copy of this message
From: Uwe.Steinmann@fernuni-hagen.de Operating system: Linux 2.2 PHP version: 4.0 Latest CVS (23/05/2000) PHP Bug Type: Reproduceable crash Bug description: Any script crashes the web server 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

« previous php.dev (#19277) next »