DynamoRIO / DynamoRIO/drmemory
test failures when built w/ VS2010
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on June 17, 2012 13:03:11_
The following tests FAILED:
4 - registers (Failed)
10 - winthreads (Failed)
17 - slowesp (Failed)
*\* TODO registers and slowesp: 2 extra uninits
is this issue #337, though w/o top frame?
4: stderr failed to match "~~Dr.M~~ 12 unique, 12 total uninitialized
4: access(es)", found "~~Dr.M~~ 14 unique, 14 total uninitialized
4: access(es)" instead
Error `#13`: UNINITIALIZED READ: reading register ecx
#0 ntdll.dll!RtlAllocateHeap (0x77c6e072 )
??:0
#1 malloc (0x01231a87 )
f:\dd\vctools\crt_bld\self_x86\crt\src\malloc.c:89
#2 addronly_test (0x01231316 )
d:\derek\drmemory\git\src\tests\registers.c:585
#3 main (0x012313b5 )
d:\derek\drmemory\git\src\tests\registers.c:701
Note: @0:00:01.754 in thread 2516
Note: instruction: cmp %ecx %esi
Error `#14`: UNINITIALIZED READ: reading register esi
#0 ntdll.dll!RtlAllocateHeap (0x77c6e111 )
??:0
#1 malloc (0x01231a87 )
f:\dd\vctools\crt_bld\self_x86\crt\src\malloc.c:89
#2 addronly_test (0x01231316 )
d:\derek\drmemory\git\src\tests\registers.c:585
#3 main (0x012313b5 )
d:\derek\drmemory\git\src\tests\registers.c:701
Note: @0:00:01.755 in thread 2516
Note: instruction: test %esi %esi
*\* TODO winthreads: extra uninit from inconsistent callstacks
10: stderr failed to match "~~Dr.M~~ 1 unique, 2 total uninitialized
10: access(es)", found "~~Dr.M~~ 2 unique, 2 total uninitialized access(es)"
10: instead
Error `#2`: UNINITIALIZED READ: reading register eax
#0 run_and_exit_func (0x0134105e )
d:\derek\drmemory\git\src\tests\winthreads.c:38
#1 _callthreadstartex (0x01341276 )
f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:314
#2 _threadstartex (0x01341300 )
f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:292
Note: @0:00:02.079 in thread 6560
Note: instruction: cmp %eax $0x00000061
Error `#3`: UNINITIALIZED READ: reading register eax
#0 run_and_exit_func (0x0134105e )
d:\derek\drmemory\git\src\tests\winthreads.c:38
#1 _callthreadstartex (0x01341276 )
f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:314
#2 _threadstartex (0x01341300 )
f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:292
#3 ntdll.dll!_RtlUserThreadStart (0x77c79ec5 )
??:0
Note: @0:00:02.081 in thread 4788
Note: instruction: cmp %eax $0x00000061
% bin/drmemory.exe -callstack_truncate_below "" -callstack_style 0x303 -dr d:/derek/dr/git/exports -batch -- tests/winthreads.exe
~~Dr.M~~ Dr. Memory version 1.4.880
~~Dr.M~~ Running ""D:\derek\drmemory\git\build_drmemory\tests\winthreads.exe""
~~7160~~
~~7160~~ Error `#1`: UNINITIALIZED READ: reading register eax
~~7160~~ # 0 run_and_exit_func [d:\derek\drmemory\git\src\tests\winthreads.c:38](0x0134105e)
~~7160~~ # 1 _callthreadstartex [f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:314](0x01341276)
~~7160~~ # 2 _threadstartex [f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:292](0x01341300)
~~7160~~ # 3 ntdll.dll!_RtlUserThreadStart (0x77c79ec5)
~~7160~~ Note: @0:00:00.788 in thread 7160
~~7160~~ Note: instruction: cmp %eax $0x00000061
~~6556~~
~~6556~~ Error `#2`: UNADDRESSABLE ACCESS: writing 0x012baddd-0x012badde 1 byte(s)
~~6556~~ # 0 run_and_exit_func [d:\derek\drmemory\git\src\tests\winthreads.c:36](0x01341052)
~~6556~~ # 1 _callthreadstartex [f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:314](0x01341276)
~~6556~~ # 2 _threadstartex [f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:292](0x01341300)
~~6556~~ # 3 ntdll.dll!_RtlUserThreadStart (0x77c79ec5)
~~6556~~ Note: @0:00:00.795 in thread 6556
~~6556~~ Note: next higher malloc: 0x012bae08-0x012bae0c
~~6556~~ Note: refers to 2 byte(s) beyond last valid byte in prior malloc
~~6556~~ Note: prev lower malloc: 0x012badd8-0x012baddc
~~6556~~ Note: instruction: mov $0x03 -> 0x05(%ecx)
~~5824~~
~~5824~~ Error `#3`: UNINITIALIZED READ: reading register eax
~~5824~~ # 0 run_and_exit_func [d:\derek\drmemory\git\src\tests\winthreads.c:38](0x0134105e)
~~5824~~ # 1 _threadstartex [f:\dd\vctools\crt_bld\self_x86\crt\src\threadex.c:292](0x01341300)
~~5824~~ # 2 ntdll.dll!_RtlUserThreadStart (0x77c79ec5)
~~5824~~ Note: @0:00:00.795 in thread 5824
~~5824~~ Note: instruction: cmp %eax $0x00000061
*\* TODO suite has more errors including on package
#
RESULTS
drheapstat-dbg-32: 18 tests passed, ***\* 1 tests failed: ****
cs2bug
drheapstat-rel-32: 18 tests passed, ***\* 1 tests failed: ****
cs2bug
drmemory-dbg-32: 43 tests passed, ***\* 2 tests failed: ****
registers => stderr failed to match ~~Dr.M~~ 12 unique, 12 total uninitialized
access(es), found ~~Dr.M~~ 14 unique, 14 total uninitialized
access(es) instead
slowesp => stderr failed to match ~~Dr.M~~ 12 unique, 12 total uninitialized
access(es), found ~~Dr.M~~ 14 unique, 14 total uninitialized
access(es) instead
drmemory-rel-32: 43 tests passed, ***\* 2 tests failed: ****
registers => stderr failed to match ~~Dr.M~~ 12 unique, 12 total uninitialized
access(es), found ~~Dr.M~~ 14 unique, 14 total uninitialized
access(es) instead
slowesp => stderr failed to match ~~Dr.M~~ 12 unique, 12 total uninitialized
access(es), found ~~Dr.M~~ 14 unique, 14 total uninitialized
access(es) instead
final package: ***\* 10 build errors ****
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "cd D:\derek\drmemory\build_suite\build_drmemory-rel-32 [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: D: [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: C:\PROGRA~2\CMAKE2~1.4\bin\cpack.exe -C Release --config ./CPackConfig.cmake [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if errorlevel 1 goto :VCEnd [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1. [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "cd D:\derek\drmemory\build_suite\build_drmemory-rel-32 [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: D: [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: C:\PROGRA~2\CMAKE2~1.4\bin\cpack.exe -C Release --config ./CPackConfig.cmake [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if errorlevel 1 goto :VCEnd [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1. [D:\derek\drmemory\build_suite\build_drmemory-rel-32\PACKAGE.vcxproj]
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=921_
Contributor guide
Assessment
This issue has not been assessed yet.