Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4 extra UNINITs in cs2bug unit test on XP #276

Open
derekbruening opened this issue Nov 28, 2014 · 3 comments
Open

4 extra UNINITs in cs2bug unit test on XP #276

derekbruening opened this issue Nov 28, 2014 · 3 comments

Comments

@derekbruening
Copy link
Contributor

From bruen...@google.com on January 25, 2011 15:24:31

drmemory test suite on XP using VS2008 http://build.chromium.org/p/client.drmemory/testlogs/from_win-xp-drm/testlogs_r156_b796.7z Error #3: UNINITIALIZED READ: reading 0x00ddfbc8-0x00ddfbcc 4 byte(s)
@0:00:03.469 in thread 1100
0x0040eacf <cs2bug.exe+0xeacf> cs2bug.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:499
0x0040b728 <cs2bug.exe+0xb728> cs2bug.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!RtlConvertUlongToLargeInteger
??:0
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!RtlConvertUlongToLargeInteger
??:0
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
??:0
0x0040bea6 <cs2bug.exe+0xbea6> cs2bug.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401c3c <cs2bug.exe+0x1c3c> cs2bug.exe!test_exception
e:\b\build\slave\win_xp_drm_checkout\drmemory\tests\cs2bug.cpp:110
0x00401852 <cs2bug.exe+0x1852> cs2bug.exe!main
e:\b\build\slave\win_xp_drm_checkout\drmemory\tests\cs2bug.cpp:122
0x0040c732 <cs2bug.exe+0xc732> cs2bug.exe!__tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:266
0x7c817077 <KERNEL32.dll+0x17077> KERNEL32.dll!RegisterWaitForInputIdle
??:0

Error #4: UNINITIALIZED READ: reading 0x00ddfbcc-0x00ddfbd0 4 byte(s)
@0:00:03.469 in thread 1100
0x0040ead5 <cs2bug.exe+0xead5> cs2bug.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:499
0x0040b728 <cs2bug.exe+0xb728> cs2bug.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!RtlConvertUlongToLargeInteger
??:0
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!RtlConvertUlongToLargeInteger
??:0
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
??:0
0x0040bea6 <cs2bug.exe+0xbea6> cs2bug.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401c3c <cs2bug.exe+0x1c3c> cs2bug.exe!test_exception
e:\b\build\slave\win_xp_drm_checkout\drmemory\tests\cs2bug.cpp:110
0x00401852 <cs2bug.exe+0x1852> cs2bug.exe!main
e:\b\build\slave\win_xp_drm_checkout\drmemory\tests\cs2bug.cpp:122
0x0040c732 <cs2bug.exe+0xc732> cs2bug.exe!__tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:266
0x7c817077 <KERNEL32.dll+0x17077> KERNEL32.dll!RegisterWaitForInputIdle
??:0

Error #5: UNINITIALIZED READ: reading 0x00ddfbd4-0x00ddfbd8 4 byte(s)
@0:00:03.469 in thread 1100
0x0040e74c <cs2bug.exe+0xe74c> cs2bug.exe!FindHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:637
0x0040eb1a <cs2bug.exe+0xeb1a> cs2bug.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:524
0x0040b728 <cs2bug.exe+0xb728> cs2bug.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!RtlConvertUlongToLargeInteger
??:0
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!RtlConvertUlongToLargeInteger
??:0
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
??:0
0x0040bea6 <cs2bug.exe+0xbea6> cs2bug.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401c3c <cs2bug.exe+0x1c3c> cs2bug.exe!test_exception
e:\b\build\slave\win_xp_drm_checkout\drmemory\tests\cs2bug.cpp:110
0x00401852 <cs2bug.exe+0x1852> cs2bug.exe!main
e:\b\build\slave\win_xp_drm_checkout\drmemory\tests\cs2bug.cpp:122
0x0040c732 <cs2bug.exe+0xc732> cs2bug.exe!__tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:266
0x7c817077 <KERNEL32.dll+0x17077> KERNEL32.dll!RegisterWaitForInputIdle
??:0

