Edit report at https://bugs.php.net/bug.php?id=53167&edit=1
ID: 53167 Updated by: fel...@php.net Reported by: schumacher dot cyrill at gmail dot com Summary: phpinfo() Segmentation fault php as module in Apache2 -Status: Open +Status: Feedback Type: Bug Package: Apache2 related Operating System: FreeBSD 8.1 PHP Version: trunk-SVN-2010-10-26 (snap) Block user comment: N Private report: N New Comment: Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2010-10-26 15:49:20] schumacher dot cyrill at gmail dot com CLI or CGI version is not affected! ------------------------------------------------------------------------ [2010-10-26 15:36:44] schumacher dot cyrill at gmail dot com Description: ------------ A call of a simple <?php phpinfo(); ?> file will result in a segmentation fault with this PHP Version: http://snaps.php.net/php-trunk-201010261230.tar.gz A earlier php trunk version (~ one month ago) works properly ... Test script: --------------- <?php phpinfo(); ?> Expected result: ---------------- A phpinfo site in the browser. Actual result: -------------- ./configure --prefix=/usr/local/php6 --with-apxs2=/usr/local/httpd/bin/apxs --disable-cli --disable-cgi --with-config-file-path=/etc/php6 --disable-ipv6 --disable-short-tags --with-openssl=/usr --with-pcre-regex --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --with-libxml-dir --enable-exif --enable-filter --enable-ftp --with-openssl-dir=/usr --with-gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr/local --enable-gd-native-ttf --with-gettext --with-mhash --enable-intl --with-mcrypt --with-mssql=/usr/local --with-mysql=/usr/bin/mysql_config --with-zlib-dir=/usr --with-mysqli=mysqlnd --with-pdo-dblib --with-pdo-mysql=mysqlnd --with-mm --enable-shmop --with-libxml-dir=/usr --enable-soap --with-libxml-dir=/usr --enable-sqlite-utf8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-xsl=/usr/local --enable-zip --with-pear --enable-static --with-iconv --enable-dbase --enable-pcntl --with-pdo_sqlite --with-pspell --enable-sockets --with-icu-dir=/usr/local && make schumach@fb1/home/sources# gdb /usr/local/httpd/bin/httpd GNU gdb 6.1.1 [FreeBSD] 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 "amd64-marcel-freebsd"... (gdb) run -X Starting program: /usr/local/httpd/bin/httpd -X [New LWP 100085] [New Thread 8016041c0 (LWP 100085)] [Tue Oct 26 15:25:13 2010] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter [Tue Oct 26 15:25:13 2010] [warn] (2)No such file or directory: Failed to enable the 'dataready' Accept Filter Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 8016041c0 (LWP 100085)] php_print_gpcse_array (name=0x802378394 "_SERVER", name_length=Variable "name_length" is not available. ) at /home/sources/php-trunk-201010261230/ext/standard/info.c:242 242 /home/sources/php-trunk-201010261230/ext/standard/info.c: No such file or directory. in /home/sources/php-trunk-201010261230/ext/standard/info.c (gdb) bt #0 php_print_gpcse_array (name=0x802378394 "_SERVER", name_length=Variable "name_length" is not available. ) at /home/sources/php-trunk-201010261230/ext/standard/info.c:242 #1 0x00000008021c698e in php_print_info (flag=-1) at /home/sources/php-trunk-201010261230/ext/standard/info.c:888 #2 0x00000008021c71b8 in zif_phpinfo (ht=Variable "ht" is not available. ) at /home/sources/php-trunk-201010261230/ext/standard/info.c:1144 #3 0x00000008022c1ce5 in zend_do_fcall_common_helper_SPEC (execute_data=0x801785050) at zend_vm_execute.h:638 #4 0x00000008022c7d92 in execute (op_array=0x8017b78d0) at zend_vm_execute.h:410 #5 0x00000008022912c1 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/sources/php-trunk-201010261230/Zend/zend.c:1195 #6 0x0000000802236287 in php_execute_script (primary_file=0x7fffffffe5a0) at /home/sources/php-trunk-201010261230/main/main.c:2331 #7 0x000000080232f72e in php_handler (r=0x8061460a0) at /home/sources/php-trunk-201010261230/sapi/apache2handler/sapi_apache2.c:667 #8 0x000000000043d24a in ap_run_handler (r=0x8061460a0) at config.c:157 #9 0x0000000000440472 in ap_invoke_handler (r=0x8061460a0) at config.c:376 #10 0x0000000000462e1e in ap_process_request (r=0x8061460a0) at http_request.c:282 #11 0x0000000000460218 in ap_process_http_connection (c=0x80613c290) at http_core.c:190 #12 0x0000000000444132 in ap_run_process_connection (c=0x80613c290) at connection.c:43 #13 0x0000000000470d98 in child_main (child_num_arg=Variable "child_num_arg" is not available. ) at prefork.c:662 #14 0x0000000000470f98 in make_child (s=0x80161d370, slot=0) at prefork.c:702 #15 0x00000000004719ff in ap_mpm_run (_pconf=Variable "_pconf" is not available. ) at prefork.c:978 #16 0x000000000042adda in main (argc=2, argv=0x7fffffffeae0) at main.c:740 (gdb) frame 0 #0 php_print_gpcse_array (name=0x802378394 "_SERVER", name_length=Variable "name_length" is not available. ) at /home/sources/php-trunk-201010261230/ext/standard/info.c:242 242 in /home/sources/php-trunk-201010261230/ext/standard/info.c (gdb) frame 1 #1 0x00000008021c698e in php_print_info (flag=-1) at /home/sources/php-trunk-201010261230/ext/standard/info.c:888 888 in /home/sources/php-trunk-201010261230/ext/standard/info.c (gdb) frame 2 #2 0x00000008021c71b8 in zif_phpinfo (ht=Variable "ht" is not available. ) at /home/sources/php-trunk-201010261230/ext/standard/info.c:1144 1144 in /home/sources/php-trunk-201010261230/ext/standard/info.c (gdb) frame 3 #3 0x00000008022c1ce5 in zend_do_fcall_common_helper_SPEC (execute_data=0x801785050) at zend_vm_execute.h:638 638 zend_vm_execute.h: No such file or directory. in zend_vm_execute.h (gdb) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53167&edit=1