DynamoRIO / DynamoRIO/drmemory

CRASH program using std::thread in VS2017

Open
#2,162 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.