Failed to take over all threads after multiple attempts on VC++ 32-bit console app only

71 views
Skip to first unread message

David Lowndes

unread,
Aug 26, 2022, 1:27:49 AM8/26/22
to Dr. Memory Users
Hi,

I'm trying out Dr Memory for the first time, but am hitting a " Failed to take over all threads after multiple attempts" problem:
  1. Open Visual Studio 2019
  2. Create a new project > C++ Console App
  3. Leave everything as default
  4. Build Release | x64
  5. Build Release | x86
When I run drmemory on the x64 app it seems fine, no errors. When I run the x86 app I get "Failed to take over all threads after multiple attempts".

It doesn't make a difference if I use bin\drmemory.exe or bin64\drmemory.exe

Console log below:

PS C:\Users\<redacted>\source\repos\memtests> drmemory -batch -- .\CPPDefaultConsoleApplication\x64\Release\CPPDefaultConsoleApplication.exe
~~Dr.M~~ Dr. Memory version 2.5.0
~~Dr.M~~ Running ".\CPPDefaultConsoleApplication\x64\Release\CPPDefaultConsoleApplication.exe"
~~Dr.M~~ Using system call file C:\Users\<redacted>\AppData\Roaming\Dr. Memory\symcache\syscalls_x64.txt
Hello World!
~~Dr.M~~
~~Dr.M~~ NO ERRORS FOUND:
~~Dr.M~~ 0 unique, 0 total unaddressable access(es)
~~Dr.M~~ 0 unique, 0 total uninitialized access(es)
~~Dr.M~~ 0 unique, 0 total invalid heap argument(s)
~~Dr.M~~ 0 unique, 0 total GDI usage error(s)
~~Dr.M~~ 0 unique, 0 total handle leak(s)
~~Dr.M~~ 0 unique, 0 total warning(s)
~~Dr.M~~ 0 unique, 0 total, 0 byte(s) of leak(s)
~~Dr.M~~ 0 unique, 0 total, 0 byte(s) of possible leak(s)
~~Dr.M~~ ERRORS IGNORED:
~~Dr.M~~ 1 potential error(s) (suspected false positives)
~~Dr.M~~ (details: C:\Users\<redacted>\AppData\Roaming\Dr. Memory\DrMemory-CPPDefaultConsoleApplication.exe.24244.000\potential_errors.txt)
~~Dr.M~~ 6 unique, 6 total, 5778 byte(s) of still-reachable allocation(s)
~~Dr.M~~ (re-run with "-show_reachable" for details)
~~Dr.M~~ Details: C:\Users\<redacted>\AppData\Roaming\Dr. Memory\DrMemory-CPPDefaultConsoleApplication.exe.24244.000\results.txt
PS C:\Users\<redacted>\source\repos\memtests> drmemory -batch -- .\CPPDefaultConsoleApplication\Release\CPPDefaultConsoleApplication.exe
~~Dr.M~~ Dr. Memory version 2.5.0
~~Dr.M~~ Running ".\CPPDefaultConsoleApplication\Release\CPPDefaultConsoleApplication.exe"
~~Dr.M~~ Using system call file C:\Users\<redacted>\AppData\Roaming\Dr. Memory\symcache\syscalls_wow64.txt
<Application C:\Users\<redacted>\source\repos\memtests\CPPDefaultConsoleApplication\Release\CPPDefaultConsoleApplication.exe (3664). Failed to take over all threads after multiple attempts.>
~~Dr.M~~ WARNING: application exited with abnormal code 0x28
PS C:\Users\<redacted>\source\repos\memtests>



Reply all
Reply to author
Forward
0 new messages