DynamoRIO / DynamoRIO/dynamorio

HANG (chrome.exe launched via AppInit)

Open
#586 0 comments 0 reactions 0 assignees View on GitHub
Bug-Hang Migrated OpSys-Windows Priority-High
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on October 18, 2011 15:41:48_

using AppInit and running ui_tests natively, chrome hangs very early due to a deadlock. not sure why options lock is still held:

---------------------------
DynamoRIO Notice: C:\src\chromium\src\build\Release\chrome.exe(1360)
---------------------------
rank order violation report_buf_lock(mutex)@....\src\core\utils.c:1943 acquired after options_lock(readwrite)@....\src\core\options.c:184 in tid:15f8
. 0 Id: 550.15f8 Suspend: 1 Teb: 7efdd000 Unfrozen
# ChildEBP RetAddr
00 1d623138 01e7fe0c ntdll!ZwRaiseHardError+0x12
01 1d623188 01e52e4d dynamorio!nt_messagebox+0xec [c:\src\dr\git\src\core\win32\ntdll.c @ 3294]
02 1d6231b0 01d14e76 dynamorio!debugbox+0x4d [c:\src\dr\git\src\core\win32\os.c @ 3436]
03 1d623730 01d1205f dynamorio!notify+0x1a6 [c:\src\dr\git\src\core\utils.c @ 1866]
04 1d623788 01d12950 dynamorio!deadlock_avoidance_lock+0x2bf [c:\src\dr\git\src\core\utils.c @ 602]
05 1d6237a0 01d12844 dynamorio!mutex_trylock+0x40 [c:\src\dr\git\src\core\utils.c @ 882]
06 1d6237b4 01d14f12 dynamorio!mutex_lock+0x34 [c:\src\dr\git\src\core\utils.c @ 824]
07 1d623810 01d10cbb dynamorio!report_dynamorio_problem+0x42 [c:\src\dr\git\src\core\utils.c @ 2012]
08 1d623948 01d11c8a dynamorio!internal_error+0x11b [c:\src\dr\git\src\core\utils.c @ 192]
09 1d62397c 01d129e0 dynamorio!deadlock_avoidance_unlock+0x24a [c:\src\dr\git\src\core\utils.c @ 681]
0a 1d623990 01d13845 dynamorio!mutex_unlock+0x60 [c:\src\dr\git\src\core\utils.c @ 896]
0b 1d6239a0 01d9b1cc dynamorio!write_unlock+0x65 [c:\src\dr\git\src\core\utils.c @ 1261]
0c 1d6239bc 01d9c357 dynamorio!check_thread_vm_area_cleanup+0x6c [c:\src\dr\git\src\core\vmareas.c @ 6884]
0d 1d623b74 01e054cc dynamorio!check_thread_vm_area+0x1017 [c:\src\dr\git\src\core\vmareas.c @ 7336]
0e 1d623ba4 01e01540 dynamorio!check_new_page_start+0x5c [c:\src\dr\git\src\core\x86\interp.c @ 602]
0f 1d623dfc 01e0e7e8 dynamorio!build_bb_ilist+0x450 [c:\src\dr\git\src\core\x86\interp.c @ 2726]
10 1d623f40 01cfb4c3 dynamorio!build_basic_block_fragment+0x2e8 [c:\src\dr\git\src\core\x86\interp.c @ 4209]
11 1d623ff4 1d5d2077 dynamorio!dispatch+0x7d3 [c:\src\dr\git\src\core\dispatch.c @ 189]
0:000> dt options_lock
+0x000 lock : _mutex_t
+0x048 num_readers : 0
+0x04c writer : 0x15f8
+0x050 num_pending_readers : 0
+0x054 writer_waiting_readers : (null)
+0x058 readers_waiting_writer : (null)
0:000> ~
. 0 Id: 550.15f8 Suspend: 1 Teb: 7efdd000 Unfrozen
1 Id: 550.12a8 Suspend: 1 Teb: 7efda000 Unfrozen

_Original issue: http://code.google.com/p/dynamorio/issues/detail?id=586_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.