ID: 16475 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Apache2 related Operating System: Linux 2.4.16 / Debian 3.0 PHP Version: 4.0CVS-02-04-13 New Comment:
I too have been seeing this same error. Using RC3 and now RC4, httpd -X cores immediately. My php config: ./configure --with-apxs2=/home/brian/apache2/bin/apxs --enable-debug --prefix=/home/brian/apache2 Coredump bt: (gdb) bt #0 0x4034958e in ts_resource_ex (id=1, th_id=0x0) at TSRM.c:310 #1 0x402a1fda in php_module_startup (sf=0x4036fb00) at main.c:856 #2 0x4029f9bc in php_apache_server_startup (pconf=0x80b7e20, plog=0x80eff00, ptemp=0x8137a38, s=0x813a0a0) at sapi_apache2.c:435 #3 0x0807c972 in ap_run_post_config (pconf=0x80b7e20, plog=0x80eff00, ptemp=0x8137a38, s=0x813a0a0) at config.c:127 #4 0x08081595 in main (argc=2, argv=0xbffff7e4) at main.c:611 #5 0x40119280 in __libc_start_main () from /lib/libc.so.6 Apache 2.0.35, Mandrake 8.2 Changes made to httpd.conf as per instructions on web page: LoadModule php4_module modules/libphp4.so <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> Previous Comments: ------------------------------------------------------------------------ [2002-04-13 17:08:13] [EMAIL PROTECTED] reclassified. (please don't change the category anymore!) ------------------------------------------------------------------------ [2002-04-13 15:03:55] [EMAIL PROTECTED] Hi, well when I do a "ldd /usr/local/bin/httpd" the following list is shown: libaprutil.so.0 => /usr/local/apache2/lib/libaprutil.so.0 (0x40016000) libapr.so.0 => /usr/local/apache2/lib/libapr.so.0 (0x40026000) libm.so.6 => /lib/libm.so.6 (0x40047000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40069000) libnsl.so.1 => /lib/libnsl.so.1 (0x40096000) libdl.so.2 => /lib/libdl.so.2 (0x400ab000) libdb-4.0.so => /usr/lib/libdb-4.0.so (0x400af000) libexpat.so.0 => /usr/local/lib/libexpat.so.0 (0x40135000) libpthread.so.0 => /lib/libpthread.so.0 (0x40156000) libc.so.6 => /lib/libc.so.6 (0x4016c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) So there is libpthread included but why not in ldd of libphp4.so (as seen in my previous postings)? I'm using Debian Woody 3.0 with kernel 2.4.16 and I have installed all recent updates. Bye, Sebastian ------------------------------------------------------------------------ [2002-04-13 14:15:56] [EMAIL PROTECTED] Is the libpthread in your system a static library or why isn't it shown in that ldd list? Which Debian distro is this anyway? Stable or unstable? ------------------------------------------------------------------------ [2002-04-13 07:11:11] [EMAIL PROTECTED] Hi, well as [EMAIL PROTECTED] said I tried php 4.2.0RC3 and latest cvs snapshot from snaps.php.net, but unfortunately the result is still the same. Maybe some things where fixed but apache still crashes after being started...see my backtraces: diebels:/usr/local/apache2/bin# gdb /usr/local/apache2/bin/httpd /usr/local/apache2/bin/core GNU gdb 5.1.1 Copyright 2002 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-linux"... Core was generated by `./httpd -X'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/local/apache2/lib/libaprutil.so.0...done. Loaded symbols for /usr/local/apache2/lib/libaprutil.so.0 Reading symbols from /usr/local/apache2/lib/libapr.so.0...done. Loaded symbols for /usr/local/apache2/lib/libapr.so.0 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libdb-4.0.so...done. Loaded symbols for /usr/lib/libdb-4.0.so Reading symbols from /usr/local/lib/libexpat.so.0...done. Loaded symbols for /usr/local/lib/libexpat.so.0 Reading symbols from /lib/libpthread.so.0...done. warning: Unable to set global thread event mask: generic error [New Thread 1024 (LWP 23812)] Error while reading shared library symbols: Cannot enable thread event reporting for Thread 1024 (LWP 23812): generic error Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libnss_compat.so.2...done. Loaded symbols for /lib/libnss_compat.so.2 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /usr/local/apache2/modules/libphp4.so...done. Loaded symbols for /usr/local/apache2/modules/libphp4.so Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 #0 0x401de657 in malloc () from /lib/libc.so.6 (gdb)bt #0 0x401de657 in malloc () from /lib/libc.so.6 #1 0x401dfa93 in calloc () from /lib/libc.so.6 #2 0x4037efb9 in zend_hash_init (ht=0x403dec64, nSize=0, pHashFunction=0, pDestructor=0x40379b04 <_zval_ptr_dtor_wrapper>, persistent=1) at /home/sebastian/php_cvs/php4-200204130300/Zend/zend_hash.c:176 #3 0x4037f060 in zend_hash_init_ex (ht=0x403dec64, nSize=0, pHashFunction=0, pDestructor=0x40379b04 <_zval_ptr_dtor_wrapper>, persistent=1, bApplyProtection=0) at /home/sebastian/php_cvs/php4-200204130300/Zend/zend_hash.c:197 #4 0x4037a169 in register_standard_class () at /home/sebastian/php_cvs/php4-200204130300/Zend/zend.c:250 #5 0x4037a74f in zend_startup (utility_functions=0xbffffc78, extensions=0x0, start_builtin_functions=1) at /home/sebastian/php_cvs/php4-200204130300/Zend/zend.c:429 #6 0x4034dbbd in php_module_startup (sf=0x403cc440) at /home/sebastian/php_cvs/php4-200204130300/main/main.c:924 #7 0x40392713 in php_apache_server_startup (pconf=0x80ad520, plog=0x80e5600, ptemp=0x812f3e0, s=0x8131a48) at /home/sebastian/php_cvs/php4-200204130300/sapi/apache2filter/sapi_apache2.c:435 #8 0x08076e51 in ap_run_post_config (pconf=0x80ad520, plog=0x80e5600, ptemp=0x812f3e0, s=0x8131a48) at config.c:129 #9 0x0807b031 in main (argc=2, argv=0xbffffdd4) at main.c:611 #10 0x401896cf in __libc_start_main () from /lib/libc.so.6 I will try it again in a couple of days... Bye, Sebastian ------------------------------------------------------------------------ [2002-04-12 20:25:45] [EMAIL PROTECTED] There have been some fixes. Please try PHP 4.2.0RC3 from http://www.php.net/~derick/ or latest CVS snapshot from http://snaps.php.net/ ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16475 -- Edit this bug report at http://bugs.php.net/?id=16475&edit=1