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

 ID:                 55070
 User updated by:    ricardo dot nuno dot rodrigues at hotmail dot com
 Reported by:        ricardo dot nuno dot rodrigues at hotmail dot com
 Summary:            SHMOP not working  / crash
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            Semaphore related
 Operating System:   Windows 7 64bit
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

I tried on CLI mode and have the following error (in attach complete):

Function         Arg 1   Arg 2   Arg 3   Source
msvcr90!memcpy+158      02ed3cd8        00000000        00000004        
php_shmop!get_module+37f        00000003        02ed38f8        00000000        
php5ts!execute_internal+3a      02f00080        00000001        02eb1bc0        
php_xdebug_2_1_1_5_3_vc9!get_module+20bc        02f00080        00000001        
00000000        
php5ts!execute+1122     02f00080        02eb1b00        02eb1bc0        
php5ts!execute+583a     02ed3600        038c2ef0        00000000        
php5ts!execute+2e8      00000000        00000000        00000000        


More:

Analysis Summary
        
Type    Description     Recommendation
  Error In php__PID__10980__Date__06_14_2011__Time_10_59_20PM__98__First chance 
exception 0XC0000005.dmp the assembly instruction at msvcr90!memcpy+158 in 
C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50
9463cabcb6ef2a\msvcr90.dll from Microsoft Corporation has caused an access 
violation exception (0xC0000005) when trying to read from memory location 
0x00000000 on thread 0
Please follow up with the vendor Microsoft Corporation for 
C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50
9463cabcb6ef2a\msvcr90.dll
  Error In 
php__PID__10276__Date__06_14_2011__Time_10_57_54PM__835__Second_Chance_Exception
_C0000005.dmp the assembly instruction at msvcr90!memcpy+158 in 
C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50
9463cabcb6ef2a\msvcr90.dll from Microsoft Corporation has caused an access 
violation exception (0xC0000005) when trying to read from memory location 
0x00000000 on thread 0
Please follow up with the vendor Microsoft Corporation for 
C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50
9463cabcb6ef2a\msvcr90.dll
  Error In 
php__PID__10980__Date__06_14_2011__Time_10_59_25PM__862__Second_Chance_Exception
_C0000005.dmp the assembly instruction at msvcr90!memcpy+158 in 
C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50
9463cabcb6ef2a\msvcr90.dll from Microsoft Corporation has caused an access 
violation exception (0xC0000005) when trying to read from memory location 
0x00000000 on thread 0
Please follow up with the vendor Microsoft Corporation for 
C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50
9463cabcb6ef2a\msvcr90.dll
  Error In php__PID__10276__Date__06_14_2011__Time_10_57_48PM__990__First 
chance 
exception 0XC0000005.dmp the assembly instruction at msvcr90!memcpy+158 in 
C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50
9463cabcb6ef2a\msvcr90.dll from Microsoft Corporation has caused an access 
violation exception (0xC0000005) when trying to read from memory location 
0x00000000 on thread 0
Please follow up with the vendor Microsoft Corporation for 
C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50
9463cabcb6ef2a\msvcr90.dll
  Information   DebugDiag determined that this dump file 
(php__PID__10980__Date__06_14_2011__Time_10_59_25PM__862__Second_Chance_Exceptio
n_C0000005.dmp) is a crash dump and did not perform any hang analysis. If you 
wish to enable combined crash and hang analysis for crash dumps, edit the 
CrashHangAnalysis.asp script (located in the DebugDiag\Scripts folder) and set 
the g_DoCombinedAnalysis constant to True.


Previous Comments:
------------------------------------------------------------------------
[2011-06-29 18:42:28] fel...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------
[2011-06-29 16:52:56] ricardo dot nuno dot rodrigues at hotmail dot com

Description:
------------
If I make such a intensive read of something saved by shmop, the apache will 
crash.

If it was intensive write, the crash is sooner.

This only happens in Win32 (not in Linux)

Test script:
---------------
<?php

$key = 1;
$value = 1000;
$nbr_of_read_tests = 100000;

$shm_id = shmop_open( $key, "c", 0644, strlen($value));
shmop_write ( $shm_id , $value , 0);
shmop_close($shm_id);

for ($i = 1; $i <= $nbr_of_read_tests; $i++) {
 $shm_id = shmop_open($key, "a", 0, 0);
 shm_size = shmop_size($shm_id);
 $returnedValue = shmop_read ( $shm_id , 0 , $shm_size );
 shmop_close($shm_id);
}
shmop_delete($shm_id);
shmop_close($shm_id);
?>

Expected result:
----------------
work without any problem.

In Linux it works.

Actual result:
--------------
Crash of Apache


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



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

Reply via email to