Bug #66660 [Opn->Fbk]: Composer.phar install/update fails

From: Date: Sun, 13 Apr 2014 01:16:38 +0000
Subject: Bug #66660 [Opn->Fbk]: Composer.phar install/update fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185196@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66660&edit=1 ID: 66660 Updated by: tyrael@php.net Reported by: shabazzk at gmail dot com Summary: Composer.phar install/update fails -Status: Open +Status: Feedback Type: Bug Package: Reproducible crash Operating System: Windows 7 Enterprise PHP Version: 5.6.0-dev Block user comment: N Private report: N New Comment: could you verify that it is working fine with beta1? it it does then I will close this issue. Previous Comments: ------------------------------------------------------------------------ [2014-03-17 04:22:58] shabazzk at gmail dot com It is working for me now. I went back and built PHP on Windows 7 with the latest version of PHP from the git repo: git clone -b PHP-5.6 https://github.com/php/php-src I used these instructions to build on Winodws: http://www.kshabazz.net/build-php-on-windows.html ------------------------------------------------------------------------ [2014-03-05 12:09:18] shabazzk at gmail dot com This may help it bit more: > php5.dll!_efree(void * ptr) Line 2440 C php5.dll!zend_strip() Line 214 C php5.dll!zif_php_strip_whitespace(int ht, _zval_struct * return_value, _zval_struct * * return_value_ptr, _zval_struct * this_ptr, int return_value_used) Line 5240 C php5.dll!zend_do_fcall_common_helper_SPEC(_zend_execute_data * execute_data) Line 558 C php5.dll!execute_ex(_zend_execute_data * execute_data) Line 363 C php5.dll!zend_execute(_zend_op_array * op_array) Line 388 C php5.dll!zend_execute_scripts(int type, _zval_struct * * retval, int file_count, ...) Line 1330 C php5.dll!php_execute_script(_zend_file_handle * primary_file) Line 2584 C 5615CE5C 00 02 add byte ptr [edx],al 2437: AG(mm_heap)->_free(ptr); 2438: return; 2439: } 2440: _zend_mm_free_int(AG(mm_heap), ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); 5615CE5E 00 73 25 add byte ptr [ebx+25h],dh 5615CE61 8B C2 mov eax,edx 5615CE63 C1 E8 03 shr eax,3 5615CE66 8D 0C 86 lea ecx,[esi+eax*4] 5615CE69 8B 41 48 mov eax,dword ptr [ecx+48h] 5615CE6C 89 47 08 mov dword ptr [edi+8],eax 5615CE6F 89 79 48 mov dword ptr [ecx+48h],edi 5615CE72 01 56 4C add dword ptr [esi+4Ch],edx 5615CE75 A1 E4 52 68 56 mov eax,dword ptr ds:[566852E4h] 5615CE7A 85 C0 test eax,eax 5615CE7C 0F 85 4D 04 00 00 jne _efree+4AFh (5615D2CFh) 5615CE82 5F pop edi 5615CE83 5E pop esi 2441: } 5615CE84 59 pop ecx 5615CE85 C3 ret 2437: AG(mm_heap)->_free(ptr); 2438: return; 2439: } 2440: _zend_mm_free_int(AG(mm_heap), ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); 5615CE86 29 56 34 sub dword ptr [esi+34h],edx 5615CE89 8B 04 3A mov eax,dword ptr [edx+edi] 5615CE8C 53 push ebx 5615CE8D 8D 1C 3A lea ebx,[edx+edi] 5615CE90 55 push ebp 5615CE91 A8 01 test al,1 5615CE93 75 6D jne _efree+0E2h (5615CF02h) 5615CE95 8B 4B 08 mov ecx,dword ptr [ebx+8] 5615CE98 8B 6B 0C mov ebp,dword ptr [ebx+0Ch] 5615CE9B 3B CB cmp ecx,ebx 5615CE9D 0F 85 A9 01 00 00 jne _efree+22Ch (5615D04Ch) 5615CEA3 3B EB cmp ebp,ebx 5615CEA5 0F 85 2B 04 00 00 jne _efree+4B6h (5615D2D6h) 5615CEAB 83 7B 18 00 cmp dword ptr [ebx+18h],0 5615CEAF 0F 85 83 03 00 00 jne _efree+418h (5615D238h) 2437: AG(mm_heap)->_free(ptr); 2438: return; 2439: } 2440: _zend_mm_free_int(AG(mm_heap), ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); ------------------------------------------------------------------------ [2014-03-05 11:58:51] shabazzk at gmail dot com PHP crashes when composer.phar tries to generate an auto-load file for me. There may be other times when it crashes. I tried to get a back-trace. But the instructions on how to do that are quite dated. I'm using VS2012, so I did the best I could. I assume since PHP crashes, then it is a bug with PHP, and since composer works fine with 5.5.3. -- stack call > php5.dll!_efree(void * ptr) Line 2440 C php5.dll!zend_strip() Line 214 C php5.dll!zif_php_strip_whitespace(int ht, _zval_struct * return_value, _zval_struct * * return_value_ptr, _zval_struct * this_ptr, int return_value_used) Line 5240 C php5.dll!zend_do_fcall_common_helper_SPEC(_zend_execute_data * execute_data) Line 558 C php5.dll!execute_ex(_zend_execute_data * execute_data) Line 363 C php5.dll!zend_execute(_zend_op_array * op_array) Line 388 C php5.dll!zend_execute_scripts(int type, _zval_struct * * retval, int file_count, ...) Line 1330 C php5.dll!php_execute_script(_zend_file_handle * primary_file) Line 2584 C ------------------------------------------------------------------------ [2014-02-26 15:59:30] e6nian at gmail dot com I have the same problem ,composer won't work with --optimize ± |master ✗| → composer dump-autoload --optimize -vvv --ansi --profile [3.2MB/0.01s] Reading ./composer.json [3.6MB/0.02s] Executing command (CWD): git describe --exact-match --tags [3.8MB/0.03s] Executing command (CWD): git branch --no-color --no-abbrev -v Generating optimized autoload files Segmentation fault: 11 ± |master ✗| → php --version PHP 5.6.0alpha2 (cli) (built: Feb 23 2014 22:49:29) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0-dev, Copyright (c) 1998-2014 Zend Technologies OS Darwin local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64 ------------------------------------------------------------------------ [2014-02-07 19:01:25] requinix@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Either ^ that, or file this as a bug with the composer folks instead. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=66660 -- Edit this bug report at https://bugs.php.net/bug.php?id=66660&edit=1

« previous php.bugs (#185196) next »