|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-22 23:18 UTC] lyle dot pritchett at dri dot edu
Description: ------------ Per advice in bug #40565, picked up latest version: php5.2-200702222130. Ran configure with options --with-apxs2=/opt/apache/bin/apxs \ --with-config-file-path=/opt/apache/conf \ --localstatedir=/var/run \ --enable-force-cgi-redirect \ --enable-magic-quotes \ --with-openssl=/opt \ --with-libxml-dir=/opt \ --enable-calendar \ --with-pgsql=/opt \ --with-readline=/opt \ --disable-ipv6 \ --with-exec-dir=/opt/php/bin \ --enable-libgcc apxs, openssl, libxml, Postgres, gcc, and readline are all latest available versions. Compile finishes successfully. make test Build complete. (It is safe to ignore warnings about tempnam and tmpnam). Segmentation Fault make: [test] Error 139 (ignored) Reproduce code: --------------- N/A Expected result: ---------------- A series of successful tests Actual result: -------------- immediate segmentation fault on "make test" Interestingly, "php --version" works fine PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
make test Build complete. (It is safe to ignore warnings about tempnam and tmpnam). Segmentation Fault make: [test] Error 139 (ignored) trapdoor:/opt/src/php/php5.2-200702222130 # gdb ./sapi/cli/php GNU gdb 6.3 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 "sparc-sun-solaris2.10"... (gdb) set args run-tests.php (gdb) run Starting program: /opt/src/php/php5.2-200702222130/sapi/cli/php run-tests.php warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074 warning: Lowest section in /lib/libdl.so.1 is .dynamic at 00000094 Program received signal SIGSEGV, Segmentation fault. _zval_ptr_dtor (zval_ptr=0x3d6748) at /opt/src/php/php5.2-200702222130/Zend/zend_execute_API.c:412 412 (*zval_ptr)->refcount--; (gdb) bt #0 _zval_ptr_dtor (zval_ptr=0x3d6748) at /opt/src/php/php5.2-200702222130/Zend/zend_execute_API.c:412 #1 0x002892e0 in zend_do_fcall_common_helper_SPEC (execute_data=0xffbfbb4c) at zend_execute.h:155 #2 0x002791f0 in execute (op_array=0xffbff110) at zend_vm_execute.h:92 #3 0x00259780 in zend_execute_scripts (type=-2115502080, retval=Variable "retval" is not available. ) at /opt/src/php/php5.2-200702222130/Zend/zend.c:1135 #4 0x00214d14 in php_execute_script (primary_file=0x81e80000) at /opt/src/php/php5.2-200702222130/main/main.c:1787 #5 0x002e51b0 in main (argc=-2115502080, argv=0x91d0203a) at /opt/src/php/php5.2-200702222130/sapi/cli/php_cli.c:1127 (gdb) quitNo joy. Rebuilt latest snap version (5.2-200702231530) with gcc 4.1.2. Still getting seg fault on self-test on both Solaris 9 and 10 SPARC servers. Also tried minimal config to eliminate possible effects of supplemental packages: ./configure --prefix=/opt \ --with-config-file-path=/opt/apache/conf \ --localstatedir=/var/run \ --with-libxml-dir=/opt Still barfing. Traceback on latest build same as before (with exception of absolute address values).Don't know if this helps, but I added --disable-inline-optimization to the configure parms; "make test" now gets a little further: (gdb) run Starting program: /opt/src/php/php5.2-200702231530/sapi/cli/php run-tests.php warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074 warning: Lowest section in /lib/libdl.so.1 is .dynamic at 00000094 ===================================================================== CWD : /opt/src/php/php5.2-200702231530 PHP : sapi/cli/php PHP_SAPI : cli PHP_VERSION : 5.2.2-dev ZEND_VERSION: 2.2.0 PHP_OS : SunOS - SunOS trapdoor 5.10 Generic_118833-24 sun4u INI actual : /opt/src/php/php5.2-200702231530 More .INIs : Extra dirs : ===================================================================== Program received signal SIGSEGV, Segmentation fault. 0x002570c8 in _zval_ptr_dtor (zval_ptr=0xffbfb750) at /opt/src/php/php5.2-200702231530/Zend/zend_execute_API.c:412 412 (*zval_ptr)->refcount--; (gdb) bt #0 0x002570c8 in _zval_ptr_dtor (zval_ptr=0xffbfb750) at /opt/src/php/php5.2-200702231530/Zend/zend_execute_API.c:412 #1 0x00259448 in zend_call_function (fci=0xffbfb7d8, fci_cache=Variable "fci_cache" is not available. ) at zend_execute.h:155 #2 0x0019e65c in array_user_compare (a=0x64af70, b=Variable "b" is not available. ) at /opt/src/php/php5.2-200702231530/ext/standard/array.c:592 #3 0x0027b854 in zend_qsort (base=Variable "base" is not available. ) at /opt/src/php/php5.2-200702231530/Zend/zend_qsort.c:83 #4 0x002719b8 in zend_hash_sort (ht=0x621318, sort_func=0x27b75c <zend_qsort>, compar=0x19e5a4 <array_user_compare>, renumber=1, tsrm_ls=0x3ed738) at /opt/src/php/php5.2-200702231530/Zend/zend_hash.c:1275 #5 0x00198170 in zif_usort (ht=Variable "ht" is not available. ) at /opt/src/php/php5.2-200702231530/ext/standard/array.c:660 #6 0x0028a2b8 in zend_do_fcall_common_helper_SPEC (execute_data=0xffbff170, tsrm_ls=0x3ed738) at zend_vm_execute.h:200 #7 0x00293804 in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0xffbff170, tsrm_ls=0x3ed738) at zend_vm_execute.h:1681 #8 0x00289ae8 in execute (op_array=0x3fc678, tsrm_ls=0x3ed738) at zend_vm_execute.h:92 #9 0x0026603c in zend_execute_scripts (type=8, tsrm_ls=0x3ed738, retval=Variable "retval" is not available. ) at /opt/src/php/php5.2-200702231530/Zend/zend.c:1135 ---Type <return> to continue, or q <return> to quit--- #10 0x0021805c in php_execute_script (primary_file=0xffbff8dc, tsrm_ls=0x3ed738) at /opt/src/php/php5.2-200702231530/main/main.c:1787 #11 0x00306494 in main (argc=2, argv=0xffbff9e4) at /opt/src/php/php5.2-200702231530/sapi/cli/php_cli.c:1127 (gdb)