Bug #66660 [Fbk->Csd]: Composer.phar install/update fails
| From: | tyrael@php.net | Date: | Sun, 13 Apr 2014 08:43:23 +0000 |
| Subject: | Bug #66660 [Fbk->Csd]: Composer.phar install/update fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185208@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: Feedback
+Status: Closed
Type: Bug
Package: Reproducible crash
PHP Version: 5.6.0-dev
Assigned To: tyrael
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of tyrael
Revision: http://git.php.net/?p=php-src.git;a=commit;h=20036525e2b5ee7613a6d3ead0270631b23f6a15
Log: Fix bug #66660: use str_efree instead of efree to handle interned empty strings correctly
Previous Comments:
------------------------------------------------------------------------
[2014-04-13 08:18:00] krakjoe@php.net
yes, str_efree is correct solution ... do that ...
------------------------------------------------------------------------
[2014-04-13 02:49:41] tyrael@php.net
replacing efree with STR_FREE seems to resolve the issue, so my hunch is that it is related to the
new "empty strings are now interned" feature mentioned in UPGRADING.INTERNALS.
------------------------------------------------------------------------
[2014-04-13 02:32:37] tyrael@php.net
nope, I was too hasty (time to get some sleep), the reproduction script doesn't but reports
this in debug mode:
/Users/tyrael/checkouts/php-src.git/Zend/zend_highlight.c(214) : Block 0x10a615048 status:
Invalid pointer: ((size=0x0002b5a5) != (next.prev=0x00000001))
Invalid pointer: ((prev=0x00000001) != (prev.size=0x0002b5a5))
I guess this is what krakjoe also meant when saying he couldn't make it to segfault.
------------------------------------------------------------------------
[2014-04-13 02:10:31] tyrael@php.net
ops, I forgot to remove --enable-maintainer-zts from my configure line, without that I'm able
to reproduce the crash even with the simple oneliner from the other report:
# cat test.php
<?php __CLASS__ ?>
# php -r 'php_strip_whitespace(getcwd()."/test.php");'
------------------------------------------------------------------------
[2014-04-13 01:58:59] tyrael@php.net
there were a bugreport at the composer guys also:
https://github.com/composer/composer/issues/2774
I can't reproduce that too on my mac, will try with Ubuntu 13.10 as in that bugreport.
------------------------------------------------------------------------
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