Bug #55070 [Opn-Fbk]: SHMOP not working / crash
Edit report at https://bugs.php.net/bug.php?id=55070edit=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: Try disabling xcache. Previous Comments: [2012-05-04 23:04:39] ricardo dot nuno dot rodrigues at hotmail dot com with xdedug and PHP 5.4.1 VC9 - Thread 0 - System ID 2204 Entry point httpd+2155 Create time 04-05-2012 23:57:08 Time spent in user mode 0 Days 0:0:1.123 Time spent in kernel mode 0 Days 0:0:0.280 Function Arg 1 Arg 2 Arg 3 Source ntdll!NtClose+12 0005 0005 000cfe20 KERNELBASE!CloseHandle+2d 0005 025eaa10 025e2098 kernel32!CloseHandleImplementation+3f 0005 0002 048a0020 php_xcache+277f 025eaa10 01ea3368 01b269b0 php_xcache+16b95 025e2098 01530500 php_xcache+16dda 01b269b0 6ec53b4e 609aac01 php5ts!zend_hash_graceful_reverse_destroy+d 00bff858 00405370 0001 httpd+1c9d 0003 00901b20 00901d88 httpd+2034 7efde000 000cffd4 76ef9ef2 kernel32!BaseThreadInitThunk+e 7efde000 7e7f92b1 ntdll!__RtlUserThreadStart+70 00402155 7efde000 ntdll!_RtlUserThreadStart+1b 00402155 7efde000 In httpd__PID__3236__Date__05_04_2012__Time_11_58_55PM__105__Second_Chance_Exceptio n_C008.dmp the assembly instruction at 0x76d312f7 which does not correspond to any known native module in the process has caused an unknown exception (0xc008) on thread 0 Report for httpd__PID__2292__Date__05_04_2012__Time_11_58_44PM__616__Second_Chance_Exceptio n_C005.dmp Report for httpd__PID__2292__Date__05_04_2012__Time_11_58_44PM__616__Second_Chance_Exceptio n_C005.dmp Type of Analysis Performed Crash Analysis Machine Name QUAD Operating System Unexpected Service Pack 1 Number Of Processors 4 Process ID 2292 Process Image C:\AppServ\Apache2.2\bin\httpd.exe System Up-Time 1 day(s) 15:55:15 Process Up-Time 00:01:34 Thread 5 - System ID 6928 Entry point msvcr100!_endthreadex+6a Create time 04-05-2012 23:57:12 Time spent in user mode 0 Days 0:0:0.15 Time spent in kernel mode 0 Days 0:0:0.62 Function Arg 1 Arg 2 Arg 3 Source msvcr90!memcpy+158 3d57ffb8 0004 php_shmop_rsr!get_module+37f 2c709508 3d5620d0 2c709508 php5ts!zval_add_ref+17b5 0e8efe10 0e8efb64 php5ts!execute+1fd 3d57f458 2c709501 2c709508 php5ts!zend_execute_scripts+119 0650 0401 0e8efb80 user32!PostThreadMessageA+e1 0e8eff6c 56433230 php5ts!php_execute_script+a7 php5ts!zend_hash_quick_add_or_update+66 764d1194 026c KERNELBASE!WaitForSingleObjectEx+cb 0020 609dc7f4 609f2cc6 php5ts!xmlGetGlobalState+11 00a68968 01755700 libhttpd!ap_regexec+d6 00959690 0174cb47 0e8efe30 mod_rewrite+6387 0174b538 0174b538 libhttpd!ap_run_handler+25 0174b538 0174b538 0174b538 libhttpd!ap_invoke_handler+a2 017136e0 0e8efefc libhttpd!ap_die+26e 0174b538 00984918 libhttpd!ap_psignature+15b2 017136e0 0001 017136e0 libhttpd!ap_run_process_connection+25 017136e0 009e9f80 0e8eff44 libhttpd!ap_process_connection+33 017136e0 01713568 libhttpd!ap_regkey_value_remove+fe7 017136d8 6559efcc msvcr100!_endthreadex+3f 0e8eff94 764d339a msvcr100!_endthreadex+ce 01660488 0e8effd4 76ef9ef2 kernel32!BaseThreadInitThunk+e 01660488 70fd886c ntdll!__RtlUserThreadStart+70 730bc59c 01660488 ntdll!_RtlUserThreadStart+1b 730bc59c 01660488 MSVCR90!MEMCPY+158In httpd__PID__2292__Date__05_04_2012__Time_11_58_44PM__616__Second_Chance_Exceptio n_C005.dmp the assembly instruction at msvcr90!memcpy+158 in C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50 934f2ebcb7eb57\msvcr90.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x on thread 5
Bug #55070 [Opn-Fbk]: SHMOP not working / crash
Edit report at https://bugs.php.net/bug.php?id=55070edit=1 ID: 55070 Updated by: ka...@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: Can you try to disable xdebug and re-generate the backtrace if it still happens? Previous Comments: [2011-06-29 19:15:04] ricardo dot nuno dot rodrigues at hotmail dot com I tried on CLI mode and have the following error (in attach complete): Function Arg 1 Arg 2 Arg 3 Source msvcr90!memcpy+158 02ed3cd80004 php_shmop!get_module+37f000302ed38f8 php5ts!execute_internal+3a 02f00080000102eb1bc0 php_xdebug_2_1_1_5_3_vc9!get_module+20bc02f000800001 php5ts!execute+1122 02f0008002eb1b0002eb1bc0 php5ts!execute+583a 02ed3600038c2ef0 php5ts!execute+2e8 More: Analysis Summary TypeDescription Recommendation Error In php__PID__10980__Date__06_14_2011__Time_10_59_20PM__98__First chance exception 0XC005.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 (0xC005) when trying to read from memory location 0x 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 _C005.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 (0xC005) when trying to read from memory location 0x 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 _C005.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 (0xC005) when trying to read from memory location 0x 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 0XC005.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 (0xC005) when trying to read from memory location 0x 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_C005.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. [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
Bug #55070 [Opn-Fbk]: SHMOP not working / crash
Edit report at https://bugs.php.net/bug.php?id=55070edit=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 = 10; $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=55070edit=1