|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-11-03 00:53 UTC] vangel dot attila at gmail dot com
[2015-11-03 00:58 UTC] vangel dot attila at gmail dot com
[2016-06-20 14:47 UTC] cmb@php.net
-Operating System: Windows 7
+Operating System: Cygwin
[2020-10-21 10:21 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2020-10-21 10:21 UTC] cmb@php.net
[2020-11-01 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 09:00:02 2025 UTC |
Description: ------------ Under cygwin: PHP 5.6.13 (cli) (built: Sep 4 2015 12:40:08) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies I get the following reproducible SIGSEGV after installing the phpunit/phpunit package. Test script: --------------- In a composer.json file { "require": { "phpunit/phpunit": "~4" } } Then run php composer.phar install. It should segfault just after you can read "Generating autoload files". Expected result: ---------------- No "Program received signal SIGSEGV, Segmentation fault.". The program completes without crashing. Actual result: -------------- Here is a backtrace in gdb: Program received signal SIGSEGV, Segmentation fault. lex_scan (zendlval=zendlval@entry=0x228cd0) at Zend/zend_language_scanner.c:2636 2636 Zend/zend_language_scanner.c: No such file or directory. (gdb) bt #0 lex_scan (zendlval=zendlval@entry=0x228cd0) at Zend/zend_language_scanner.c:2636 #1 0x00000003f689a69c in zend_strip () at /usr/src/debug/php-5.6.13-1/Zend/zend_highlight.c:174 #2 0x00000003f67c056a in zif_php_strip_whitespace (ht=<optimized out>, return_value=0x6fffeff2798, return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=1) at /usr/src/debug/php-5.6.13-1/ext/standard/basic_functions.c:5241 #3 0x00000003f694c66c in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /usr/src/debug/php-5.6.13-1/Zend/zend_vm_execute.h:558 #4 0x00000003f68dcb58 in execute_ex (execute_data=0x6fffffbe2f0) at /usr/src/debug/php-5.6.13-1/Zend/zend_vm_execute.h:363 #5 0x00000003f68a80ed in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/debug/php-5.6.13-1/Zend/zend.c:1341 #6 0x00000003f6845c8a in php_execute_script (primary_file=0x22b858) at /usr/src/debug/php-5.6.13-1/main/main.c:2597 #7 0x0000000100402729 in do_cli (argc=3, argv=0x22cb10) at /usr/src/debug/php-5.6.13-1/sapi/cli/php_cli.c:994 #8 0x000000010040b6fb in main (argc=3, argv=0x22cb10) at /usr/src/debug/php-5.6.13-1/sapi/cli/php_cli.c:1378 The zval given to lex_scan: (gdb) p *(zval *) 0x228cd0 $1 = {value = {lval = 7696551907325, dval = 3.802601888843204e-311, str = {val = 0x6fffe3e0ffd "\n}\n"<error: Cannot access memory at address 0x6fffe3e1000>, len = 1}, ht = 0x6fffe3e0ffd, obj = {handle = 4265480189, handlers = 0x1}, ast = 0x6fffe3e0ffd}, refcount__gc = 4278048360, type = 0 '\000', is_ref__gc = 6 '\006'}