Closed Bug 1599480 Opened 4 years ago Closed 2 years ago

Intermittent LeakSanitizer | leak at MakeNotNull, RacyRegisteredThread, RegisteredThread, MakeUnique

Categories

(Core :: Gecko Profiler, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr91 --- wontfix
firefox97 --- fixed
firefox98 --- fixed
firefox99 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: mozbugz)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: intermittent-failure, regression)

Filed by: btara [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=278239480&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YM6D-8j4SjW37f9l_XikAw/runs/0/artifacts/public/logs/live_backing.log


[task 2019-11-26T15:33:08.290Z] 15:33:08 INFO - TEST-START | toolkit/content/tests/widgets/test_videocontrols_onclickplay.html
[task 2019-11-26T15:33:11.432Z] 15:33:11 INFO - GECKO(5342) | MEMORY STAT | vsize 20975379MB | residentFast 1224MB
[task 2019-11-26T15:33:11.439Z] 15:33:11 INFO - TEST-OK | toolkit/content/tests/widgets/test_videocontrols_onclickplay.html | took 3153ms
[task 2019-11-26T15:33:11.498Z] 15:33:11 INFO - TEST-START | Shutdown
[task 2019-11-26T15:33:11.498Z] 15:33:11 INFO - Passed: 532
[task 2019-11-26T15:33:11.500Z] 15:33:11 INFO - Failed: 0
[task 2019-11-26T15:33:11.501Z] 15:33:11 INFO - Todo: 0
[task 2019-11-26T15:33:11.502Z] 15:33:11 INFO - Mode: non-e10s
[task 2019-11-26T15:33:11.503Z] 15:33:11 INFO - Slowest: 3153ms - chrome://mochitests/content/chrome/toolkit/content/tests/widgets/test_videocontrols_onclickplay.html
[task 2019-11-26T15:33:11.504Z] 15:33:11 INFO - SimpleTest FINISHED
[task 2019-11-26T15:33:11.504Z] 15:33:11 INFO - TEST-INFO | Ran 1 Loops
[task 2019-11-26T15:33:11.505Z] 15:33:11 INFO - SimpleTest FINISHED
[task 2019-11-26T15:33:11.917Z] 15:33:11 INFO - GECKO(5342) | 1574782391906 Marionette TRACE Received observer notification xpcom-will-shutdown
[task 2019-11-26T15:33:11.920Z] 15:33:11 INFO - GECKO(5342) | 1574782391906 Marionette INFO Stopped listening on port 2828
[task 2019-11-26T15:33:11.924Z] 15:33:11 INFO - GECKO(5342) | 1574782391906 Marionette DEBUG Marionette stopped listening
[task 2019-11-26T15:33:14.604Z] 15:33:14 INFO - GECKO(5342) | =================================================================
[task 2019-11-26T15:33:14.605Z] 15:33:14 ERROR - GECKO(5342) | ==5342==ERROR: LeakSanitizer: detected memory leaks
[task 2019-11-26T15:33:14.606Z] 15:33:14 INFO - GECKO(5342) | Direct leak of 32 byte(s) in 1 object(s) allocated from:
[task 2019-11-26T15:33:14.607Z] 15:33:14 INFO - GECKO(5342) | #0 0x55f789ef5cfd in malloc /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:145:3
[task 2019-11-26T15:33:14.607Z] 15:33:14 INFO - GECKO(5342) | #1 0x55f789f2b4ad in moz_xmalloc /builds/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:52:15
[task 2019-11-26T15:33:14.608Z] 15:33:14 INFO - GECKO(5342) | #2 0x7f879bb59695 in operator new /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/cxxalloc.h:33:10
[task 2019-11-26T15:33:14.609Z] 15:33:14 INFO - GECKO(5342) | #3 0x7f879bb59695 in MakeNotNull<RefPtr<mozilla::ProfilingStackOwner>> /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/NotNull.h:195:21
[task 2019-11-26T15:33:14.609Z] 15:33:14 INFO - GECKO(5342) | #4 0x7f879bb59695 in RacyRegisteredThread /builds/worker/workspace/build/src/tools/profiler/core/RegisteredThread.h:28:13
[task 2019-11-26T15:33:14.609Z] 15:33:14 INFO - GECKO(5342) | #5 0x7f879bb59695 in RegisteredThread /builds/worker/workspace/build/src/tools/profiler/core/RegisteredThread.cpp:11:7
[task 2019-11-26T15:33:14.609Z] 15:33:14 INFO - GECKO(5342) | #6 0x7f879bb59695 in MakeUnique<RegisteredThread, RefPtr<ThreadInfo> &, nsIThread , void &> /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/UniquePtr.h:617:27
[task 2019-11-26T15:33:14.610Z] 15:33:14 INFO - GECKO(5342) | #7 0x7f879bb59695 in locked_register_thread(PSAutoLock const&, char const
, void
) /builds/worker/workspace/build/src/tools/profiler/core/platform.cpp:3364:50
[task 2019-11-26T15:33:14.610Z] 15:33:14 INFO - GECKO(5342) | #8 0x7f879bb67f56 in profiler_register_thread(char const*, void*) /builds/worker/workspace/build/src/tools/profiler/core/platform.cpp:4440:10
[task 2019-11-26T15:33:14.611Z] 15:33:14 INFO - GECKO(5342) | #9 0x7f8796b8fbc7 in operator() /builds/worker/workspace/build/src/dom/media/CubebUtils.cpp:497:7
[task 2019-11-26T15:33:14.611Z] 15:33:14 INFO - GECKO(5342) | #10 0x7f8796b8fbc7 in mozilla::CubebUtils::GetCubebContextUnlocked()::$2::__invoke(char const*) /builds/worker/workspace/build/src/dom/media/CubebUtils.cpp:496:40
[task 2019-11-26T15:33:14.612Z] 15:33:14 INFO - GECKO(5342) | #11 0x7f879e679c3e in audioipc_client::context::register_thread::h302ea5004d3f845a /builds/worker/workspace/build/src/media/audioipc/client/src/context.rs:110:8
[task 2019-11-26T15:33:14.613Z] 15:33:14 INFO - GECKO(5342) | #12 0x7f879e679941 in audioipc_client::context::promote_and_register_thread::h02c64f9a81a83717 /builds/worker/workspace/build/src/media/audioipc/client/src/context.rs:119:4
[task 2019-11-26T15:33:14.613Z] 15:33:14 INFO - GECKO(5342) | #13 0x7f879e679941 in $LT$audioipc_client..context..ClientContext$u20$as$u20$cubeb_backend..traits..ContextOps$GT$::init::$u7b$$u7b$closure$u7d$$u7d$::hf5de9551f6125195 /builds/worker/workspace/build/src/media/audioipc/client/src/context.rs:229:33
[task 2019-11-26T15:33:14.613Z] 15:33:14 INFO - GECKO(5342) | #14 0x7f879e68b5d9 in futures_cpupool::Inner::work::
$u7b$$u7b$closure$u7d$$u7d$::he7f43aedc87c486b /builds/worker/workspace/build/src/third_party/rust/futures-cpupool/src/lib.rs:253:30
[task 2019-11-26T15:33:14.613Z] 15:33:14 INFO - GECKO(5342) | #15 0x7f879e68b5d9 in core::option::Option$LT$T$GT$::map::h7abd92bca1b31913 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/option.rs:447:28
[task 2019-11-26T15:33:14.613Z] 15:33:14 INFO - GECKO(5342) | #16 0x7f879e68b5d9 in futures_cpupool::Inner::work::hd57c2831064db6b8 /builds/worker/workspace/build/src/third_party/rust/futures-cpupool/src/lib.rs:253:8
[task 2019-11-26T15:33:14.613Z] 15:33:14 INFO - GECKO(5342) | #17 0x7f879e68b5d9 in futures_cpupool::Builder::create::$u7b$$u7b$closure$u7d$$u7d$::hf0a0e8ebdcb378b2 /builds/worker/workspace/build/src/third_party/rust/futures-cpupool/src/lib.rs:427:41
[task 2019-11-26T15:33:14.613Z] 15:33:14 INFO - GECKO(5342) | #18 0x7f879e68b5d9 in std::sys_common::backtrace::__rust_begin_short_backtrace::hdcb08f3c0469f32f /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/sys_common/backtrace.rs:77:4
[task 2019-11-26T15:33:14.613Z] 15:33:14 INFO - GECKO(5342) | #19 0x7f879e68b4d9 in std::thread::Builder::spawn_unchecked::
$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::h799e795cfa88f93b /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/mod.rs:470:16
[task 2019-11-26T15:33:14.614Z] 15:33:14 INFO - GECKO(5342) | #20 0x7f879e68b4d9 in $LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h5522114dc93642a8 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panic.rs:315:8
[task 2019-11-26T15:33:14.616Z] 15:33:14 INFO - GECKO(5342) | #21 0x7f879e68b4d9 in std::panicking::try::do_call::ha114aa36137f94da /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:296:39
[task 2019-11-26T15:33:14.616Z] 15:33:14 INFO - GECKO(5342) | #22 0x7f879e68b4d9 in __rust_maybe_catch_panic /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libpanic_abort/lib.rs:28:4
[task 2019-11-26T15:33:14.617Z] 15:33:14 INFO - GECKO(5342) | #23 0x7f879e68b4d9 in std::panicking::try::he6099dc693077507 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:275:12
[task 2019-11-26T15:33:14.617Z] 15:33:14 INFO - GECKO(5342) | #24 0x7f879e68b4d9 in std::panic::catch_unwind::h924e295e2ad0ac76 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panic.rs:394:8
[task 2019-11-26T15:33:14.617Z] 15:33:14 INFO - GECKO(5342) | #25 0x7f879e68b4d9 in std::thread::Builder::spawn_unchecked::
$u7b$$u7b$closure$u7d$$u7d$::h24bfa9dd1d23e4f5 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/mod.rs:469:29
[task 2019-11-26T15:33:14.618Z] 15:33:14 INFO - GECKO(5342) | #26 0x7f879e68b4d9 in core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h58a2699b2ca9bc00 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/ops/function.rs:235:4
[task 2019-11-26T15:33:14.618Z] 15:33:14 INFO - GECKO(5342) | #27 0x7f879ed8ee4d in $LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h2877b2aefb0fd627 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787:8
[task 2019-11-26T15:33:14.619Z] 15:33:14 INFO - GECKO(5342) | #28 0x7f879ed910d7 in $LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h13f473dbcdaa0fef /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787:8
[task 2019-11-26T15:33:14.621Z] 15:33:14 INFO - GECKO(5342) | #29 0x7f879ed910d7 in std::sys_common::thread::start_thread::h562a7c4953cb1d31 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/sys_common/thread.rs:13:4
[task 2019-11-26T15:33:14.621Z] 15:33:14 INFO - GECKO(5342) | #30 0x7f879ed910d7 in std::sys::unix::thread::Thread::new::thread_start::h382c6ae14181d163 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/sys/unix/thread.rs:79:21
[task 2019-11-26T15:33:14.621Z] 15:33:14 INFO - GECKO(5342) | Direct leak of 32 byte(s) in 1 object(s) allocated from:
[task 2019-11-26T15:33:14.622Z] 15:33:14 INFO - GECKO(5342) | #0 0x55f789ef5cfd in malloc /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:145:3
[task 2019-11-26T15:33:14.622Z] 15:33:14 INFO - GECKO(5342) | #1 0x55f789f2b4ad in moz_xmalloc /builds/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:52:15
[task 2019-11-26T15:33:14.626Z] 15:33:14 INFO - GECKO(5342) | #2 0x7f879bb59695 in operator new /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/cxxalloc.h:33:10
[task 2019-11-26T15:33:14.626Z] 15:33:14 INFO - GECKO(5342) | #3 0x7f879bb59695 in MakeNotNull<RefPtr<mozilla::ProfilingStackOwner>> /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/NotNull.h:195:21
[task 2019-11-26T15:33:14.627Z] 15:33:14 INFO - GECKO(5342) | #4 0x7f879bb59695 in RacyRegisteredThread /builds/worker/workspace/build/src/tools/profiler/core/RegisteredThread.h:28:13
[task 2019-11-26T15:33:14.627Z] 15:33:14 INFO - GECKO(5342) | #5 0x7f879bb59695 in RegisteredThread /builds/worker/workspace/build/src/tools/profiler/core/RegisteredThread.cpp:11:7
[task 2019-11-26T15:33:14.628Z] 15:33:14 INFO - GECKO(5342) | #6 0x7f879bb59695 in MakeUnique<RegisteredThread, RefPtr<ThreadInfo> &, nsIThread , void &> /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/UniquePtr.h:617:27
[task 2019-11-26T15:33:14.628Z] 15:33:14 INFO - GECKO(5342) | #7 0x7f879bb59695 in locked_register_thread(PSAutoLock const&, char const
, void
) /builds/worker/workspace/build/src/tools/profiler/core/platform.cpp:3364:50
[task 2019-11-26T15:33:14.629Z] 15:33:14 INFO - GECKO(5342) | #8 0x7f879bb67f56 in profiler_register_thread(char const*, void*) /builds/worker/workspace/build/src/tools/profiler/core/platform.cpp:4440:10
[task 2019-11-26T15:33:14.629Z] 15:33:14 INFO - GECKO(5342) | #9 0x7f8796b8fbc7 in operator() /builds/worker/workspace/build/src/dom/media/CubebUtils.cpp:497:7
[task 2019-11-26T15:33:14.630Z] 15:33:14 INFO - GECKO(5342) | #10 0x7f8796b8fbc7 in mozilla::CubebUtils::GetCubebContextUnlocked()::$2::__invoke(char const*) /builds/worker/workspace/build/src/dom/media/CubebUtils.cpp:496:40
[task 2019-11-26T15:33:14.630Z] 15:33:14 INFO - GECKO(5342) | #11 0x7f879e679c3e in audioipc_client::context::register_thread::h302ea5004d3f845a /builds/worker/workspace/build/src/media/audioipc/client/src/context.rs:110:8
[task 2019-11-26T15:33:14.637Z] 15:33:14 INFO - GECKO(5342) | #12 0x7f879e681301 in $LT$audioipc_client..context..ClientContext$u20$as$u20$cubeb_backend..traits..ContextOps$GT$::init::$u7b$$u7b$closure$u7d$$u7d$::h2361bfb83c3ee4d6 /builds/worker/workspace/build/src/media/audioipc/client/src/context.rs:207:12
[task 2019-11-26T15:33:14.638Z] 15:33:14 INFO - GECKO(5342) | #13 0x7f879e681301 in audioipc::core::spawn_thread::
$u7b$$u7b$closure$u7d$$u7d$::
$u7b$$u7b$closure$u7d$$u7d$::h4b0fefad4f3f63b4 /builds/worker/workspace/build/src/media/audioipc/audioipc/src/core.rs:61:20
[task 2019-11-26T15:33:14.638Z] 15:33:14 INFO - GECKO(5342) | #14 0x7f879e681301 in futures::future::lazy::Lazy$LT$F$C$R$GT$::get::he8a518a8bb68d976 /builds/worker/workspace/build/src/third_party/rust/futures/src/future/lazy.rs:64:58
[task 2019-11-26T15:33:14.639Z] 15:33:14 INFO - GECKO(5342) | #15 0x7f879e681301 in $LT$futures..future..lazy..Lazy$LT$F$C$R$GT$$u20$as$u20$futures..future..Future$GT$::poll::hab11008eb8f92c7c /builds/worker/workspace/build/src/third_party/rust/futures/src/future/lazy.rs:82:8
[task 2019-11-26T15:33:14.639Z] 15:33:14 INFO - GECKO(5342) | #16 0x7f879e67e39f in $LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$futures..future..Future$GT$::poll::had4997c63d9b5742 /builds/worker/workspace/build/src/third_party/rust/futures/src/future/mod.rs:113:12
[task 2019-11-26T15:33:14.640Z] 15:33:14 INFO - GECKO(5342) | #17 0x7f879e67e39f in futures::task_impl::Spawn$LT$T$GT$::poll_future_notify::
$u7b$$u7b$closure$u7d$$u7d$::h92c2ca66e4ce1418 /builds/worker/workspace/build/src/third_party/rust/futures/src/task_impl/mod.rs:289:53
[task 2019-11-26T15:33:14.640Z] 15:33:14 INFO - GECKO(5342) | #18 0x7f879e67e39f in futures::task_impl::Spawn$LT$T$GT$::enter::
$u7b$$u7b$closure$u7d$$u7d$::h8c37b1a6312af3c6 /builds/worker/workspace/build/src/third_party/rust/futures/src/task_impl/mod.rs:363:26
[task 2019-11-26T15:33:14.641Z] 15:33:14 INFO - GECKO(5342) | #19 0x7f879e67e39f in futures::task_impl::std::set::h55f9d46be1e94e47 /builds/worker/workspace/build/src/third_party/rust/futures/src/task_impl/std/mod.rs:78:12
[task 2019-11-26T15:33:14.641Z] 15:33:14 INFO - GECKO(5342) | #20 0x7f879e67e39f in futures::task_impl::Spawn$LT$T$GT$::enter::h182ec13ee9328e1d /builds/worker/workspace/build/src/third_party/rust/futures/src/task_impl/mod.rs:363:8
[task 2019-11-26T15:33:14.642Z] 15:33:14 INFO - GECKO(5342) | #21 0x7f879e67e39f in futures::task_impl::Spawn$LT$T$GT$::poll_future_notify::he5b412ef2689be41 /builds/worker/workspace/build/src/third_party/rust/futures/src/task_impl/mod.rs:289:8
[task 2019-11-26T15:33:14.642Z] 15:33:14 INFO - GECKO(5342) | #22 0x7f879e67e39f in tokio_current_thread::scheduler::Scheduled$LT$U$GT$::tick::ha8467f42283134d6 /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/scheduler.rs:351:24
[task 2019-11-26T15:33:14.642Z] 15:33:14 INFO - GECKO(5342) | #23 0x7f879e67e39f in tokio_current_thread::scheduler::Scheduler$LT$U$GT$::tick::
$u7b$$u7b$closure$u7d$$u7d$::hdd0474341fb8b897 /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/scheduler.rs:330:46
[task 2019-11-26T15:33:14.643Z] 15:33:14 INFO - GECKO(5342) | #24 0x7f879e67e39f in tokio_current_thread::Borrow$LT$U$GT$::enter::
$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::h1b26d45cd46d7af8 /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/lib.rs:788:39
[task 2019-11-26T15:33:14.644Z] 15:33:14 INFO - GECKO(5342) | #25 0x7f879e67e39f in tokio_current_thread::CurrentRunner::set_spawn::h7b45fbd39e9407fd /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/lib.rs:825:8
[task 2019-11-26T15:33:14.645Z] 15:33:14 INFO - GECKO(5342) | #26 0x7f879e67e39f in tokio_current_thread::Borrow$LT$U$GT$::enter::
$u7b$$u7b$closure$u7d$$u7d$::h191b4481bfa1f548 /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/lib.rs:788:12
[task 2019-11-26T15:33:14.645Z] 15:33:14 INFO - GECKO(5342) | #27 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::try_with::h45eb2cf1af93d9c0 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:262:15
[task 2019-11-26T15:33:14.646Z] 15:33:14 INFO - GECKO(5342) | #28 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::with::hc9b545fc8b17b39a /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:239:8
[task 2019-11-26T15:33:14.646Z] 15:33:14 INFO - GECKO(5342) | #29 0x7f879e67e39f in tokio_current_thread::Borrow$LT$U$GT$::enter::h35ccc038ea8f9ed8 /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/lib.rs:786:8
[task 2019-11-26T15:33:14.646Z] 15:33:14 INFO - GECKO(5342) | #30 0x7f879e67e39f in tokio_current_thread::scheduler::Scheduler$LT$U$GT$::tick::hc5f59697e737c106 /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/scheduler.rs:330:23
[task 2019-11-26T15:33:14.655Z] 15:33:14 INFO - GECKO(5342) | #31 0x7f879e67e39f in tokio_current_thread::Entered$LT$P$GT$::tick::ha6cfb81c78a5744c /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/lib.rs:612:8
[task 2019-11-26T15:33:14.655Z] 15:33:14 INFO - GECKO(5342) | #32 0x7f879e67e39f in tokio_current_thread::Entered$LT$P$GT$::block_on::hffdff3be9a824128 /builds/worker/workspace/build/src/third_party/rust/tokio-current-thread/src/lib.rs:502:12
[task 2019-11-26T15:33:14.656Z] 15:33:14 INFO - GECKO(5342) | #33 0x7f879e67e39f in tokio::runtime::current_thread::runtime::Runtime::block_on::$u7b$$u7b$closure$u7d$$u7d$::hadbe9215cb81b8eb /builds/worker/workspace/build/src/third_party/rust/tokio/src/runtime/current_thread/runtime.rs:187:22
[task 2019-11-26T15:33:14.656Z] 15:33:14 INFO - GECKO(5342) | #34 0x7f879e67e39f in tokio::runtime::current_thread::runtime::Runtime::enter::
$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::hf6ec008f58c88448 /builds/worker/workspace/build/src/third_party/rust/tokio/src/runtime/current_thread/runtime.rs:228:24
[task 2019-11-26T15:33:14.659Z] 15:33:14 INFO - GECKO(5342) | #35 0x7f879e67e39f in tokio_executor::global::with_default::
$u7b$$u7b$closure$u7d$$u7d$::h038d389b1e0e78ae /builds/worker/workspace/build/src/third_party/rust/tokio-executor/src/global.rs:209:8
[task 2019-11-26T15:33:14.659Z] 15:33:14 INFO - GECKO(5342) | #36 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::try_with::h594b39c5d55d943a /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:262:15
[task 2019-11-26T15:33:14.659Z] 15:33:14 INFO - GECKO(5342) | #37 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::with::h6583c3333ba9ce52 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:239:8
[task 2019-11-26T15:33:14.660Z] 15:33:14 INFO - GECKO(5342) | #38 0x7f879e67e39f in tokio_executor::global::with_default::h5daed15ef8761a63 /builds/worker/workspace/build/src/third_party/rust/tokio-executor/src/global.rs:178:4
[task 2019-11-26T15:33:14.660Z] 15:33:14 INFO - GECKO(5342) | #39 0x7f879e67e39f in tokio::runtime::current_thread::runtime::Runtime::enter::$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::h516475121caafc19 /builds/worker/workspace/build/src/third_party/rust/tokio/src/runtime/current_thread/runtime.rs:226:20
[task 2019-11-26T15:33:14.661Z] 15:33:14 INFO - GECKO(5342) | #40 0x7f879e67e39f in tokio_timer::timer::handle::with_default::
$u7b$$u7b$closure$u7d$$u7d$::hcd8b4e38149e110d /builds/worker/workspace/build/src/third_party/rust/tokio-timer/src/timer/handle.rs:101:8
[task 2019-11-26T15:33:14.661Z] 15:33:14 INFO - GECKO(5342) | #41 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::try_with::hc5f08f9efb46f99e /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:262:15
[task 2019-11-26T15:33:14.661Z] 15:33:14 INFO - GECKO(5342) | #42 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::with::h24a758328132035e /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:239:8
[task 2019-11-26T15:33:14.662Z] 15:33:14 INFO - GECKO(5342) | #43 0x7f879e67e39f in tokio_timer::timer::handle::with_default::hdf8e19314bb6d5c1 /builds/worker/workspace/build/src/third_party/rust/tokio-timer/src/timer/handle.rs:84:4
[task 2019-11-26T15:33:14.662Z] 15:33:14 INFO - GECKO(5342) | #44 0x7f879e67e39f in tokio::runtime::current_thread::runtime::Runtime::enter::$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::h545693f16b84eb2c /builds/worker/workspace/build/src/third_party/rust/tokio/src/runtime/current_thread/runtime.rs:219:16
[task 2019-11-26T15:33:14.663Z] 15:33:14 INFO - GECKO(5342) | #45 0x7f879e67e39f in tokio_timer::clock::clock::with_default::$u7b$$u7b$closure$u7d$$u7d$::h4ecd261befe5a76a /builds/worker/workspace/build/src/third_party/rust/tokio-timer/src/clock/clock.rs:137:8
[task 2019-11-26T15:33:14.663Z] 15:33:14 INFO - GECKO(5342) | #46 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::try_with::ha16cb5c0684a1d1e /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:262:15
[task 2019-11-26T15:33:14.664Z] 15:33:14 INFO - GECKO(5342) | #47 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::with::hb0d8004556350276 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:239:8
[task 2019-11-26T15:33:14.667Z] 15:33:14 INFO - GECKO(5342) | #48 0x7f879e67e39f in tokio_timer::clock::clock::with_default::h3fd790c482bdc8e0 /builds/worker/workspace/build/src/third_party/rust/tokio-timer/src/clock/clock.rs:117:4
[task 2019-11-26T15:33:14.667Z] 15:33:14 INFO - GECKO(5342) | #49 0x7f879e67e39f in tokio::runtime::current_thread::runtime::Runtime::enter::
$u7b$$u7b$closure$u7d$$u7d$::ha40c290d4279839d /builds/worker/workspace/build/src/third_party/rust/tokio/src/runtime/current_thread/runtime.rs:218:12
[task 2019-11-26T15:33:14.668Z] 15:33:14 INFO - GECKO(5342) | #50 0x7f879e67e39f in tokio_reactor::with_default::$u7b$$u7b$closure$u7d$$u7d$::he2ce41a3d9c370d6 /builds/worker/workspace/build/src/third_party/rust/tokio-reactor/src/lib.rs:231:8
[task 2019-11-26T15:33:14.668Z] 15:33:14 INFO - GECKO(5342) | #51 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::try_with::he0c26b0cc0b3a994 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:262:15
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #52 0x7f879e67e39f in std::thread::local::LocalKey$LT$T$GT$::with::h9e7719c433dd9c24 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/local.rs:239:8
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #53 0x7f879e67e39f in tokio_reactor::with_default::h486d9e08bba285b3 /builds/worker/workspace/build/src/third_party/rust/tokio-reactor/src/lib.rs:214:4
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #54 0x7f879e67e39f in tokio::runtime::current_thread::runtime::Runtime::enter::h2e4f5bb2a39e4c30 /builds/worker/workspace/build/src/third_party/rust/tokio/src/runtime/current_thread/runtime.rs:217:8
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #55 0x7f879e67e39f in tokio::runtime::current_thread::runtime::Runtime::block_on::h4cd8d8510402a6c9 /builds/worker/workspace/build/src/third_party/rust/tokio/src/runtime/current_thread/runtime.rs:185:8
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #56 0x7f879e67e39f in audioipc::core::spawn_thread::
$u7b$$u7b$closure$u7d$$u7d$::hefe846eb4bc1e220 /builds/worker/workspace/build/src/media/audioipc/audioipc/src/core.rs:65:16
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #57 0x7f879e67c297 in std::sys_common::backtrace::__rust_begin_short_backtrace::h8305a260c2734cdf /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/sys_common/backtrace.rs:77:4
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #58 0x7f879e67c1f5 in std::thread::Builder::spawn_unchecked::$u7b$$u7b$closure$u7d$$u7d$::$u7b$$u7b$closure$u7d$$u7d$::h294319c306c6f1a0 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/mod.rs:470:16
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #59 0x7f879e67c1f5 in $LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h817c0aba992671f8 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panic.rs:315:8
[task 2019-11-26T15:33:14.671Z] 15:33:14 INFO - GECKO(5342) | #60 0x7f879e67c1f5 in std::panicking::try::do_call::hb7f0b47fb5a9bbdc /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:296:39
[task 2019-11-26T15:33:14.672Z] 15:33:14 INFO - GECKO(5342) | #61 0x7f879e67c1f5 in __rust_maybe_catch_panic /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libpanic_abort/lib.rs:28:4
[task 2019-11-26T15:33:14.672Z] 15:33:14 INFO - GECKO(5342) | #62 0x7f879e67c1f5 in std::panicking::try::h5aa01c2e8324eee7 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panicking.rs:275:12
[task 2019-11-26T15:33:14.672Z] 15:33:14 INFO - GECKO(5342) | #63 0x7f879e67c1f5 in std::panic::catch_unwind::h02e4a9ca87c32f76 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/panic.rs:394:8
[task 2019-11-26T15:33:14.672Z] 15:33:14 INFO - GECKO(5342) | #64 0x7f879e67c1f5 in std::thread::Builder::spawn_unchecked::
$u7b$$u7b$closure$u7d$$u7d$::h5bb49e624dbefaf7 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/thread/mod.rs:469:29
[task 2019-11-26T15:33:14.672Z] 15:33:14 INFO - GECKO(5342) | #65 0x7f879e67c1f5 in core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h6efe706e81b1ecd3 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libcore/ops/function.rs:235:4
[task 2019-11-26T15:33:14.672Z] 15:33:14 INFO - GECKO(5342) | #66 0x7f879ed8ee4d in _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h2877b2aefb0fd627 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787:8
[task 2019-11-26T15:33:14.673Z] 15:33:14 INFO - GECKO(5342) | #67 0x7f879ed910d7 in _$LT$alloc..boxed..Box$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::h13f473dbcdaa0fef /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/liballoc/boxed.rs:787:8
[task 2019-11-26T15:33:14.673Z] 15:33:14 INFO - GECKO(5342) | #68 0x7f879ed910d7 in std::sys_common::thread::start_thread::h562a7c4953cb1d31 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/sys_common/thread.rs:13:4
[task 2019-11-26T15:33:14.673Z] 15:33:14 INFO - GECKO(5342) | #69 0x7f879ed910d7 in std::sys::unix::thread::Thread::new::thread_start::h382c6ae14181d163 /rustc/625451e376bb2e5283fc4741caa0a3e8a2ca4d54/src/libstd/sys/unix/thread.rs:79:21
[task 2019-11-26T15:33:14.673Z] 15:33:14 INFO - GECKO(5342) | -----------------------------------------------------
[task 2019-11-26T15:33:14.673Z] 15:33:14 INFO - GECKO(5342) | Suppressions used:
[task 2019-11-26T15:33:14.673Z] 15:33:14 INFO - GECKO(5342) | count bytes template
[task 2019-11-26T15:33:14.673Z] 15:33:14 INFO - GECKO(5342) | 27 816 nsComponentManagerImpl
[task 2019-11-26T15:33:14.674Z] 15:33:14 INFO - GECKO(5342) | 4 832 mozJSComponentLoader::LoadModule
[task 2019-11-26T15:33:14.675Z] 15:33:14 INFO - GECKO(5342) | 611 17509 libfontconfig.so
[task 2019-11-26T15:33:14.675Z] 15:33:14 INFO - GECKO(5342) | 1 29 libglib-2.0.so
[task 2019-11-26T15:33:14.677Z] 15:33:14 INFO - GECKO(5342) | -----------------------------------------------------
[task 2019-11-26T15:33:14.677Z] 15:33:14 INFO - GECKO(5342) | SUMMARY: AddressSanitizer: 64 byte(s) leaked in 2 allocation(s).
[task 2019-11-26T15:33:14.774Z] 15:33:14 INFO - TEST-INFO | Main app process: exit 0
[task 2019-11-26T15:33:14.775Z] 15:33:14 INFO - TEST-INFO | LeakSanitizer | To show the addresses of leaked objects add report_objects=1 to LSAN_OPTIONS
[task 2019-11-26T15:33:14.775Z] 15:33:14 INFO - TEST-INFO | LeakSanitizer | This can be done in testing/mozbase/mozrunner/mozrunner/utils.py
[task 2019-11-26T15:33:14.775Z] 15:33:14 ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at MakeNotNull, RacyRegisteredThread, RegisteredThread, MakeUnique
[task 2019-11-26T15:33:14.775Z] 15:33:14 INFO - runtests.py | Application ran for: 0:00:18.794644
[task 2019-11-26T15:33:14.776Z] 15:33:14 INFO - zombiecheck | Reading PID log: /tmp/tmpZ1yqVQpidlog
[task 2019-11-26T15:33:14.777Z] 15:33:14 INFO - ==> process 5342 launched child process 5355
[task 2019-11-26T15:33:14.777Z] 15:33:14 INFO - zombiecheck | Checking for orphan process with PID: 5355
[task 2019-11-26T15:33:14.778Z] 15:33:14 INFO - Stopping web server
[task 2019-11-26T15:33:14.785Z] 15:33:14 INFO - Stopping web socket server
[task 2019-11-26T15:33:14.805Z] 15:33:14 INFO - Stopping ssltunnel
[task 2019-11-26T15:33:14.825Z] 15:33:14 WARNING - leakcheck | refcount logging is off, so leaks can't be detected!
[task 2019-11-26T15:33:14.826Z] 15:33:14 INFO - runtests.py | Running tests: end.
[task 2019-11-26T15:33:14.841Z] 15:33:14 INFO - Buffered messages finished
[task 2019-11-26T15:33:14.841Z] 15:33:14 INFO - Running manifest: toolkit/modules/tests/chrome/chrome.ini
[task 2019-11-26T15:33:14.862Z] 15:33:14 INFO - Setting pipeline to PAUSED ...
[task 2019-11-26T15:33:14.862Z] 15:33:14 INFO - Pipeline is PREROLLING ...
[task 2019-11-26T15:33:14.862Z] 15:33:14 INFO - Pipeline is PREROLLED ...
[task 2019-11-26T15:33:14.863Z] 15:33:14 INFO - Setting pipeline to PLAYING ...
[task 2019-11-26T15:33:14.863Z] 15:33:14 INFO - New clock: GstSystemClock
[task 2019-11-26T15:33:14.899Z] 15:33:14 INFO - Got EOS from element "pipeline0".
[task 2019-11-26T15:33:14.899Z] 15:33:14 INFO - Execution ended after 33391237 ns.
[task 2019-11-26T15:33:14.899Z] 15:33:14 INFO - Setting pipeline to PAUSED ...
[task 2019-11-26T15:33:14.899Z] 15:33:14 INFO - Setting pipeline to READY ...
[task 2019-11-26T15:33:14.899Z] 15:33:14 INFO - Setting pipeline to NULL ...
[task 2019-11-26T15:33:14.900Z] 15:33:14 INFO - Freeing pipeline ...

Most probably due to bug 1445822.
The problem was that some threads (mostly from Rust, like the one in comment 0) survive the Gecko Profiler after xpcom shuts down.
So bug 1445822 added ref-counting so that the ProfilingStackOwner object would be not destroyed before the thread stopped using it.
In this case, I'm guessing some threads still live when LeakSanitizer runs.

If this becomes too annoying, some solutions could be:

  • Teach LeakSanitizer to ignore these objects.
  • Make threads use a weak pointer to ProfilingStackOwner, so that the profiler could destroy them and the threads would stop using them in this case.
Priority: P5 → P3
Regressed by: 1445822
Keywords: regression
Has Regression Range: --- → yes
Blocks: LSan

RegisteredThread was removed in bug 1722261, so I'll call this bug here effectively fixed, since 93.0a1 / 20210824094724.

Assignee: nobody → gsquelart
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.