From: laruence Operating system: PHP version: 5.4.4 Package: Streams related Bug Type: Bug Bug description:segfault in php_stream_wrapper_log_error with ZTS build
Description: ------------ backtrace: Cannot access memory at address 0x9 (gdb) bt #0 0x000000000096a873 in zend_hash_del_key_or_index (ht=0x1bb60f70, arKey=0x7fff0e483018 "Â Ú \001", nKeyLength=8, h=7563748164900642, flag=0) at /home/huixinchen/opensource/php-5.4/Zend/zend_hash.c:508 #1 0x00000000008b54b9 in php_stream_wrapper_log_error (wrapper=0x8c1c82, options=32767, tsrm_ls=0x1bae1090, fmt=0x0) at /home/huixinchen/opensource/php-5.4/main/streams/streams.c:250 #2 0x00000000008bae78 in php_stream_context_set (stream=0x0, context=0xe483140) at /home/huixinchen/opensource/php-5.4/main/streams/streams.c:2154 #3 0x00000000006b3e27 in phar_open_from_filename ( fname=0x2b9248f8bb90 "/home/huixinchen/opensource/php- 5.4/ext/phar/tests/cache_list/frontcontroller1.php [cache_list]", fname_len=95, alias=0x0, alias_len=0, options=0, pphar=0x7fff0e483208, error=0x0, tsrm_ls=0x1bae1090) at /home/huixinchen/opensource/php-5.4/ext/phar/phar.c:1522 #4 0x00000000006adf43 in phar_split_cache_list (tsrm_ls=0x1bae1090) at /home/huixinchen/opensource/php-5.4/ext/phar/phar.c:177 #5 0x00000000006ae222 in phar_destroy_phar_data (phar=0x1bc42980, tsrm_ls=0x1baf69d0) at /home/huixinchen/opensource/php-5.4/ext/phar/phar.c:217 #6 0x0000000000976bd2 in zend_unregister_ini_entries (module_number=1643, tsrm_ls=0x1baebaa0) at /home/huixinchen/opensource/php-5.4/Zend/zend_ini.c:226 #7 0x00000000006bb8ef in zm_shutdown_phar (type=1, module_number=22, tsrm_ls=0x1bae1090) at /home/huixinchen/opensource/php-5.4/ext/phar/phar.c:3562 #8 0x000000000095f34e in zend_sort_modules (base=0x95f34e, count=140733433000848, siz=4294967318, compare=0x1bae1090, tsrm_ls=0x6bb8ef) at /home/huixinchen/opensource/php-5.4/Zend/zend_API.c:1674 #9 0x000000000096b1a2 in zend_hash_apply_with_argument (ht=0x1227420, apply_func=0x95f14b <zend_startup_module_ex+176>, argument=0x1bae1090, tsrm_ls=0x95f3de) at /home/huixinchen/opensource/php- 5.4/Zend/zend_hash.c:737 #10 0x000000000095f974 in zend_register_module_ex (module=0x20, tsrm_ls=0x1bb1ff80) at /home/huixinchen/opensource/php-5.4/Zend/zend_API.c:1821 #11 0x0000000000894b32 in php_module_startup (sf=0x120e760, additional_modules=0x120e8a0, num_additional_modules=1) at /home/huixinchen/opensource/php-5.4/main/main.c:2203 #12 0x0000000000adeb97 in do_cli (argc=32767, argv=0x0, tsrm_ls=0x90cf1d) at /home/huixinchen/opensource/php-5.4/sapi/cli/php_cli.c:1039 #13 0x0000000000ae1e48 in php_http_parser_execute (parser=0x7fff0e484cef, settings=0x6f00f0b0ff, data=0x0, len=0) at /home/huixinchen/opensource/php-5.4/sapi/cli/php_http_parser.c:1128 #14 0x000000305441d994 in ?? () #15 0x0000000000424ab0 in __do_global_dtors_aux () Test script: --------------- ext/phar/tests/*.phpt Actual result: -------------- segfault -- Edit bug report at https://bugs.php.net/bug.php?id=62597&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62597&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62597&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62597&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62597&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62597&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62597&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62597&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62597&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62597&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62597&r=support Expected behavior: https://bugs.php.net/fix.php?id=62597&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62597&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62597&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62597&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62597&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62597&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62597&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62597&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62597&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62597&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62597&r=mysqlcfg