Bug #67865 [Asn]: internal corruption phar error

From: Date: Thu, 21 Aug 2014 06:58:38 +0000
Subject: Bug #67865 [Asn]: internal corruption phar error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187213@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67865&edit=1

 ID:                 67865
 User updated by:    pear at laurent-laville dot org
 Reported by:        pear at laurent-laville dot org
 Summary:            internal corruption phar error
 Status:             Assigned
 Type:               Bug
 Package:            PHAR related
 Operating System:   Windows
 PHP Version:        5.6.0RC4
 Assigned To:        mike
 Block user comment: N
 Private report:     N

 New Comment:

It seems that the issue was fixed on PHP 5.4.32

PHP 5.4.32 (cli) (built: Aug 21 2014 01:30:47)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

But NOT on PHP 5.5.16 

PHP 5.5.16 (cli) (built: Aug 20 2014 17:25:17)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies


I pick both versions from site  http://windows.php.net/download/

PHP 5.4.32  sha1: 6f50c17a01ab1aaed9580c6567af7495ef39e276
PHP 5.5.16  sha1: 1e92fcf6d7c2390861548638987a664ca87a809d


Previous Comments:
------------------------------------------------------------------------
[2014-08-20 17:26:00] mike@php.net

Fix is coming

------------------------------------------------------------------------
[2014-08-20 16:49:28] mike@php.net

Not sure how #67724 affects this, but +1 to revert if we do not find the cause now.

------------------------------------------------------------------------
[2014-08-20 15:33:29] tyrael@php.net

as the 5.4 and 5.5 releases should be released this week, I think reverting that commit would be the
better solution, as the bug which this commit fixes(https://bugs.php.net/bug.php?id=67724) seems to
be affecting less people.

------------------------------------------------------------------------
[2014-08-20 15:24:47] tyrael@php.net

reverting e4ff7f2ee346d641715694209e61704c9e815483 seems to fix the issue.
assigning Mike to the issue, as he is the author of that commit.

------------------------------------------------------------------------
[2014-08-20 12:21:05] jpauli@php.net

Here is a BT :

#0  phar_open_entry_fp (entry=0x7ffff7e18638, error=0x7fffffffad48, follow_links=1) at
/home/julien/workspace/php/ext/phar/util.c:779
#1  0x000000000061136b in phar_get_entry_data (ret=0x7fffffffad50, fname=0x1c1dd18
"/home/julien/Downloads/phing-2.8.2.phar", fname_len=39, path=0x1c27768
"classes/phing/tasks/ext/PatchTask.php", path_len=37, mode=0xc08224 "r",
allow_dir=0 '\000', error=0x7fffffffad48, security=0) at
/home/julien/workspace/php/ext/phar/util.c:482
#2  0x0000000000626d3c in phar_wrapper_open_url (wrapper=0xf53bc0, path=0x1c4ac98
"phar:///home/julien/Downloads/phing-2.8.2.phar/bin/../classes/phing/tasks/ext/PatchTask.php",
mode=0xc363e1 "rb", options=129, opened_path=0x7fffffffaf80, context=0x0,
__php_stream_call_depth=1, __zend_filename=0xc38b98
"/home/julien/workspace/php/main/streams/streams.c", __zend_lineno=2066,
__zend_orig_filename=0xc359f0 "/home/julien/workspace/php/main/main.c",
__zend_orig_lineno=1406) at /home/julien/workspace/php/ext/phar/stream.c:286
#3  0x00000000007830b2 in _php_stream_open_wrapper_ex (path=0x1c4ac98
"phar:///home/julien/Downloads/phing-2.8.2.phar/bin/../classes/phing/tasks/ext/PatchTask.php",
mode=0xc363e1 "rb", options=137, opened_path=0x7fffffffaf80, context=0x0,
__php_stream_call_depth=0, __zend_filename=0xc359f0
"/home/julien/workspace/php/main/main.c", __zend_lineno=1406, __zend_orig_filename=0x0,
__zend_orig_lineno=0) at /home/julien/workspace/php/main/streams/streams.c:2064
#4  0x0000000000761e07 in php_stream_open_for_zend_ex (filename=0x1c4ac98
"phar:///home/julien/Downloads/phing-2.8.2.phar/bin/../classes/phing/tasks/ext/PatchTask.php",
handle=0x7fffffffaf70, mode=137) at /home/julien/workspace/php/main/main.c:1406
#5  0x0000000000761da1 in php_stream_open_for_zend (filename=0x1c4ac98
"phar:///home/julien/Downloads/phing-2.8.2.phar/bin/../classes/phing/tasks/ext/PatchTask.php",
handle=0x7fffffffaf70) at /home/julien/workspace/php/main/main.c:1398
#6  0x00000000008181b6 in zend_stream_open (filename=0x1c4ac98
"phar:///home/julien/Downloads/phing-2.8.2.phar/bin/../classes/phing/tasks/ext/PatchTask.php",
handle=0x7fffffffaf70) at /home/julien/workspace/php/Zend/zend_stream.c:132
#7  0x000000000088db41 in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER (execute_data=0x7ffff7f9f3a0) at
/home/julien/workspace/php/Zend/zend_vm_execute.h:31281
#8  0x000000000083caad in execute_ex (execute_data=0x7ffff7f9f3a0) at
/home/julien/workspace/php/Zend/zend_vm_execute.h:363
#9  0x000000000083cb35 in zend_execute (op_array=0x7ffff7e06070) at
/home/julien/workspace/php/Zend/zend_vm_execute.h:388
#10 0x00000000007f92e6 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at
/home/julien/workspace/php/Zend/zend.c:1330
#11 0x00000000007643f2 in php_execute_script (primary_file=0x7fffffffe5b0) at
/home/julien/workspace/php/main/main.c:2584
#12 0x00000000008aa7ab in do_cli (argc=4, argv=0xf77780) at
/home/julien/workspace/php/sapi/cli/php_cli.c:994
#13 0x00000000008ab8e3 in main (argc=4, argv=0xf77780) at
/home/julien/workspace/php/sapi/cli/php_cli.c:1378

------------------------------------------------------------------------


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=67865


--
Edit this bug report at https://bugs.php.net/bug.php?id=67865&edit=1


Thread (12 messages)

« previous php.bugs (#187213) next »