Edit report at https://bugs.php.net/bug.php?id=55070&edit=1
ID: 55070 Updated by: fel...@php.net Reported by: ricardo dot nuno dot rodrigues at hotmail dot com Summary: SHMOP not working / crash -Status: Open +Status: Feedback Type: Bug Package: Semaphore related Operating System: Windows 7 64bit PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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