|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-07-20 21:34 UTC] ab@php.net
[2012-07-27 08:33 UTC] alexaltunin at yandex dot ru
[2012-08-01 09:41 UTC] ab@php.net
[2012-08-07 10:50 UTC] alexaltunin at yandex dot ru
[2012-08-10 06:27 UTC] gillb4 at telusplanet dot net
[2016-08-31 16:07 UTC] cmb@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: cmb
[2016-08-31 16:07 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ When I include apc.o and run php -v , php segfaults. Removing apc.o and running php -v gives: PHP 5.4.2 (cli) (built: May 3 2012 15:03:51) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies Note: APC-3.1.10 works well with php-5.4.0, it broke with 5.4.1 and 5.4.2 My php configure line (I use this for php-5.4.0, 5.4.1 and 5.4.2): ./configure --enable-shared --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-curl=$SCRIPTDIRapx/$CURLVER --with-gmp --disable-debug --enable-inline- optimization --enable-mbstring --enable-wddx=shared --enable-xml --enable-ftp -- with-gd --with-gettext --with-regex=system --with-freetype- dir=/usr/local/include/freetype2 --with-t1lib=$SCRIPTDIR/$T1LIB --enable-gd- native-ttf --enable-gd-jis-conv --with-mcrypt=/usr/local/bin/mcrypt --enable- bcmath --with-jpeg-dir=/usr/lib/x86_64-linux-gnu/libjpeg.a --with-png- dir=$PNGVER --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-mysql=$MYSQLVER --with-pdo-sqlite --with-pdo-mysql=$MYSQLVER --with-pdo-odbc=unixODBC --enable- mod-charset Test script: --------------- After building APC-3.1.10 with php 5.4.2 Build complete. Don't forget to run 'make test'. Segmentation fault (core dumped) Segmentation fault (core dumped) ===================================================================== PHP : /usr/local/bin/php CWD : /data/website/peclsrc/APC-3.1.10 Extra dirs : VALGRIND : Not used ===================================================================== TIME START 2012-05-03 11:40:08 ===================================================================== FAIL APC: classes with namespaces (php 5.3) [tests/apc53_001.phpt] FAIL APC: global spaces (php 5.3) [tests/apc53_002.phpt] FAIL APC: anonymous functions (php 5.3) [tests/apc53_003.phpt] FAIL APC: closures (php 5.3) [tests/apc53_004.phpt] FAIL APC: goto (php 5.3) [tests/apc53_005.phpt] FAIL APC: apc_store/fetch with strings [tests/apc_001.phpt] FAIL APC: apc_store/fetch with objects [tests/apc_002.phpt] FAIL APC: apc_store/fetch with objects (php pre-5.3) [tests/apc_003.phpt] FAIL APC: apc_store/fetch with objects (php 5.3) [tests/apc_003b.phpt] FAIL APC: apc_store/fetch with bools [tests/apc_004.phpt] FAIL APC: apc_store/fetch with arrays of objects [tests/apc_005.phpt] FAIL APC: apc_store/fetch reference test [tests/apc_006.phpt] FAIL APC: apc_inc/apc_dec test [tests/apc_007.phpt] FAIL APC: apc_cas test [tests/apc_008.phpt] FAIL APC: apc_delete_file test [tests/apc_009.phpt] FAIL APC: apc_store/fetch/add with array of key/value pairs. [tests/apc_010.phpt] FAIL APC: bindump user cache [tests/apc_bin_001.phpt] FAIL APC: bindump file cache part 1 [tests/apc_bin_002.phpt] FAIL APC: APCIterator general [tests/iterator_001.phpt] FAIL APC: APCIterator regex [tests/iterator_002.phpt] FAIL APC: APCIterator chunk size [tests/iterator_003.phpt] FAIL APC: APCIterator regex & chunk size & list [tests/iterator_004.phpt] FAIL APC: APCIterator delete [tests/iterator_005.phpt] FAIL APC: APCIterator formats [tests/iterator_006.phpt] FAIL APC: APCIterator Overwriting the ctor [tests/iterator_007.phpt] ===================================================================== TIME END 2012-05-03 11:40:13 Actual result: -------------- gdb --args php -v gdb run Program received signal SIGSEGV, Segmentation fault. 0x0000000000756a02 in zend_hash_del_key_or_index (ht=0xf3f780, arKey=0x7fffffffcaa8 "\200", <incomplete sequence \361>, nKeyLength=8, h=7562441941702560, flag=<optimized out>) at /data/website/php-5.4.2/Zend/zend_hash.c:501 501 p = ht->arBuckets[nIndex]; (gdb) bt #0 0x0000000000756a02 in zend_hash_del_key_or_index (ht=0xf3f780, arKey=0x7fffffffcaa8 "\200", <incomplete sequence \361>, nKeyLength=8, h=7562441941702560, flag=<optimized out>) at /data/website/php-5.4.2/Zend/zend_hash.c:501 #1 0x00000000006f3a7d in php_stream_tidy_wrapper_error_log (wrapper=0xf10a80, tsrm_ls=<optimized out>) at /data/website/php-5.4.2/main/streams/streams.c:240 #2 0x00000000006f6dcd in _php_stream_open_wrapper_ex (path=<optimized out>, mode=0xbc47ce "rb", options=<optimized out>, opened_path=0x7fffffffcb98, context=<optimized out>, tsrm_ls=0xf2e310) at /data/website/php-5.4.2/main/streams/streams.c:2130 #3 0x0000000000600680 in phar_open_from_filename (fname=0x7ffff7f88910 "/tmp/phar1.phar", fname_len=15, alias=0x0, alias_len=0, options=0, pphar=0x7fffffffcbf8, error=0x0, tsrm_ls=0xf2e310) at /data/website/php-5.4.2/ext/phar/phar.c:1503 #4 0x0000000000600f71 in phar_split_cache_list (tsrm_ls=0xf2e310) at /data/website/php-5.4.2/ext/phar/phar.c:164 #5 phar_ini_cache_list (entry=<optimized out>, new_value=<optimized out>, new_value_length=<optimized out>, mh_arg1=<optimized out>, mh_arg2=<optimized out>, mh_arg3=<optimized out>, stage=1, tsrm_ls=0xf2e310) at /data/website/php- 5.4.2/ext/phar/phar.c:192 #6 0x000000000075e7d1 in zend_register_ini_entries (ini_entry=<optimized out>, module_number=29, tsrm_ls=0xf2e310) at /data/website/php- 5.4.2/Zend/zend_ini.c:208 #7 0x00000000005f8be0 in zm_startup_phar (type=<optimized out>, module_number= <optimized out>, tsrm_ls=0xf2e310) at /data/website/php- 5.4.2/ext/phar/phar.c:3534 #8 0x000000000074a472 in zend_startup_module_ex (tsrm_ls=0xf2e310, module=0xf7bad0) at /data/website/php-5.4.2/Zend/zend_API.c:1661 #9 zend_startup_module_ex (module=0xf7bad0, tsrm_ls=0xf2e310) at /data/website/php-5.4.2/Zend/zend_API.c:1615 #10 0x0000000000756eca in zend_hash_apply (ht=0xf2c700, apply_func=0x74a370 <zend_startup_module_ex>, tsrm_ls=0xf2e310) at /data/website/php- 5.4.2/Zend/zend_hash.c:716 #11 0x000000000074e610 in zend_startup_modules (tsrm_ls=0xf2e310) at /data/website/php-5.4.2/Zend/zend_API.c:1788 #12 0x00000000006da963 in php_module_startup (sf=<optimized out>, additional_modules=0x0, num_additional_modules=0) at /data/website/php- 5.4.2/main/main.c:2191 #13 0x0000000000801c6d in php_cli_startup (sapi_module=<optimized out>) at /data/website/php-5.4.2/sapi/cli/php_cli.c:414 #14 0x000000000042fe67 in main (argc=2, argv=0x7fffffffe2a8) at /data/website/php-5.4.2/sapi/cli/php_cli.c:1336 (gdb)