|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-16 18:32 UTC] tony at teamxbox dot com
Description: ------------ apache 1.3.34 (mod_php loaded as so) php 4.4.1, compiled with: './configure' '--prefix=/usr/local/php' '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/apache/conf' '--with-libxml-dir=/usr/lib/libxml2' '--with-mysql' '--with-gettext' '--with-xml' '--with-dom' '--with-zlib' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-tiff-dir' '--with-freetype-dir' '--with-ttf' '--with-zlib' '--with-dom' '--with-dom-xslt' '--enable-cli' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libgcc' '--enable-localizer' '--enable-magic-quotes' '--enable-mailparse' '--enable-mbstring' '--enable-pcntl' '--enable-shmop' '--enable-sigchild' '--enable-sysvshm' '--enable-sysvsem' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-force-cgi-redirect' '--enable-sockets' '--with-sockets' '--enable-soap' '--disable-cgi' apc 3.0.8, compiled with: ./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/local/apache/bin/apxs --with-php-config=/usr/local/php/bin/php-config php.ini directives: extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/" extension="apc.so" apc.enabled="1" apc.shm_segments="1" apc.optimization="0" apc.shm_size="64" apc.ttl="7200" apc.user_ttl="7200" apc.num_files_hint="2000" apc.mmap_file_mask="/tmp/apc.XXXXXX" Any page requested using php will return no output, and I see segfaults in apache's error log, as such: [Fri Dec 16 15:20:24 2005] [notice] child pid 5757 exit signal Segmentation fault (11) I can't even get a phpinfo going, but I know the module is loading cause as soon as I enable it in php.ini I see this behavior. Reproduce code: --------------- <?php phpinfo(); ?> Expected result: ---------------- phpinfo, duh :P Actual result: -------------- Blank Output, and an apache segfault. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 08:00:02 2025 UTC |
# gdb /usr/local/apache/bin/httpd GNU gdb Red Hat Linux (6.3.0.0-1.63rh) Copyright 2004 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-redhat-linux-gnu"... (no debugging symbols found) Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X [Thread debugging using libthread_db enabled] [New Thread -1208023360 (LWP 17634)] (no debugging symbols found) [many repeats of this message] [page requested] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208023360 (LWP 17634)] 0x01174bc6 in zend_hash_num_elements (ht=0x8) at /var/tmp/php-4.4.1/Zend/zend_hash.c:1001 1001 return ht->nNumOfElements; (gdb) bt #0 0x01174bc6 in zend_hash_num_elements (ht=0x8) at /var/tmp/php-4.4.1/Zend/zend_hash.c:1001 #1 0x003ee045 in my_compile_file (h=0xbffe46e0, type=2) at /home/tford/APC-3.0.8/apc_main.c:278 #2 0x011707d7 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /var/tmp/php-4.4.1/Zend/zend.c:934 #3 0x01149870 in php_execute_script (primary_file=0xbffe46e0) at /var/tmp/php-4.4.1/main/main.c:1743 #4 0x01187db4 in apache_php_module_main (r=0x8fd58c0, display_source_mode=0) at /var/tmp/php-4.4.1/sapi/apache/sapi_apache.c:54 #5 0x011885e0 in send_php (r=0x8fd58c0, display_source_mode=0, filename=0x0) at /var/tmp/php-4.4.1/sapi/apache/mod_php4.c:627 #6 0x08055f89 in ap_invoke_handler () #7 0x012f4c97 in tens () from /usr/local/apache/libexec/libphp4.so (gdb) QuitI've just built apc 3.0.9 and I still have the same segfaults in apache. I can't get any page to load, there aren't even http response headers. Here is backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208023360 (LWP 779)] 0x0106cbc6 in zend_hash_num_elements (ht=0x8) at /var/tmp/php-4.4.1/Zend/zend_hash.c:1001 1001 /var/tmp/php-4.4.1/Zend/zend_hash.c: No such file or directory. in /var/tmp/php-4.4.1/Zend/zend_hash.c (gdb) bt #0 0x0106cbc6 in zend_hash_num_elements (ht=0x8) at /var/tmp/php-4.4.1/Zend/zend_hash.c:1001 #1 0x0027a8c7 in my_compile_file (h=0xbffa6650, type=2) at /home/tford/APC-3.0.9/apc_main.c:258 #2 0x010687d7 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /var/tmp/php-4.4.1/Zend/zend.c:934 #3 0x01041870 in php_execute_script (primary_file=0xbffa6650) at /var/tmp/php-4.4.1/main/main.c:1743 #4 0x0107fdb4 in apache_php_module_main (r=0x9d63c20, display_source_mode=0) at /var/tmp/php-4.4.1/sapi/apache/sapi_apache.c:54 #5 0x010805e0 in send_php (r=0x9d63c20, display_source_mode=0, filename=0x0) at /var/tmp/php-4.4.1/sapi/apache/mod_php4.c:627 #6 0x08055f89 in ap_invoke_handler () #7 0x011ecc97 in tens () from /usr/local/apache/libexec/libphp4.so