DynamoRIO / DynamoRIO/drmemory

app_suite test fails on 64-bit release build

Open
#1,903 0 comments 0 reactions 0 assignees View on GitHub
Bug-FalsePositive Component-Tests OpSys-Windows OpSys-x64
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

app_suite rel64 keeps failing on CDash

http://dynamorio.org/CDash/viewTest.php?onlyfailed&buildid=9240

```
CMake Error at runtest.cmake:496 (message):
stderr failed to match "~~Dr\.M~~ NO ERRORS FOUND:"

~~Dr.M~~ ERRORS FOUND:
~~Dr.M~~ 0 unique, 0 total unaddressable access(es)
~~Dr.M~~ 2 unique, 2 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~~ 1 unique, 1 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~~ 100 potential error(s) (suspected false positives)
~~Dr.M~~ (details: D:\derek\drmemory\nightly\run\build_drmemory-rel-64\logs\DrMemory-app_suite_tests.exe.4544.000\potential_errors.txt)
~~Dr.M~~ 14 potential leak(s) (suspected false positives)
~~Dr.M~~ (details: D:\derek\drmemory\nightly\run\build_drmemory-rel-64\logs\DrMemory-app_suite_tests.exe.4544.000\potential_errors.txt)
~~Dr.M~~ 0 user-suppressed, 4 default-suppressed error(s)
~~Dr.M~~ 2 user-suppressed, 3 default-suppressed leak(s)
~~Dr.M~~ 697 unique, 1553 total, 540340 byte(s) of still-reachable allocation(s)
~~Dr.M~~ (re-run with "-show_reachable" for details)
~~Dr.M~~ Details: D:\derek\drmemory\nightly\run\build_drmemory-rel-64\logs\DrMemory-app_suite_tests.exe.4544.000\results.txt
```

```
Error #1: INVALID HEAP ARGUMENT: allocated with operator new[], freed with operator delete
#0 replace_operator_delete_nothrow (0x00000000bfbf65e0 )
d:\derek\drmemory\nightly\src\common\alloc_replace.c:2974
#1 KERNELBASE.dll!CloseHandle (0x000007fefd0f1873 )
??:0
#2 KERNELBASE.dll!SetEvent (0x000007fefd0f133c )
??:0
#3 Concurrency::details::SchedulerBase::DetachExternalContext (0x000000013fa8fa02 )
f:\dd\vctools\crt_bld\self_64_amd64\crt\src\schedulerbase.cpp:1164
#4 std::endl (0x000000013f9f2cd1 )
c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream:1015
#5 Concurrency::details::SchedulerBase::Detach (0x000000013fa904c8 )
f:\dd\vctools\crt_bld\self_64_amd64\crt\src\schedulerbase.cpp:1088
#6 current_scheduler (0x000000013f9f29ed )
d:\derek\drmemory\nightly\src\tests\app_suite\concurrency_win.cpp:123
Note: memory was allocated here:
Note: # 0 replace_operator_new_array (0x00000000bfbf63c0 )
Note: d:\derek\drmemory\nightly\src\common\alloc_replace.c:2928
Note: # 1 Concurrency::details::SchedulerProxy::RemoveCore (0x000000013facd547 )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\schedulerproxy.cpp:889
Note: # 2 KERNELBASE.dll!SetThreadPriority (0x000007fefd1063ca )
??:0
Note: # 3 Concurrency::details::LoadLibraryAndCreateThread (0x000000013faac89a )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\utils.cpp:610
Note: # 4 Concurrency::details::ResourceManager::RestoreSchedulerResources (0x000000013faa49e2 )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\resourcemanager.cpp:2523
Note: # 5 KERNELBASE.dll!CreateSemaphoreExW (0x000007fefd0f6995 )
??:0
Note: # 6 Concurrency::details::ResourceManager::CreateDynamicRMWorker (0x000000013faa5a69 )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\resourcemanager.cpp:474
Note: # 7 Concurrency::details::SchedulerBase::Initialize (0x000000013fa8eafd )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\schedulerbase.cpp:429
Note: # 8 Concurrency::details::SchedulerBase::CreateWithoutInitializing (0x000000013fa90b89 )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\schedulerbase.cpp:239
Note: # 9 Concurrency::details::SchedulerBase::Create (0x000000013fa90e82 )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\schedulerbase.cpp:220
Note: #10 Concurrency::CurrentScheduler::Create (0x000000013fa8aced )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\currentscheduler.cpp:71
Note: #11 current_scheduler (0x000000013f9f2997 )
Note: d:\derek\drmemory\nightly\src\tests\app_suite\concurrency_win.cpp:110

Error #2: INVALID HEAP ARGUMENT: allocated with operator new[], freed with operator delete
#0 replace_operator_delete_nothrow (0x00000000bfbf65e0 )
d:\derek\drmemory\nightly\src\common\alloc_replace.c:2974
#1 KERNELBASE.dll!CloseHandle (0x000007fefd0f1873 )
??:0
#2 KERNEL32.dll!BaseThreadInitThunk (0x00000000770659cd )
??:0
Note: @0:00:01.201 in thread 6464
Note: memory was allocated here:
Note: # 0 replace_operator_new_array (0x00000000bfbf63c0 )
Note: d:\derek\drmemory\nightly\src\common\alloc_replace.c:2928
Note: # 1 Concurrency::details::SchedulerProxy::RemoveCore (0x000000013facd547 )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\schedulerproxy.cpp:889
Note: # 2 Concurrency::details::SchedulerProxy::GrantAllocation (0x000000013facdba7 )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\schedulerproxy.cpp:652
Note: # 3 Concurrency::details::ResourceManager::RestoreSchedulerResources (0x000000013faa49e2 )
Note: f:\dd\vctools\crt_bld\self_64_amd64\crt\src\resourcemanager.cpp:2523
Note: # 4 KERNELBASE.dll!CreateSemaphoreExW (0x000007fefd0f6995 )
??:0
Note: # 5 KERNEL32.dll!BaseThreadInitThunk (0x00000000770659cd )
??:0

Error #3: WARNING: heap allocation failed
#0 replace_calloc (0x00000000bfbf5540 )
d:\derek\drmemory\nightly\src\common\alloc_replace.c:2616
#1 testing::internal::String::ConstructNonNull (0x000000013fa01e76 )
d:\derek\drmemory\nightly\src\third_party\googletest\include\gtest\internal\gtest-string.h:304
#2 testing::internal::String::operator= (0x000000013fa68039 )
d:\derek\drmemory\nightly\src\third_party\googletest\include\gtest\internal\gtest-string.h:290
#3 testing::internal::GTestFlagSaver::GTestFlagSaver (0x000000013fa68c64 )
d:\derek\drmemory\nightly\src\third_party\googletest\src\gtest-internal-inl.h:169
#4 std::basic_string<>::c_str (0x000000013f9f8133 )
c:\program files (x86)\microsoft visual studio 10.0\vc\include\xstring:1496
#5 MallocTests_CallocOverflow_Test::TestBody (0x000000013fa196bc )
d:\derek\drmemory\nightly\src\tests\app_suite\malloc_tests.cpp:67
```

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.