DynamoRIO / DynamoRIO/drmemory
noreplace_realloc fails on Win 7 x64
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
_From [mxm...@gmail.com](https://code.google.com/u/101248221827060668005/) on June 25, 2014 11:24:11_
noreplace_realloc faile during pre-commit testing with next error:
32/87 Testing: noreplace_realloc
32/87 Test: noreplace_realloc
Command: "C:/Program Files (x86)/CMake 2.8/bin/cmake.exe" "-D" "cmd:STRING=.././bin/drmemory.exe@-debug@-dr_debug@-dr@{DRMEMORY_CTEST_DR_DIR}/..@-batch@-dr_ops@-dumpcore_mask@@0x87fd@@-stderr_mask@@15@@-msgbox_mask@@0@-callstack_style@0x27@-no_results_to_stderr@-no_replace_realloc@--@./malloc.exe" "-D" "TOOL_DR_HEAPSTAT:BOOL=OFF" "-D" "outpat:STRING={DRMEMORY_CTEST_SRC_DIR}/malloc.out" "-D" "respat:STRING={DRMEMORY_CTEST_SRC_DIR}/malloc.res" "-D" "nudge:STRING=.././bin/drmemory.exe@-debug@-dr_debug@-dr@{DRMEMORY_CTEST_DR_DIR}/..@-batch" "-D" "VMKERNEL:BOOL=OFF" "-D" "USE_DRSYMS:BOOL=ON" "-D" "X64:BOOL=OFF" "-D" "toolbindir:STRING={DRMEMORY_CTEST_DR_DIR}/../bin32" "-D" "DRMEMORY_CTEST_SRC_DIR:STRING=C:/drmemory/backup/tests" "-D" "DRMEMORY_CTEST_DR_DIR:STRING=C:/drmemory/backup/build_suite/build_drmemory-dbg-32/dynamorio/cmake" "-D" "CMAKE_SYSTEM_VERSION:STRING=6.1" "-D" "exit_code:STRING=0" "-D" "path_append:STRING=" "-D" "postcmd:STRING=" "-P" "./runtest.cmake"
Directory: C:/drmemory/backup/build_suite/build_drmemory-dbg-32/tests
"noreplace_realloc" start time: Jun 24 22:49 [NON-UTF-8-BYTE-0xCA][NON-UTF-8-BYTE-0xF0][NON-UTF-8-BYTE-0xE0][NON-UTF-8-BYTE-0xF1][NON-UTF-8-BYTE-0xED][NON-UTF-8-BYTE-0xEE][NON-UTF-8-BYTE-0xFF][NON-UTF-8-BYTE-0xF0][NON-UTF-8-BYTE-0xF1][NON-UTF-8-BYTE-0xEA][NON-UTF-8-BYTE-0xEE][NON-UTF-8-BYTE-0xE5] [NON-UTF-8-BYTE-0xE2][NON-UTF-8-BYTE-0xF0][NON-UTF-8-BYTE-0xE5][NON-UTF-8-BYTE-0xEC][NON-UTF-8-BYTE-0xFF]([NON-UTF-8-BYTE-0xE7][NON-UTF-8-BYTE-0xE8][NON-UTF-8-BYTE-0xEC][NON-UTF-8-BYTE-0xE0])
Output:
----------------------------------------------------------
STDOUT: malloc
malloc small
malloc 0
malloc big
calloc
realloc
invalid free
HeapFree failed 87
all done
STDERR:
~~Dr.M~~ Dr. Memory version 1.6.1955
~~Dr.M~~ Running "./malloc.exe"
~~Dr.M~~ ERRORS FOUND:
~~Dr.M~~ 3 unique, 24 total unaddressable access(es)
~~Dr.M~~ 2 unique, 2 total uninitialized 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~~ 4 unique, 4 total, 155 byte(s) of leak(s)
~~Dr.M~~ 1 unique, 1 total, 16 byte(s) of possible leak(s)
~~Dr.M~~ ERRORS IGNORED:
~~Dr.M~~ 3 unique, 3 total, 51 byte(s) of still-reachable allocation(s)
~~Dr.M~~ (re-run with "-show_reachable" for details)
~~Dr.M~~ Details: C:\drmemory\backup\build_suite\build_drmemory-dbg-32\logs\DrMemory-malloc.exe.1580.000\results.txt
CMake Error at runtest.cmake:449 (message):
stderr failed to match "~~Dr.M~~ 3 unique, 3 total, 155 byte(s) of
leak(s)", found "~~Dr.M~~ 4 unique, 4 total, 155 byte(s) of leak(s)"
Unfortunately I couldn't reproduce this failure again.
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=1580_
Contributor guide
Assessment
This issue has not been assessed yet.