Good to know that the previous crash is resolved.
I'm not familiar with MiniDumpWriteDump. I understand from its documentation (
https://learn.microsoft.com/en-us/windows/win32/api/minidumpapiset/nf-minidumpapiset-minidumpwritedump) that it writes a user-mode dump. Since DynamoRIO also operates in the user-mode, the dump would certainly be polluted with instrumentation artifacts. But I'm not sure how you intend to use the dump, so it's possible it may still be useful to your use-case.
Re the crash:
- Maybe it'll be useful to first ensure that MiniDumpWriteDump works as expected when compiled in source code, without DynamoRIO. I read that in-process use of MiniDumpWriteDump can be tricky.
- When run under DynamoRIO, MiniDumpWriteDump would also be instrumented, so there can potentially be some unhandled interactions. Do you have a stack trace from the MiniDumpWriteDump crash?
Maybe +Derek would have more useful suggestions.
Abhinav