Bug #4108: apache 1.3.12 crashes with PHP added under redhat 6.2
| From: | david dot herring at micromuse dot com | Date: | Tue, 11 Apr 2000 21:49:33 +0000 |
| Subject: | Bug #4108: apache 1.3.12 crashes with PHP added under redhat 6.2 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17818@lists.php.net to get a copy of this message | ||
From: david.herring@micromuse.com
Operating system: Linux RedHat 6.2
PHP version: 3.0.16
PHP Bug Type: MySQL related
Bug description: apache 1.3.12 crashes with PHP added under redhat 6.2
gdb) where
#0 0x402ea774 in ?? ()
#1 0x4016bdd8 in __getservbyname_r (name=0x402046d6 "mysql", proto=0x40204970
"tcp", resbuf=0x401970dc, buffer=0x810ce28 "linuxconf", buflen=1024,
result=0xbfffd8c4) at ../nss/getXXbyYY_r.c:182
#2 0x4016bc54 in getservbyname (name=0x402046d6 "mysql", proto=0x40204970
"tcp") at ../nss/getXXbyYY.c:123
#3 0x401d3dea in php3_minit_mysql (type=1, module_number=9) at functions/mysql.c:258
#4 0x401b8047 in module_startup_modules () at internal_functions.c:533
#5 0x401b17ea in php3_module_startup () at main.c:1244
#6 0x401af050 in php3_create_dir () from /[root@badger conf]# strace -eopen -f ../bin/httpd
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY) = 3
open("/lib/libcrypt.so.1", O_RDONLY) = 3
open("/lib/libpthread.so.0", O_RDONLY) = 4
...
...
...
open("./php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) ---
[root@badger conf]#
#7 0x808ed03 in ap_single_module_configure ()
#8 0x807b0b0 in load_module ()
#9 0x808d5de in invoke_cmd ()
#10 0x808dec3 in ap_handle_command ()
#11 0x808df57 in ap_srm_command_loop ()
#12 0x808e360 in ap_process_resource_config ()
#13 0x808ec22 in ap_read_config ()
#14 0x8098481 in standalone_main ()
#15 0x8098cf3 in main ()
#16 0x400bc9cb in __libc_start_main (main=0x80989ac <main>, argc=1, argv=0xbffffb64,
init=0x804f7ac <_init>, fini=0x80ccccc <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffffb5c) at
../sysdeps/generic/libc-start.c:92
(gdb)
If I comment php out of /usr/local/apache/config/httpd.conf - then all is fine.
I have removed all the redhat rpm's for apache and php...