PHP 4.0 Bug #6134 Updated: httpd segfaults on PHP4 page request
| From: | Bug Database | Date: | Mon, 14 Aug 2000 16:01:15 +0000 |
| Subject: | PHP 4.0 Bug #6134 Updated: httpd segfaults on PHP4 page request | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28827@lists.php.net to get a copy of this message | ||
ID: 6134
User Update by: anil@recoil.org
Status: Feedback
Bug Type: Reproduceable crash
Description: httpd segfaults on PHP4 page request
I used this script to regenerate and build:
#!/bin/sh
for i in "Zend" "TSRM"; do
cd $i;cvs update -Pd;cd ..
done
cvs update -Pd
./buildconf
make clean
./configure --enable-debug --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local
--with-mcal --with-imap --with-gettext --enable-versioning --with-gd && make
I get exactly the same backtrace :( Shown below in case its different ...
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 "i386-redhat-linux"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
[Mon Aug 14 16:55:38 2000] [warn] NameVirtualHost 212.25.240.41:80 has no VirtualHosts
Program received signal SIGSEGV, Segmentation fault.
0x400c2a93 in strncpy (s1=0x82dfb28 "active_sessions", s2=0x827999c
"active_sessions",
n=4294967284) at ../sysdeps/generic/strncpy.c:82
82 ../sysdeps/generic/strncpy.c: No such file or directory.
(gdb) bt
#0 0x400c2a93 in strncpy (s1=0x82dfb28 "active_sessions", s2=0x827999c
"active_sessions",
n=4294967284) at ../sysdeps/generic/strncpy.c:82
#1 0x406cb3c4 in ?? () from /usr/local/apache/libexec/libphp4.so
#2 0x406cbe96 in ?? () from /usr/local/apache/libexec/libphp4.so
#3 0x406cc515 in ?? () from /usr/local/apache/libexec/libphp4.so
#4 0x4065c854 in ?? () from /usr/local/apache/libexec/libphp4.so
#5 0x4065ca6c in ?? () from /usr/local/apache/libexec/libphp4.so
#6 0x4065ca6c in ?? () from /usr/local/apache/libexec/libphp4.so
#7 0x4065ca6c in ?? () from /usr/local/apache/libexec/libphp4.so
#8 0x4065ca6c in ?? () from /usr/local/apache/libexec/libphp4.so
#9 0x4066932e in ?? () from /usr/local/apache/libexec/libphp4.so
#10 0x40679041 in ?? () from /usr/local/apache/libexec/libphp4.so
#11 0x40675c79 in ?? () from /usr/local/apache/libexec/libphp4.so
#12 0x40676596 in ?? () from /usr/local/apache/libexec/libphp4.so
#13 0x406765cc in ?? () from /usr/local/apache/libexec/libphp4.so
#14 0x806df73 in ap_invoke_handler ()
#15 0x8081919 in process_request_internal ()
#16 0x8081d48 in ap_internal_redirect ()
#17 0x806163d in handle_dir ()
#18 0x806df73 in ap_invoke_handler ()
#19 0x8081919 in process_request_internal ()
#20 0x808197c in ap_process_request ()
#21 0x807918e in child_main ()
#22 0x807933c in make_child ()
#23 0x8079499 in startup_children ()
#24 0x8079ac6 in standalone_main ()
#25 0x807a263 in main ()
#26 0x4007d1eb in __libc_start_main (main=0x8079f0c <main>, argc=2, argv=0xbffffce4,
init=0x804f614 <_init>, fini=0x80b03cc <_fini>, rtld_fini=0x4000a610
<_dl_fini>,
stack_end=0xbffffcdc) at ../sysdeps/generic/libc-start.c:90
(gdb)
Full Bug description available at: http://bugs.php.net/?id=6134