|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-29 21:12 UTC] treskewl at hotmail dot com
[2002-04-25 18:40 UTC] mac at w4b dot at
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Problem - apache seg faults on startup, because of the php4 module compiled with --with-mysql - if php is compiled --without-mysql it loads fine. Details: MySQL 3.23.38, Apache 1.3.20 and PHP 4.0.5 on a Slackware Linux 7.1 system running the 2.4.0 kernel with glibc 2.1.3. MySQL was compiled from source and is running fine. I have added /usr/local/mysql/lib/mysql to /etc/ld.so.conf and activated it before compiling either apache or php. apache was compiled with: CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ./configure \ --prefix=/usr/local/apache --verbose \ --enable-module=so \ --enable-module=auth_anon --enable-shared=auth_anon \ --enable-module=auth_db --enable-shared=auth_db \ --enable-module=expires --enable-shared=expires \ --enable-module=headers --enable-shared=headers \ --enable-module=info --enable-shared=info \ --enable-module=log_agent --enable-shared=log_agent \ --enable-module=log_referer --enable-shared=log_referer \ --enable-module=rewrite --enable-shared=rewrite \ --enable-module=usertrack --enable-shared=usertrack \ --enable-module=vhost_alias --enable-shared=vhost_alias \ --enable-shared=access --enable-shared=actions --enable-shared=alias \ --enable-shared=asis --enable-shared=auth --enable-shared=autoindex \ --enable-shared=cgi --enable-shared=dir --enable-shared=env \ --enable-shared=imap --enable-shared=include --enable-shared=log_config \ --enable-shared=mime --enable-shared=negotiation --enable-shared=userdir \ --enable-shared=setenvif --enable-shared=status Then php was compiled with many settings, last of which is: ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --enable-track-vars --enable-debug I coredumped /usr/local/apache/bin/httpd -X and then ran gdb on it & the coredump. The backtrace revealed this: #0 0x0 in ?? () #1 0x403fa9e8 in __db_err () from /lib/libdb.so.3 #2 0x403f450a in db_open () from /lib/libdb.so.3 #3 0x403de95f in _nss_db_getprotobynumber_r () from /lib/libnss_db.so.2 #4 0x403deb14 in _nss_db_endservent () from /lib/libnss_db.so.2 #5 0x403ded7c in _nss_db_getservbyname_r () from /lib/libnss_db.so.2 #6 0x401a282c in getservbyname_r () from /lib/libc.so.6 #7 0x401a26a4 in getservbyname () from /lib/libc.so.6 #8 0x402a383c in OnMySQLPort (entry=0x80eb128, new_value=0x0, new_value_length=3, mh_arg1=0x0, mh_arg2=0x0, mh_arg3=0x0, stage=1) at php_mysql.c:246 #9 0x40287431 in zend_register_ini_entries (ini_entry=0x4035f320, module_number=6) at zend_ini.c:149 #10 0x402a3943 in php_minit_mysql (type=1, module_number=6) at php_mysql.c:288 #11 0x4027da07 in zend_startup_module (module=0x4035f2e0) at zend_API.c:624 #12 0x402933f6 in php_startup_extensions (ptr=0x4035c28c, count=6) at main.c:716 #13 0x40294669 in php_startup_internal_extensions () at internal_functions.c:56 #14 0x402937b5 in php_module_startup (sf=0x4035b1e0) at main.c:876 #15 0x4028fd96 in php_apache_startup (sapi_module=0x4035b1e0) at mod_php4.c:259 #16 0x40290c6f in php_init_handler (s=0x80b0804, p=0x80b07dc) at mod_php4.c:729 #17 0x8056e54 in ap_init_modules () #18 0x80616b3 in main () #19 0x400fb577 in __libc_start_main () from /lib/libc.so.6 Any ideas?