DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.62k stars 554 forks source link

ASSERT (drsyms test failure on xp64) #583

Open derekbruening opened 9 years ago

derekbruening commented 9 years ago

From bruen...@google.com on October 12, 2011 15:54:04

this new test fails on both 32-bit and 64-bit on the xp64 VM that I use for all my DR testing

91/98 Testing: code_api|client.drsyms-test 91/98 Test: code_api|client.drsyms-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.drsyms-test.dll.dll;0;' -stack_size 36K -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.drsyms-test.exe" "F:/derek/build_suite/build_debug-internal-32/suite/tests/bin/libclient.drsyms-test.appdll.so" Directory: F:/derek/build_suite/build_debug-internal-32/suite/tests "code_api|client.drsyms-test" start time: Oct 12 15:05 Eastern Daylight Time Output:

ASSERT FAILURE: e:\derek\dr\git\src\suite\tests\client-interface\drsyms-test.dll.cpp:198: r == DRSYM_SUCCESS && exe_export_offs != 0 ()

Test time = 0.63 sec ---------------------------------------------------------- Test Fail Reason: Required regular expression not found.Regex=[^stack trace:^M? drsyms-test.appdll.cpp:44!dll_static^M? drsyms-test.appdll.cpp:50!dll_export^M? drsyms-test.cpp:55!.anonymous namespace.::Foo::Bar^M? drsyms-test.cpp:63!exe_export^M? drsyms-test.cpp:68!exe_static^M? drsyms-test.cpp:98!main^M? app num_calls: 5^M? all done^M? $ ] "code_api|client.drsyms-test" end time: Oct 12 15:05 Eastern Daylight Time "code_api|client.drsyms-test" time elapsed: 00:00:00 _Original issue: http://code.google.com/p/dynamorio/issues/detail?id=583_
derekbruening commented 9 years ago

From rnk@google.com on October 12, 2011 13:00:35

My theory is that this dbghelp.dll is not able to find exe_export. I have seen reports on the Pin mailing list that certain versions have trouble seeing exports: http://tech.groups.yahoo.com/group/pinheads/message/5703 It may be that the best we can do is do a version check in the test and if it's an affected version disable the queries of exported functions.