Error #6: UNINITIALIZED READ: reading register ecx
@0:00:03.578 in thread 1100
0x0040bcd4 <cs2bug.exe+0xbcd4> cs2bug.exe!std::exception::~exception
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\stdexcpt.cpp:167
0x0040e220 <cs2bug.exe+0xe220> cs2bug.exe!CallCatchBlock
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1513
0x0040e5d7 <cs2bug.exe+0xe5d7> cs2bug.exe!CatchIt
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1275
0x0040e92e <cs2bug.exe+0xe92e> cs2bug.exe!FindHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:774
0x0040eb1a <cs2bug.exe+0xeb1a> cs2bug.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:524
0x0040b728 <cs2bug.exe+0xb728> cs2bug.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!RtlConvertUlongToLargeInteger
??:0
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!RtlConvertUlongToLargeInteger
??:0
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
??:0
0x0040bea6 <cs2bug.exe+0xbea6> cs2bug.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401c3c <cs2bug.exe+0x1c3c> cs2bug.exe!test_exception
e:\b\build\slave\win_xp_drm_checkout\drmemory\tests\cs2bug.cpp:110
0x00401852 <cs2bug.exe+0x1852> cs2bug.exe!main
e:\b\build\slave\win_xp_drm_checkout\drmemory\tests\cs2bug.cpp:122

Original issue: http://code.google.com/p/drmemory/issues/detail?id=276

@derekbruening
Copy link
Contributor Author

From timurrrr@google.com on May 17, 2011 07:24:08

http://build.chromium.org/p/chromium.fyi/builders/Windows%20Tests%20%28DrMemory%29/builds/3733/steps/memory%20test%3A%20base/logs/stdio 06:28:21 drmemory_analyze.py [ERROR]
UNINITIALIZED READ: reading register eflags

1 0x008402fd _except_handler4

2 0x7c9032a8 RtlConvertUlongToLargeInteger ntdll.dll

3 0x7c90327a RtlConvertUlongToLargeInteger ntdll.dll

4 0x7c90e48a KiUserExceptionDispatcher ntdll.dll

5 0x0061ea74 `anonymous namespace'::TestWindowProc base\win\wrapped_window_proc_unittest.cc:18

# 6 0x0061f37b base::win::WrappedWindowProc<&`anonymous namespace'::TestWindowProc> base\win\wrapped_window_proc.h:60

7 0x7e418734 GetDC USER32.dll

8 0x7e418816 GetDC USER32.dll

9 0x7e42927b GetParent USER32.dll

#10 0x7e4292e3 SendMessageW USER32.dll
#11 0x0061ec80 WrappedWindowProc_CatchesExceptions_Test::TestBody base\win\wrapped_window_proc_unittest.cc:75
#12 0x00725647 testing::internal::HandleExceptionsInMethodIfSupportedtesting::Test,void testing\gtest\src\gtest.cc:2145

looks related

@derekbruening
Copy link
Contributor Author

From timurrrr@google.com on July 27, 2011 08:42:15

Looks like exception handling is just broken (under DrMemory?) on XP 32-bits.

The following code (copied from cs2bug + modified) gives 7 different uninits:

#include

int main() {
try {
throw 1;
} catch(int i) {
std::cout << "PASS" << std::endl;
}
}

Error #1: UNINITIALIZED READ: reading 0x0012fbd8-0x0012fbdc 4 byte(s)
@0:00:01.390 in thread 3660
0x004087d8 <test.exe+0x87d8> test.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:499
0x0040570b <test.exe+0x570b> test.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!ExecuteHandler2 // RtlConvertUlongToLargeInteger w/o symbols
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!ExecuteHandler // RtlConvertUlongToLargeInteger
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
0x00405aea <test.exe+0x5aea> test.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401398 <test.exe+0x1398> test.exe!main
test.cpp:5

Error #2: UNINITIALIZED READ: reading 0x0012fbdc-0x0012fbe0 4 byte(s)
@0:00:01.390 in thread 3660
0x004087de <test.exe+0x87de> test.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:499
0x0040570b <test.exe+0x570b> test.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!ExecuteHandler2
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!ExecuteHandler
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
0x00405aea <test.exe+0x5aea> test.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401398 <test.exe+0x1398> test.exe!main
test.cpp:5

Error #3: UNINITIALIZED READ: reading 0x0012fbe4-0x0012fbe8 4 byte(s)
@0:00:01.390 in thread 3660
0x00408455 <test.exe+0x8455> test.exe!FindHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:637
0x00408823 <test.exe+0x8823> test.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:524
0x0040570b <test.exe+0x570b> test.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!ExecuteHandler2
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!ExecuteHandler
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
0x00405aea <test.exe+0x5aea> test.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401398 <test.exe+0x1398> test.exe!main
test.cpp:5

