Hello,
Again, I'd like to thank you for the tool first.
I wrote a simple console application called HelloWorld, with no parameters. It started as a stock C# Console Application project in Visual Studio 2015, to which I added the line "Console.Out.WriteLine("Hello World!");" and deleted all imports except "using System;". I compiled it into a x64 Release binary for .NET 4.6.2. I ran the binary from the Developer Command Prompt for VS2015 on Windows 10, which ran fine and exited with no errors. I then ran it from the Command Prompt on Windows Server 2012 R2, which also ran fine and exited with no errors.
Working on the Windows Server machine, I tried to run HelloWorld with drrun.exe. I tried both 6.2.0-2 and 7.0.0-RC1, with no noticeable difference during runtime. It appears not to run, but when I open the Task Manager, I can see the "HelloWorld" process under "Background Processes" briefly, then the "HelloWorld" process disappears from Task Manager and a dialog box displaying "HelloWorld has stopped working" appears, declaring an APPCRASH event. I've attached a screenshot of the expanded problem details.
[Dialog Box Screenshot attached]
The Task Manager and dialog box events happen when I run drrun.exe with "-debug" and "-verbose" as well, but the console gives some more information regarding the error. I've attached a screenshot of the console output.
[Command Prompt Screenshot attached]
This led me to line 1422 of dynamorio_package\core\heap.c, which includes the check "IF_WINDOWS(doing_detach ||)" along with some code about heap memory management. It's a different line number in the repo's master branch online (
https://github.com/DynamoRIO/dynamorio/blob/master/core/heap.c#L1403), but the comments give me the impression that there may be something going on there. I'm not familiar with how DynamoRIO handles the detaching process and heap memory; is there some flag or setting I need to run drrun.exe with?
Final note: The same thing happened for a console application with parameters that loaded a library (same build parameters--x64 Release, .NET 4.6.2), so I am using HelloWorld right now to help figure out the problem.
Thank you for your help!
Best,
Flora

