DynamoRIO / drmemory

Memory Debugger for Windows, Linux, Mac, and Android
Other
2.45k stars 263 forks source link

perturb hits lock->lock_requests == LOCK_FREE_STATE assertion on Windows #715

Open derekbruening opened 10 years ago

derekbruening commented 10 years ago

From rnk@google.com on December 08, 2011 16:59:32

Example build: http://build.chromium.org/p/client.drmemory/builders/win-7_x64-drm/builds/1772/ Assertion failure: 21: <Application 21: E:\b\build\slave\win_7_x64_drm_checkout\build\build_drmemory-dbg-32\tests\winthreads.exe 21: (4080). Internal Error Internal DynamoRIO Error: 21: ........\drmemory\dynamorio\core\utils.c:916 lock->lock_requests == 21: LOCK_FREE_STATE 21: 21: (Error occurred @3921 frags) 21: 21: version 3.0.1191, custom build 21: 21: -client_lib 21: 'E:\b\build\slave\win_7_x64_drm_checkout\build\build_drmemory-dbg-32/bin/debug/drmemorylib.dll;0;-callstack_style 21: 0x27 -no_results_to_stderr -perturb_only -logdir `E:\b\bui 21: 21: 0x21c3e808 0x6e5b1b4b 21: 21: 0x21c3e940 0x6e5b3b07 21: 21: 0x21c3e970 0x6e5324a7 21: 21: 0x21c3e988 0x6e532788 21: 21: 0x21c3e9a0 0x6e5326ad 21: 21: 0x21c3e9a8 0x6e4d113c 21: 21: 0x21c3e9b8 0x21bd8740 21: 21: 0x6e702f8e 0x8b5e5f01>

On Cygwin we get something a little different: 21: CMake Error at runtest.cmake:408 (message): 21: stderr failed to match "Starting", found "Starting" instead 21: 21: stderr: 21: 21: operable program or batch file. 21: 21: <Starting application 21: E:\b\build\slave\win_7_x64_drm_checkout\build\build_drmemory-cyg-dbg-32\tests\winthreads.exe 21: (1172)> 21: 21: <DYNAMORIO_CACHE_ROOT not set!> 21: 21: <Initial options = -client_lib 21: 'E:\b\build\slave\win_7_x64_drm_checkout\build\build_drmemory-cyg-dbg-32\bin\bin32\debug\drmemory.dll;0;-logdir 21: E:/b/build/slave/win_7_x64_drm_checkout/build/build_drmemory-cyg-dbg-32/logs 21: -perturb_only -callstack_style 0x27 -libc_addrs 21: ??,?,?,?,?,?,?,?,?,?,?,?,?,' -code_api -probe_api -msgbox_mask 0 21: -dumpcore_mask 0x87fd -stderr_mask 15 -stack_size 56K -disable_traces 21: -no_enable_traces -max_elide_jmp 0 -max_elide_call 0 -max_bb_instrs 256 21: -no_shared_traces -bb_ibl_targets -bb_single_restore_prefix 21: -no_shared_trace_ibl_routine -no_inline_ignored_syscalls 21: -native_exec_default_list '' -no_native_exec_managed_code 21: -no_indcall2direct -no_aslr_dr -pad_jmps_mark_no_trace > 21: 21: 21: 21: Dr.M To obtain results, run with: -results 21: E:/b/build/slave/win_7_x64_drm_checkout/build/build_drmemory-cyg-dbg-32/logs/DrMemory-winthreads.exe.1172.000 21: 21: 21: <Stopping application 21: E:\b\build\slave\win_7_x64_drm_checkout\build\build_drmemory-cyg-dbg-32\tests\winthreads.exe 21: (1172)> 21: 21: <syscall_while_native: using NtFreeVirtualMemory - maybe hooked?> 21: 21: 21:

Original issue: http://code.google.com/p/drmemory/issues/detail?id=715

derekbruening commented 10 years ago

From bruen...@google.com on May 22, 2013 09:19:05

xref https://code.google.com/p/dynamorio/issues/detail?id=1166