Error #4: UNINITIALIZED READ: reading 0x0012f984-0x0012f988 4 byte(s)
@0:00:01.406 in thread 3660
0x004100f0 <test.exe+0x100f0> test.exe!_ValidateRead
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\validate.cpp:65
0x00407fd2 <test.exe+0x7fd2> test.exe!__BuildCatchObjectHelper
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1638
0x004080e6 <test.exe+0x80e6> test.exe!__BuildCatchObject
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1746
0x0040829a <test.exe+0x829a> test.exe!CatchIt
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1236
0x00408637 <test.exe+0x8637> test.exe!FindHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:774
0x00408823 <test.exe+0x8823> test.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:524
0x0040570b <test.exe+0x570b> test.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!ExecuteHandler2
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!ExecuteHandler
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
0x00405aea <test.exe+0x5aea> test.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401398 <test.exe+0x1398> test.exe!main
test.cpp:5

Error #5: UNINITIALIZED READ: reading register ebp
@0:00:01.453 in thread 3660
0x100384d6 <drmemorylib.dll+0x384d6> drmemorylib.dll!replace_memmove
c:\cygwin\home\timurrrr\drmemory\drmemory\replace.c:478
0x00407ffc <test.exe+0x7ffc> test.exe!__BuildCatchObjectHelper
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1639
0x004080e6 <test.exe+0x80e6> test.exe!__BuildCatchObject
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1746
0x0040829a <test.exe+0x829a> test.exe!CatchIt
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1236
0x00408637 <test.exe+0x8637> test.exe!FindHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:774
0x00408823 <test.exe+0x8823> test.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:524
0x0040570b <test.exe+0x570b> test.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!ExecuteHandler2
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!ExecuteHandler
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
0x00405aea <test.exe+0x5aea> test.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401398 <test.exe+0x1398> test.exe!main
test.cpp:5

Error #6: UNINITIALIZED READ: reading register edi
@0:00:01.468 in thread 3660
0x100384e4 <drmemorylib.dll+0x384e4> drmemorylib.dll!replace_memmove
c:\cygwin\home\timurrrr\drmemory\drmemory\replace.c:478
0x00407ffc <test.exe+0x7ffc> test.exe!__BuildCatchObjectHelper
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1639
0x004080e6 <test.exe+0x80e6> test.exe!__BuildCatchObject
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1746
0x0040829a <test.exe+0x829a> test.exe!CatchIt
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1236
0x00408637 <test.exe+0x8637> test.exe!FindHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:774
0x00408823 <test.exe+0x8823> test.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:524
0x0040570b <test.exe+0x570b> test.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!ExecuteHandler2
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!ExecuteHandler
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
0x00405aea <test.exe+0x5aea> test.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401398 <test.exe+0x1398> test.exe!main
test.cpp:5

Error #7: UNINITIALIZED READ: reading register esi
@0:00:01.468 in thread 3660
0x10038510 <drmemorylib.dll+0x38510> drmemorylib.dll!replace_memmove
c:\cygwin\home\timurrrr\drmemory\drmemory\replace.c:489
0x00407ffc <test.exe+0x7ffc> test.exe!__BuildCatchObjectHelper
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1639
0x004080e6 <test.exe+0x80e6> test.exe!__BuildCatchObject
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1746
0x0040829a <test.exe+0x829a> test.exe!CatchIt
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:1236
0x00408637 <test.exe+0x8637> test.exe!FindHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:774
0x00408823 <test.exe+0x8823> test.exe!__InternalCxxFrameHandler
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\frame.cpp:524
0x0040570b <test.exe+0x570b> test.exe!__CxxFrameHandler3
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\i386\trnsctrl.cpp:365
0x7c9032a8 <ntdll.dll+0x32a8> ntdll.dll!ExecuteHandler2
0x7c90327a <ntdll.dll+0x327a> ntdll.dll!ExecuteHandler
0x7c90e48a <ntdll.dll+0xe48a> ntdll.dll!KiUserExceptionDispatcher
0x00405aea <test.exe+0x5aea> test.exe!_CxxThrowException
f:\dd\vctools\crt_bld\self_x86\crt\prebuild\eh\throw.cpp:159
0x00401398 <test.exe+0x1398> test.exe!main
test.cpp:5

@derekbruening
Copy link
Contributor Author

From timurrrr@google.com on July 27, 2011 09:07:17

WDYT about suppressing everything below _CxxThrowException until this is fixed?

We have a red Dr. Memory waterfall partly because of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant