[PHP 4.4.5 / Apache 2.2.3] Abrupt and unrepeatable Segmentation fault (11)

php.internals

Jan Schröter

19 years ago
Hi all! I'm having trouble with my server(s) for some weeks now and did not find any solution for now. My System is Opensuse 10.1 (32 bit) with Apache 2.2.3 and PHP 4.4.5-dev as apache module (latest stable CVS, but wasn't the solution). Im having abrupt segmentation faults in my Apache errorlog. Most frequently the problem seems to appear while accessing the start page of an actual Joomla installation, but i've had the error with an Worpress too. So it cannot be isolated to some php Scripts. Sadly i am not able to reproduce this error - when it appears it will not go until an apache restart, but then everything works fine for some time (maybe hours or even days). Here is a gdb backtrace of the request which died with a segmentation fault. Hopefully someon can help me with this. If you need any further details, tell me, and please also tell me how to obtain this information ;-). #0 0xb7fa91a4 in do_lookup_x () from /lib/ld-linux.so.2 #1 0xb7fa9587 in _dl_lookup_symbol_x () from /lib/ld-linux.so.2 #2 0xb7fad24d in _dl_fixup () from /lib/ld-linux.so.2 #3 0xb7fb2630 in _dl_runtime_resolve () from /lib/ld-linux.so.2 #4 0xb70f6029 in internal_getent () from /lib/libnss_files.so.2 #5 0xb70f6332 in _nss_files_gethostbyaddr_r () from /lib/libnss_files.so.2 #6 0xb7ddec22 in gethostbyaddr_r@@GLIBC_2.1.2 () from /lib/libc.so.6 #7 0xb7ddea32 in gethostbyaddr () from /lib/libc.so.6 #8 0xb79157fe in zif_gethostbyaddr (ht=1, return_value=0x8741224, this_ptr=0x0, return_value_used=1) at /usr/src/packages/BUILD/php4-4.4.4/ext/standard/dns.c:125 #9 0xb79b86ab in execute (op_array=0x856ff84) at /usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1675 #10 0xb79b42c7 in execute (op_array=0x856b3cc) at /usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1719 #11 0xb79a221e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/packages/BUILD/php4-4.4.4/Zend/zend. #12 0xb7975215 in php_execute_script (primary_file=0xbfaee9d4) at /usr/src/packages/BUILD/php4-4.4.4/main/main.c:1752 #13 0xb79bc600 in php_handler (r=0x8596e68) at /usr/src/packages/BUILD/php4-4.4.4/sapi/apache2handler/sapi_apache2.c:581 #14 0x080796f9 in ap_run_handler () #15 0x08079e43 in ap_invoke_handler () #16 0x0809c1e0 in ap_process_request () #17 0x08098d62 in ap_process_http_connection () #18 0x08081b2b in ap_run_process_connection () #19 0x08081f38 in ap_process_connection () #20 0x080be32f in child_main () #21 0x080be511 in make_child () #22 0x080be762 in perform_idle_server_maintenance () #23 0x080bec8c in ap_mpm_run () #24 0x08062f06 in main () kind regards Jan

Dmitry Dartz

19 years ago
Looks like an ipv6 issue. Did you try to re-compile without ipv6? "Jan Schröter" <schroeter.jan@web.de> wrote in message news:DF.65.20970.9D6EF654@pb1.pair.com...

Jan Schröter

19 years ago
Dmitry Dartz wrote:
> Looks like an ipv6 issue. > Did you try to re-compile without ipv6?
I already stumbled on this possible issue and recompiled my php without ipv6 support (--disable-ipv6). But it didn't work anyway. Here is my complete configure line: './configure' '--prefix=/usr/' '--datadir=/usr/share/php/' '--bindir=/usr/bin/' '--libdir=/usr/share/' '--with-exec-dir=/usr/lib/php/bin/' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php4-config' '--enable-force-cgi-redirect' '--enable-memory-limit' '--enable-sigchild' '--enable-track-vars' '--enable-trans-sid' '--disable-ipv6' '--with-mysql=no' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-exif' '--enable-filepro' '--enable-ftp' '--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-gettext' '--with-gmp' '--with-mcrypt' '--with-mcal=/usr/' '--with-iconv' '--with-mcrypt' '--with-zlib' '--with-bz2' '--with-openssl=/usr' '--with-pear' '--with-apxs2=/usr/sbin/apxs' kind regards jan

Jan Schröter

19 years ago
Jan Schröter wrote:
> #0 0xb7fa91a4 in do_lookup_x () from /lib/ld-linux.so.2 > #1 0xb7fa9587 in _dl_lookup_symbol_x () from /lib/ld-linux.so.2 > #2 0xb7fad24d in _dl_fixup () from /lib/ld-linux.so.2 > #3 0xb7fb2630 in _dl_runtime_resolve () from /lib/ld-linux.so.2 > #4 0xb70f6029 in internal_getent () from /lib/libnss_files.so.2 > #5 0xb70f6332 in _nss_files_gethostbyaddr_r () from /lib/libnss_files.so.2 > #6 0xb7ddec22 in gethostbyaddr_r@@GLIBC_2.1.2 () from /lib/libc.so.6 > #7 0xb7ddea32 in gethostbyaddr () from /lib/libc.so.6 > #8 0xb79157fe in zif_gethostbyaddr (ht=1, return_value=0x8741224, > this_ptr=0x0, > return_value_used=1) > at /usr/src/packages/BUILD/php4-4.4.4/ext/standard/dns.c:125 > #9 0xb79b86ab in execute (op_array=0x856ff84) at > /usr/src/packages/BUILD/php4-4.4.4/Zend/zend_execute.c:1675
It seems that the problem is not releated to PHP but GLIBC / NSCD. If I completely disable the NSCD (not only host caching) the error seems not to occur anymore. Anyone who knows about problems releated to this? kind regards Jan