DynamoRIO / DynamoRIO/dynamorio

ASSERT (drmgr-test) meta-instr faulted? must set translation field and handle fault!

Open
#1,369 26 comments 0 reactions 0 assignees View on GitHub
Bug-Assert Component-Tests Hotlist-ContinuousIntegration Migrated OpSys-Windows Priority-Medium
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on February 19, 2014 10:57:54_

This has happened at least twice in the last year or so when I've run the
test suite on win7 I can't reproduce it when run manually.

```
72/88 Testing: code_api|client.drmgr-test
72/88 Test: code_api|client.drmgr-test
Command: "D:/derek/dr/build_suite/build_debug-internal-64/bin64/drrun.exe" "-s" "60" "-quiet" "-exit0" "-ops" "-stderr_mask 0xC -msgbox_mask 0 -dumpcore_mask 0xfd -staged -code_api -client_lib 'D:/derek/dr/build_suite/build_debug-internal-64/suite/tests/bin/client.drmgr-test.dll.dll;0;' -code_api " "-use_dll" "D:/derek/dr/build_suite/build_debug-internal-64/lib64/debug/dynamorio.dll" "D:/derek/dr/build_suite/build_debug-internal-64/suite/tests/bin/client.drmgr-test.exe"
Directory: D:/derek/dr/build_suite/build_debug-internal-64/suite/tests
"code_api|client.drmgr-test" start time: Jul 11 15:26 Eastern Daylight Time
Output:
----------------------------------------------------------
About to create thread
in wnd_callback 0x0000000000000024 0
in wnd_callback 0x0000000000000081 0
in wnd_callback 0x0000000000000083 0
in wnd_callback 0x0000000000000001 0
in wnd_callback 0x0000000000008001 3 0
About to crash

Test time = 1.92 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found.Regex=[^About to create thread^M?
in wnd_callback 0x0_0000024 0^M?
in wnd_callback 0x0_0000081 0^M?
in wnd_callback 0x0_0000083 0^M?
in wnd_callback 0x0_0000001 0^M?
in wnd_callback 0x0_0008001 3 0^M?
About to crash^M?
Inside handler^M?
in wnd_callback 0x0_0008001 0 2^M?
Got message 0x0*0008001 1 3^M?
All done^M?
all done^M?
$
]
"code_api|client.drmgr-test" end time: Jul 11 15:26 Eastern Daylight Time
"code_api|client.drmgr-test" time elapsed: 00:00:01
```

It happened on 32-bit once too -- from my notes from long ago, apparently never filed:

```
86/93 Testing: code_api|client.drmgr-test
86/93 Test: code_api|client.drmgr-test
Command: "F:/derek/build_suite/build_debug-internal-32/bin32/drrun.exe" "-s" "60" "-quiet" "-exit0" "-ops" "-stderr_mask 0xC -msgbox_mask 0 -dumpcore_mask 0xfd -staged -code_api -client_lib 'F:/derek/build_suite/build_debug-internal-32/suite/tests/bin/client.drmgr-test.dll.dll;0;' -code_api " "-use_dll" "F:/derek/build_suite/build_debug-internal-32/lib32/debug/dynamorio.dll" "F:/derek/build_suite/build_debug-internal-32/suite/tests/bin/client.drmgr-test.exe"
Directory: F:/derek/build_suite/build_debug-internal-32/suite/tests
```

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

Contributor guide

Open the contributing guide

Research direction

Start with the failing code_api|client.drmgr-test on Windows 7 and inspect the assertion at src/core/x86/arch.c line 2924. Try the debug 32-bit and 64-bit test-suite runs, then use the expected output to verify that the fault is handled and the test completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems, testing-qa, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.