New issue
Advanced search Search tips

Issue 760309 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 813483
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

FileManagerFileWatcherTest.WatchLocalFile flakey on CrOS ASan

Project Member Reported by kylec...@chromium.org, Aug 29 2017

Issue description

There is a flakey use after free in FileManagerFileWatcherTest.WatchLocalFile on the CrOS ASan trybot.

==1781==ERROR: AddressSanitizer: stack-use-after-return on address 0x7f33892051d0 at pc 0x7f3391eea76e bp 0x7fffb4c464a0 sp 0x7fffb4c46498
READ of size 1 at 0x7f33892051d0 thread T0
    #0 0x7f3391eea76d in __is_long buildtools/third_party/libc++/trunk/include/string:1224:39
    #1 0x7f3391eea76d in capacity buildtools/third_party/libc++/trunk/include/string:896
    #2 0x7f3391eea76d in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::assign(char const*, unsigned long) buildtools/third_party/libc++/trunk/include/string:1981
    #3 0x7f3391eea4f5 in std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) buildtools/third_party/libc++/trunk/include/string:2045:9
    #4 0x10db1c0d in base::FilePath::operator=(base::FilePath const&) base/files/file_path.cc:190:9
    #5 0x5f06554 in void google_apis::test_util::internal::CopyResultCallback<base::FilePath, bool>(base::FilePath*, bool*, google_apis::test_util::internal::CopyResultCallbackHelper<base::FilePath>::InType, google_apis::test_util::internal::CopyResultCallbackHelper<bool>::InType) google_apis/drive/test_util.h:190:9
    #6 0x5f061ce in Run base/callback.h:64:12
    #7 0x5f061ce in void base::internal::FunctorTraits<base::OnceCallback<void (base::FilePath const&, bool)>, void>::Invoke<base::OnceCallback<void (base::FilePath const&, bool)>, base::FilePath, bool>(base::OnceCallback<void (base::FilePath const&, bool)>&&, base::FilePath&&, bool&&) base/bind_internal.h:238
    #8 0x1fb50a2b in Run base/callback.h:64:12
    #9 0x1fb50a2b in google_apis::test_util::RunAndQuit(base::RunLoop*, base::OnceCallback<void ()>) google_apis/drive/test_util.cc:52
    #10 0x5d714ae in Invoke<base::RunLoop *const &, base::OnceCallback<void ()> > base/bind_internal.h:149:12
    #11 0x5d714ae in MakeItSo<void (*const &)(base::RunLoop *, base::OnceCallback<void ()>), base::RunLoop *const &, base::OnceCallback<void ()> > base/bind_internal.h:277
    #12 0x5d714ae in RunImpl<void (*const &)(base::RunLoop *, base::OnceCallback<void ()>), const std::__1::tuple<base::RunLoop *> &, 0> base/bind_internal.h:349
    #13 0x5d714ae in base::internal::Invoker<base::internal::BindState<void (*)(base::RunLoop*, base::OnceCallback<void ()>), base::RunLoop*>, void (base::OnceCallback<void ()>)>::Run(base::internal::BindStateBase*, base::OnceCallback<void ()>&&) base/bind_internal.h:331
    #14 0x5f05a45 in Run base/callback.h:64:12
    #15 0x5f05a45 in google_apis::internal::ComposedCallback<void (base::FilePath const&, bool)>::Run(base::OnceCallback<void (base::OnceCallback<void ()>)>, base::OnceCallback<void (base::FilePath const&, bool)>, base::FilePath const&, bool) google_apis/drive/task_util.h:27
    #16 0x5f05c45 in Invoke<const base::RepeatingCallback<void (base::OnceCallback<void ()>)> &, const base::RepeatingCallback<void (const base::FilePath &, bool)> &, const base::FilePath &, bool> base/bind_internal.h:149:12
    #17 0x5f05c45 in MakeItSo<void (*const &)(base::OnceCallback<void (base::OnceCallback<void ()>)>, base::OnceCallback<void (const base::FilePath &, bool)>, const base::FilePath &, bool), const base::RepeatingCallback<void (base::OnceCallback<void ()>)> &, const base::RepeatingCallback<void (const base::FilePath &, bool)> &, const base::FilePath &, bool> base/bind_internal.h:277
    #18 0x5f05c45 in RunImpl<void (*const &)(base::OnceCallback<void (base::OnceCallback<void ()>)>, base::OnceCallback<void (const base::FilePath &, bool)>, const base::FilePath &, bool), const std::__1::tuple<base::RepeatingCallback<void (base::OnceCallback<void ()>)>, base::RepeatingCallback<void (const base::FilePath &, bool)> > &, 0, 1> base/bind_internal.h:349
    #19 0x5f05c45 in base::internal::Invoker<base::internal::BindState<void (*)(base::OnceCallback<void (base::OnceCallback<void ()>)>, base::OnceCallback<void (base::FilePath const&, bool)>, base::FilePath const&, bool), base::RepeatingCallback<void (base::OnceCallback<void ()>)>, base::RepeatingCallback<void (base::FilePath const&, bool)> >, void (base::FilePath const&, bool)>::Run(base::internal::BindStateBase*, base::FilePath const&, bool&&) base/bind_internal.h:331
    #20 0x5f061ce in Run base/callback.h:64:12
    #21 0x5f061ce in void base::internal::FunctorTraits<base::OnceCallback<void (base::FilePath const&, bool)>, void>::Invoke<base::OnceCallback<void (base::FilePath const&, bool)>, base::FilePath, bool>(base::OnceCallback<void (base::FilePath const&, bool)>&&, base::FilePath&&, bool&&) base/bind_internal.h:238
    #22 0x10da1372 in Run base/callback.h:64:12
    #23 0x10da1372 in base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/debug/task_annotator.cc:65
    #24 0x10e1389a in base::MessageLoop::RunTask(base::PendingTask*) base/message_loop/message_loop.cc:406:19
 
Project Member

Comment 1 by bugdroid1@chromium.org, Aug 30 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/933213bf7f0fbfdacd15687298490305b60a2ef6

commit 933213bf7f0fbfdacd15687298490305b60a2ef6
Author: kylechar <kylechar@chromium.org>
Date: Wed Aug 30 00:14:35 2017

Add to CrOS ASan unit_tests filter file.

FileManagerFileWatcherTest.WatchLocalFile is flakey on CrOS ASan. Add to
the filter file so it's no longer run.

Bug:  760309 
Change-Id: I3860d775b61517a3401c7154c9df7b8a69a2d96c
TBR: sky@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/641335
Reviewed-by: kylechar <kylechar@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#498297}
[modify] https://crrev.com/933213bf7f0fbfdacd15687298490305b60a2ef6/testing/buildbot/filters/unit_tests_cros_asan.filter

Cc: kylec...@chromium.org sky@chromium.org
 Issue 760358  has been merged into this issue.
Owner: fukino@chromium.org
+fukino for help triaging. The test fails sometimes when running with ASan due to a use after free.
Blocking: -742623
Mergedinto: 813483
Status: Duplicate (was: Untriaged)

Sign in to add a comment