-
Notifications
You must be signed in to change notification settings - Fork 263
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
Possible false positive report from unittests.exe at libpng.dll!wk_png_write_find_filter #1335
Comments
From [email protected] on September 17, 2013 19:38:12 In Release-build chrome: Error 0 libpng.dll!wk_png_write_find_filter [e:\derek\chromium\src\third_party\libpng\pngwutil.c:2213]1 libpng.dll!wk_png_write_row [e:\derek\chromium\src\third_party\libpng\pngwrite.c:964]2 ui.dll!gfx::`anonymous namespace'::DoLibpngWrite [e:\derek\chromium\src\ui\gfx\codec\png_codec.cc:648]# 3 ui.dll!gfx::`anonymous namespace'::EncodeWithCompressionLevel [e:\derek\chromium\src\ui\gfx\codec\png_codec.cc:741] 4 ui.dll!gfx::PNGCodec::Encode [e:\derek\chromium\src\ui\gfx\codec\png_codec.cc:762]5 snapshot.dll!ui::GrabWindowSnapshot [e:\derek\chromium\src\ui\snapshot\snapshot_aura.cc:86]6 `anonymous namespace'::GrabWindowSnapshot [e:\derek\chromium\src\chrome\browser\ui\ash\screenshot_taker.cc:230]7 ScreenshotTaker::HandleTakePartialScreenshot [e:\derek\chromium\src\chrome\browser\ui\ash\screenshot_taker.cc:402]8 ash::test::ScreenshotTakerTest_TakeScreenshot_Test::TestBody [e:\derek\chromium\src\chrome\browser\ui\ash\screenshot_taker_unittest.cc:123]9 testing::internal::HandleExceptionsInMethodIfSupportedtesting::TestCase,void [e:\derek\chromium\src\testing\gtest\src\gtest.cc:2051]#10 testing::Test::Run [e:\derek\chromium\src\testing\gtest\src\gtest.cc:2068] png_write_find_filter(png_structp png_ptr, png_row_infop row_info) called like this: 03edef5c 6bbc913e libpng!wk_png_write_row+0x1ee [e:\derek\chromium\src\third_party\libpng\pngwrite.c @ 966] 03edef74 66429ad3 ui!gfx::`anonymous namespace'::DoLibpngWrite+0x173 [e:\derek\chromium\src\ui\gfx\codec\png_codec.cc @ 648] 0:008> U 0x6bbcb7ad ... 0:000> dd 0x43231028-20 0:000> dt mc 0x4323102x was last written here: libpng!wk_png_write_start_row+0x45 [e:\derek\chromium\src\third_party\libpng\pngwutil.c @ 1786]: png_write_start_row(png_structp png_ptr) replace_malloc 301 0 libpng.dll!wk_png_malloc+0x19 [e:\derek\chromium\src\third_party\libpng\pngmem.c:511+0x7](0x6bbc204a <libpng.dll+0x204a) modid:01 libpng.dll!wk_png_write_start_row+0x44 [e:\derek\chromium\src\third_party\libpng\pngwutil.c:1786+0x6](0x6bbca955 <libpng.dll+0xa955) modid:02 libpng.dll!wk_png_write_row+0x3d [e:\derek\chromium\src\third_party\libpng\pngwrite.c:841+0x5](0x6bbc8f8e <libpng.dll+0x8f8e) modid:03 ui.dll!gfx::`anonymous namespace'::DoLibpngWrite+0x172 [e:\derek\chromium\src\ui\gfx\codec\png_codec.cc:648+0x7] (0x66429ad3 <ui.dll+0x49ad3>) modid:0# 4 ui.dll!gfx::`anonymous namespace'::EncodeWithCompressionLevel+0x1fb [e:\derek\chromium\src\ui\gfx\codec\png_codec.cc:741+0x30](0x66429d1c <ui.dll+0x49d1c) modid:0 png_malloc does not zero (there is a png_calloc for zeroing). the whole thing is uninitialized except that first byte: caller DoLibpngWrite(): Looks like a real uninit to me: it mallocs 301 bytes for png_ptr->row_buf, This Chrome suppression matches: The bug ( http://crbug.com/30704 ) is mostly about zlib with that #f tacked on. Also xref http://crbug.com/174174 "Several uninitialized reads in png routines after r180271 " Owner: [email protected] |
From [email protected] on September 17, 2013 20:12:08 I'm not convinced this isn't unimportant: we'd need to talk to someone Status: WontFix |
From [email protected] on September 17, 2013 10:35:48
http://build.chromium.org/p/chromium.fyi/builders/Windows%20Unit%20%28DrMemory%20full%29%20%282%29/builds/429/steps/memory%20test%3A%20unit_2/logs/stdio [----------] 1 test from ScreenshotTakerTest
[ RUN ] ScreenshotTakerTest.TakeScreenshot
Dr.MDr.MError#1
: UNINITIALIZED READ: reading 0x0018ed38-0x0018ed39 1 byte(s) within 0x0018ed38-0x0018ed3cDr.M# 0 libpng.dll!wk_png_write_find_filter [third_party\libpng\pngwutil.c:2213]Dr.M# 1 libpng.dll!wk_png_write_row [third_party\libpng\pngwrite.c:964]Dr.M# 2 ui.dll!gfx::anonymous namespace'::DoLibpngWrite [ui\gfx\codec\png_codec.cc:648] \~~Dr.M~~ # 3 ui.dll!gfx::
anonymous namespace'::EncodeWithCompressionLevel [ui\gfx\codec\png_codec.cc:741]Dr.M# 4 ui.dll!gfx::PNGCodec::Encode [ui\gfx\codec\png_codec.cc:762]Dr.M# 5 snapshot.dll!ui::GrabWindowSnapshot [ui\snapshot\snapshot_aura.cc:86]Dr.M# 6 chrome::GrabWindowSnapshotForUser [chrome\browser\ui\window_snapshot\window_snapshot.cc:22]Dr.M# 7anonymous namespace'::GrabWindowSnapshot [chrome\browser\ui\ash\screenshot_taker.cc:230] \~~Dr.M~~ # 8 ScreenshotTaker::HandleTakePartialScreenshot [chrome\browser\ui\ash\screenshot_taker.cc:402] \~~Dr.M~~ # 9 ash::test::ScreenshotTakerTest_TakeScreenshot_Test::TestBody [chrome\browser\ui\ash\screenshot_taker_unittest.cc:123] \~~Dr.M~~
#10testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> [testing\gtest\src\gtest.cc:2051] \~~Dr.M~~ Note: @0:26:30.172 in thread 4088 \~~Dr.M~~ Note: instruction: cmp 0xffffffdc(%ebp) $0x00000080 \~~Dr.M~~ \~~Dr.M~~ Error
#2: UNINITIALIZED READ: reading 0x0018ed0c-0x0018ed0d 1 byte(s) within 0x0018ed0c-0x0018ed10 \~~Dr.M~~ # 0 libpng.dll!wk_png_write_find_filter [third_party\libpng\pngwutil.c:2320] \~~Dr.M~~ # 1 libpng.dll!wk_png_write_row [third_party\libpng\pngwrite.c:964] \~~Dr.M~~ # 2 ui.dll!gfx::
anonymous namespace'::DoLibpngWrite [ui\gfx\codec\png_codec.cc:648]Dr.M# 3 ui.dll!gfx::anonymous namespace'::EncodeWithCompressionLevel [ui\gfx\codec\png_codec.cc:741] \~~Dr.M~~ # 4 ui.dll!gfx::PNGCodec::Encode [ui\gfx\codec\png_codec.cc:762] \~~Dr.M~~ # 5 snapshot.dll!ui::GrabWindowSnapshot [ui\snapshot\snapshot_aura.cc:86] \~~Dr.M~~ # 6 chrome::GrabWindowSnapshotForUser [chrome\browser\ui\window_snapshot\window_snapshot.cc:22] \~~Dr.M~~ # 7
anonymous namespace'::GrabWindowSnapshot [chrome\browser\ui\ash\screenshot_taker.cc:230]Dr.M# 8 ScreenshotTaker::HandleTakePartialScreenshot [chrome\browser\ui\ash\screenshot_taker.cc:402]Dr.M# 9 ash::test::ScreenshotTakerTest_TakeScreenshot_Test::TestBody [chrome\browser\ui\ash\screenshot_taker_unittest.cc:123]Dr.M#10
testing::internal::HandleExceptionsInMethodIfSupportedtesting::Test,void [testing\gtest\src\gtest.cc:2051]I can reproduce it on my machine, investigating.
Original issue: http://code.google.com/p/drmemory/issues/detail?id=1335
The text was updated successfully, but these errors were encountered: