php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4108 apache 1.3.12 crashes with PHP added under redhat 6.2
Submitted: 2000-04-11 17:49 UTC Modified: 2000-04-11 18:31 UTC
From: david dot herring at micromuse dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0.16 OS: Linux RedHat 6.2
Private report: No CVE-ID: None
 [2000-04-11 17:49 UTC] david dot herring at micromuse dot com
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...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-11 18:31 UTC] rasmus at cvs dot php dot net
This is because you are using the current MySQL rpms which are compiled against libpthread.  For some reason the pthread-enabled MySQL client library doesn't work with PHP.
Download the MySQL tarball and compile the client library without pthread support and link PHP against that and your problem will go away.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 20:01:29 2024 UTC