Closed Bug 2067695 Opened 2 months ago Closed 2 months ago

Update libcubeb to 80dd0a2e9bb01319938b57fb92dcbb94212bbb76

Categories

(Core :: Audio/Video: cubeb, task)

task

Tracking

()

RESOLVED DUPLICATE of bug 2072475

People

(Reporter: aosmond, Assigned: aosmond)

Details

No description provided.
Summary: Update libcubeb to 92ab42808b1814e7c50ecad721e31176db9f9842 → Update libcubeb to 80dd0a2e9bb01319938b57fb92dcbb94212bbb76

This has a pretty real-looking TSan failure:
https://treeherder.mozilla.org/logviewer?job_id=590645718&repo=try&task=JWMuJggORQKfpB3J2M036A.0&lineNumber=3505

TEST-START | cubeb.stop_stream_with_erroring_callback
==================
WARNING: ThreadSanitizer: data race (pid=1472)
  Write of size 8 at 0x7224000b6d50 by main thread:
    #0 pthread_cond_destroy /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1391:3 (firefox-bin+0xcab1a) (BuildId: dff90fca1f06dbf65917987116b16b804cdb6c79)
    #1 ~erroring_callback_state /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:730:8 (libxul.so+0x478b6ba) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #2 cubeb_stop_stream_with_erroring_callback_Test::TestBody() /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:813:3 (libxul.so+0x478b6ba)
    #3 HandleExceptionsInMethodIfSupported<testing::Test, void> /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x55f686e) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #4 testing::Test::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2773:5 (libxul.so+0x55f686e)
    #5 testing::TestInfo::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2919:11 (libxul.so+0x55f84b5) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #6 testing::TestSuite::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3097:30 (libxul.so+0x55f9d44) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #7 testing::internal::UnitTestImpl::RunAllTests() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:6088:44 (libxul.so+0x5618539) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #8 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x5617743) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #9 testing::UnitTest::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5629:10 (libxul.so+0x5617743)
    #10 RUN_ALL_TESTS /builds/worker/workspace/obj-build/dist/include/gtest/gtest.h:2347:73 (libxul.so+0x55c7f51) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #11 mozilla::RunGTestFunc(int*, char**) /builds/worker/checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:264:10 (libxul.so+0x55c7f51)
    #12 XREMain::XRE_mainStartup(bool*) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5136:16 (libxul.so+0xeb92a70) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #13 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6549:12 (libxul.so+0xeb9d38b) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #14 XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6647:21 (libxul.so+0xeb9dd0e) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #15 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/workspace/obj-build/toolkit/xre/./../../../../checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xebadeb2) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #16 do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:271:22 (firefox-bin+0x14c810) (BuildId: dff90fca1f06dbf65917987116b16b804cdb6c79)
    #17 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:542:16 (firefox-bin+0x14c810)
  Previous read of size 8 at 0x7224000b6d50 by thread T545:
    #0 pthread_cond_signal /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1377:3 (firefox-bin+0xca7f8) (BuildId: dff90fca1f06dbf65917987116b16b804cdb6c79)
    #1 operator() /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:796:17 (libxul.so+0x478cca4) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #2 __invoke_impl<void, (lambda at /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:789:15)> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:60:14 (libxul.so+0x478cca4)    #2 __invoke_impl<void, (lambda at /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:789:15)> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:60:14 (libxul.so+0x478cca4)
    #3 __invoke<(lambda at /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:789:15)> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:95:14 (libxul.so+0x478cca4)
    #4 _M_invoke<0UL> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/thread:264:13 (libxul.so+0x478cca4)
    #5 operator() /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/thread:271:11 (libxul.so+0x478cca4)
    #6 std::thread::_State_impl<std::thread::_Invoker<std::tuple<cubeb_stop_stream_with_erroring_callback_Test::TestBody()::$_0>>>::_M_run() /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/thread:215:13 (libxul.so+0x478cca4)
    #7 std::StateWrapper::_M_run() /builds/worker/checkouts/gecko/dom/geolocation/Geolocation.cpp:274:15 (libxul.so+0xb5a30cb) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #8 <null> <null> (libstdc++.so.6+0xecf8c) (BuildId: ca77dae775ec87540acd7218fa990c40d1c94ab1)
  Location is heap block of size 136 at 0x7224000b6d00 allocated by main thread:
    #0 malloc /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:671:5 (firefox-bin+0xc7200) (BuildId: dff90fca1f06dbf65917987116b16b804cdb6c79)
    #1 moz_xmalloc /builds/worker/workspace/obj-build/memory/mozalloc/./../../../../checkouts/gecko/memory/mozalloc/mozalloc.cpp:48:15 (firefox-bin+0x154e58) (BuildId: dff90fca1f06dbf65917987116b16b804cdb6c79)
    #2 operator new /builds/worker/workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0x478b2ae) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #3 cubeb_stop_stream_with_erroring_callback_Test::TestBody() /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:780:18 (libxul.so+0x478b2ae)
    #4 HandleExceptionsInMethodIfSupported<testing::Test, void> /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x55f686e) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #5 testing::Test::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2773:5 (libxul.so+0x55f686e)
    #6 testing::TestInfo::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2919:11 (libxul.so+0x55f84b5) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #7 testing::TestSuite::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3097:30 (libxul.so+0x55f9d44) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #8 testing::internal::UnitTestImpl::RunAllTests() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:6088:44 (libxul.so+0x5618539) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #9 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x5617743) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #10 testing::UnitTest::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5629:10 (libxul.so+0x5617743)
    #11 RUN_ALL_TESTS /builds/worker/workspace/obj-build/dist/include/gtest/gtest.h:2347:73 (libxul.so+0x55c7f51) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #12 mozilla::RunGTestFunc(int*, char**) /builds/worker/checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:264:10 (libxul.so+0x55c7f51)
    #13 XREMain::XRE_mainStartup(bool*) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5136:16 (libxul.so+0xeb92a70) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #14 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6549:12 (libxul.so+0xeb9d38b) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #15 XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6647:21 (libxul.so+0xeb9dd0e) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #16 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/workspace/obj-build/toolkit/xre/./../../../../checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xebadeb2) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #17 do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:271:22 (firefox-bin+0x14c810) (BuildId: dff90fca1f06dbf65917987116b16b804cdb6c79)
    #18 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:542:16 (firefox-bin+0x14c810)
  Thread T545 (tid=2773, running) created by main thread at:
    #0 pthread_create /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1082:3 (firefox-bin+0xc930a) (BuildId: dff90fca1f06dbf65917987116b16b804cdb6c79)
    #1 std::thread::_M_start_thread(std::shared_ptr<std::thread::_Impl_base>, void (*)()) <null> (libstdc++.so.6+0xed0b8) (BuildId: ca77dae775ec87540acd7218fa990c40d1c94ab1)
    #2 thread<(lambda at /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:789:15), void> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/thread:149:2 (libxul.so+0x478b3a5) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #3 cubeb_stop_stream_with_erroring_callback_Test::TestBody() /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:789:3 (libxul.so+0x478b3a5)
    #4 HandleExceptionsInMethodIfSupported<testing::Test, void> /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x55f686e) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #5 testing::Test::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2773:5 (libxul.so+0x55f686e)
    #6 testing::TestInfo::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2919:11 (libxul.so+0x55f84b5) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #7 testing::TestSuite::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3097:30 (libxul.so+0x55f9d44) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #8 testing::internal::UnitTestImpl::RunAllTests() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:6088:44 (libxul.so+0x5618539) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #9 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x5617743) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #10 testing::UnitTest::Run() /builds/worker/checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5629:10 (libxul.so+0x5617743)
    #11 RUN_ALL_TESTS /builds/worker/workspace/obj-build/dist/include/gtest/gtest.h:2347:73 (libxul.so+0x55c7f51) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #12 mozilla::RunGTestFunc(int*, char**) /builds/worker/checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:264:10 (libxul.so+0x55c7f51)
    #13 XREMain::XRE_mainStartup(bool*) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5136:16 (libxul.so+0xeb92a70) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #14 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6549:12 (libxul.so+0xeb9d38b) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #15 XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6647:21 (libxul.so+0xeb9dd0e) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #16 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/workspace/obj-build/toolkit/xre/./../../../../checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xebadeb2) (BuildId: 4eef73d414b5a2f303c9a4bfe3f8f7669f5ce34f)
    #17 do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:271:22 (firefox-bin+0x14c810) (BuildId: dff90fca1f06dbf65917987116b16b804cdb6c79)
    #18 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:542:16 (firefox-bin+0x14c810)
SUMMARY: ThreadSanitizer: data race /builds/worker/checkouts/gecko/media/libcubeb/test/test_sanity.cpp:730:8 in ~erroring_callback_state
See Also: → 2072475

Superseded by bug 2072475.

No longer blocks: 1831033, clang-23
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Duplicate of bug: 2072475
Resolution: --- → DUPLICATE
See Also: 2072475 →
You need to log in before you can comment on or make changes to this bug.