RippeR37/libbase

ThreadedWeakCallbackTest.UseWeakPtrOnAnotherSequence failing randomly

RippeR37 opened this issue · 1 comments

One of the unit tests in bind_unittests.cc is randomly failing on CI as seen here:

Can be reproduced locally with:

./libbase_unittests --gtest_filter=ThreadedWeakCallbackTest.UseWeakPtrOnAnotherSequence --gtest_brief=1 --gtest_repeat=-1

Stack trace:

F20210727 14:05:16.411942  9167 sequence_checker.cc:9] Check failed: CalledOnValidSequence()
*** Check failure stack trace: ***
@           0x513f8a  google::LogMessage::Fail()
@           0x5133e5  google::LogMessage::SendToLog()
@           0x513c8a  google::LogMessage::Flush()
@           0x5173e9  google::LogMessageFatal::~LogMessageFatal()
@           0x4a8b0d  base::SequenceChecker::~SequenceChecker()
@           0x43b819  base::detail::WeakPtrControlBlock::~WeakPtrControlBlock()
@           0x43b7f9  __gnu_cxx::new_allocator<>::destroy<>()
@           0x43b78d  std::allocator_traits<>::destroy<>()
@           0x43b506  std::_Sp_counted_ptr_inplace<>::_M_dispose()
@           0x43b9e5  std::_Sp_counted_base<>::_M_release()
@           0x43b99a  std::__shared_count<>::~__shared_count()
@           0x43cb89  std::__shared_ptr<>::~__shared_ptr()
@           0x43ae35  std::shared_ptr<>::~shared_ptr()
@           0x42386d  base::WeakPtr<>::DecreaseWeakCount()
@           0x4228b9  base::WeakPtr<>::~WeakPtr()
@           0x42a146  (anonymous namespace)::ThreadedWeakCallbackTest_UseWeakPtrOnAnotherSequence_Test::TestBody()
@           0x4f7aab  testing::internal::HandleSehExceptionsInMethodIfSupported<>()
@           0x4df87a  testing::internal::HandleExceptionsInMethodIfSupported<>()
@           0x4ba359  testing::Test::Run()
@           0x4bb0fc  testing::TestInfo::Run()
@           0x4bb904  testing::TestSuite::Run()
@           0x4cc44e  testing::internal::UnitTestImpl::RunAllTests()
@           0x4fa88b  testing::internal::HandleSehExceptionsInMethodIfSupported<>()
@           0x4e205a  testing::internal::HandleExceptionsInMethodIfSupported<>()
@           0x4cbfbf  testing::UnitTest::Run()
@           0x4a59a1  RUN_ALL_TESTS()
@           0x4a5971  main
@     0x7f466bc6e0b3  __libc_start_main
@           0x412d1e  _start