DynamoRIO / DynamoRIO/drmemory
CRASH program using std::thread in VS2017
Open
Bug-ToolCrash
Status-CannotReproduce
Status-NeedInfo
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
Pasting from https://groups.google.com/forum/#!topic/DrMemory-Users/LvRt6mX1xGM
Here is the code:
```
#include
using namespace std;
int main(int argc, char const *argv[])
{
std::thread t(
[](){
volatile uint64_t a = 977;
a += 100;
});
t.join();
return 0;
}
```
Compiling it in debug mode as follows:
```
cl /EHsc /std:c++17 /MTd /Z7 drmemory_fail.cpp
```
makes Dr. Memory crash with this report:
```
~~Dr.M~~ WARNING: application exited with abnormal code 0xffffffff
```
Maybe VS2017specific.
If I compile it with /MDd instead, issue disappears.
Contributor guide
Assessment
This issue has not been assessed yet.