PHP :: Bug #70652 :: Invalid memory access

Bug #70652 Invalid memory access - Unable to reattach to base address
Submitted: 2015-10-06 15:15 UTC Modified: 2015-10-09 10:26 UTC
From: maly at myq dot cz Assigned: ab (profile)
Status: Closed Package: opcache
PHP Version: 5.6.14 OS: Windows 10
Private report: No CVE-ID: None

 [2015-10-06 15:15 UTC] maly at myq dot cz

Description:
------------
The opcache accesses to invalid address. PHP is running via Apache using mod_fcgid. Php.ini does not contain any plugins (except opcache). 

Eventlog message:

The description for Event ID 487 from source Zend OPcache cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

Unable to reattach to base address
Pokus o přístup k nepřípustné adrese. (translation: A try to access to invalid address)

I have run the attached test script using utility ab.exe:

ab.exe -n 50 -c 3 http://myip/attachedscript.php

This bug is observed in versions 5.6.11-14. Version 5.6.10 seems to work correctly.










Test script:
---------------
<?php
$sec = 3;
echo "waiting $sec s...";

for($i=0; $i < $sec; ++$i) {
	sleep(1);
}

echo "end<br>";
echo "The script has waited for $sec sec";




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2015-10-07 13:23 UTC] ab@php.net

-Status: Open +Status: Feedback

 [2015-10-08 08:17 UTC] maly at myq dot cz

-Status: Feedback +Status: Open

 [2015-10-08 08:17 UTC] maly at myq dot cz

I have tried to reproduce this bug in snapshot r07a8e5c (I am unable to download later snapshot) and the bug persists. 

Additional info:
I use non-threadsafe version of PHP (as expected with using mod_fcgid plugin).

 [2015-10-08 08:30 UTC] ab@php.net

-Status: Open +Status: Feedback

 [2015-10-08 08:37 UTC] maly at myq dot cz

-Status: Feedback +Status: Open

 [2015-10-08 08:37 UTC] maly at myq dot cz

I have tried to download php-5.6-nts-windows-vc11-x86-r052dd30.zip and it seems  that the file is corrupted (the size is only 48 kb).

 [2015-10-08 09:34 UTC] ab@php.net

-Status: Open +Status: Feedback

 [2015-10-08 10:53 UTC] maly at myq dot cz

-Status: Feedback +Status: Open

 [2015-10-08 10:53 UTC] maly at myq dot cz

It seems that issue has disappeared. Now, my tests passed successfully :-).

 [2015-10-09 10:26 UTC] ab@php.net

-Status: Open +Status: Closed -Assigned To: +Assigned To: ab

 [2015-10-09 10:26 UTC] ab@php.net

@maly thanks for checking! There was a Win10 compatibility fix last week that gives an improvement. It will most likely appear in the next RC, but also next auto snaps (if not broken :)). So i'm closing this now.

Thanks