Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 8588061: suppress unit_tests deliberate null deref (Closed)

Created:
9 years, 1 month ago by Derek Bruening
Modified:
9 years ago
Reviewers:
Timur Iskhodzhanov
CC:
chromium-reviews, Alexander Potapenko, pam+watch_chromium.org, stuartmorgan+watch_chromium.org, Joao da Silva, Reid Kleckner (google)
Visibility:
Public.

Description

suppress unit_tests deliberate null deref TBR=timurrrr BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110720

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M tools/valgrind/drmemory/suppressions.txt View 2 chunks +10 lines, -5 lines 6 comments Download

Messages

Total messages: 9 (0 generated)
Derek Bruening
9 years, 1 month ago (2011-11-18 18:32:16 UTC) #1
Timur Iskhodzhanov
You've forgotten to specify a reviewer in the rietveld. (if you did upload --send_mail, see ...
9 years, 1 month ago (2011-11-18 20:05:40 UTC) #2
Timur Iskhodzhanov
http://codereview.chromium.org/8588061/diff/1/tools/valgrind/drmemory/suppressions.txt File tools/valgrind/drmemory/suppressions.txt (right): http://codereview.chromium.org/8588061/diff/1/tools/valgrind/drmemory/suppressions.txt#newcode725 tools/valgrind/drmemory/suppressions.txt:725: unit_tests.exe!BrowserAboutHandlerTest_WillHandleBrowserAboutURL_Test::TestBody Do you remember what was the stack? This ...
9 years ago (2011-12-07 13:32:16 UTC) #3
Derek Bruening
Reid please see comments http://codereview.chromium.org/8588061/diff/1/tools/valgrind/drmemory/suppressions.txt File tools/valgrind/drmemory/suppressions.txt (right): http://codereview.chromium.org/8588061/diff/1/tools/valgrind/drmemory/suppressions.txt#newcode718 tools/valgrind/drmemory/suppressions.txt:718: LEAK On 2011/11/18 20:05:40, Timur ...
9 years ago (2011-12-07 14:53:59 UTC) #4
Timur Iskhodzhanov
http://codereview.chromium.org/8588061/diff/1/tools/valgrind/drmemory/suppressions.txt File tools/valgrind/drmemory/suppressions.txt (right): http://codereview.chromium.org/8588061/diff/1/tools/valgrind/drmemory/suppressions.txt#newcode718 tools/valgrind/drmemory/suppressions.txt:718: LEAK I already did that. On 2011/12/07 14:53:59, Derek ...
9 years ago (2011-12-07 15:01:29 UTC) #5
Reid Kleckner
http://codereview.chromium.org/8588061/diff/1/tools/valgrind/drmemory/suppressions.txt File tools/valgrind/drmemory/suppressions.txt (right): http://codereview.chromium.org/8588061/diff/1/tools/valgrind/drmemory/suppressions.txt#newcode725 tools/valgrind/drmemory/suppressions.txt:725: unit_tests.exe!BrowserAboutHandlerTest_WillHandleBrowserAboutURL_Test::TestBody On 2011/12/07 14:53:59, Derek Bruening wrote: > On ...
9 years ago (2011-12-07 15:04:22 UTC) #6
Timur Iskhodzhanov
Can you please try to make the suppression more strict? E.g. one more frame at ...
9 years ago (2011-12-08 10:47:41 UTC) #7
Reid Kleckner (google)
On Thu, Dec 8, 2011 at 5:47 AM, <timurrrr@chromium.org> wrote: > Can you please try ...
9 years ago (2011-12-08 19:49:02 UTC) #8
Reid Kleckner (google)
9 years ago (2011-12-08 20:13:52 UTC) #9
On Thu, Dec 8, 2011 at 2:48 PM, Reid Kleckner <rnk@google.com> wrote:
> On Thu, Dec 8, 2011 at 5:47 AM,  <timurrrr@chromium.org> wrote:
>> Can you please try to make the suppression more strict? E.g. one more frame
>> at
>> the top.
>> Now we disable pretty much all the unaddrs in this test, which makes it a
>> bit
>> harder to debug 96010
>
> This test hangs for me locally, so I can't actually disable the
> suppression and reproduce locally to get the full stack trace.

I take it back, here's the unaddr I get:

UNADDRESSABLE ACCESS: reading 0x00000000-0x00000004 4 byte(s)
# 0 TestingProfile::FinishInit
                  [c:\src\src\chome\test\base\testing_profile.cc:210]
# 1 TestingProfile::TestingProfile
                  [c:\src\src\chrome\test\base\testing_profile.cc:164]
# 2 BrowserAboutHandlerTest_WillHandleBrowserAboutURL_Test::TestBody

[c:\src\src\chrome\browser\browser_about_handler_unittest.cc:110]
# 3 testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void>
          [c:\src\src\testing\gtest\src\gtest.cc:2145]
Note: @0:00:29.815 in thread 10328
Note: instruction: mov    (%edx) -> %eax

Note the line is:
src\chrome\browser\browser_about_handler_unittest.cc:110

Which is:
  TestingProfile profile;

And not the EXPECT_DEATH line.

This may actually be a DrMemory bug here, because the test eventually succeeds.

Reid

Powered by Google App Engine
This is Rietveld 408576698