Closed Bug 1391895 Opened 6 years ago Closed 4 years ago

Intermittent LeakSanitizer | leak at NewPage, Push, mozilla::EventQueue::PutEvent, mozilla::ThreadEventQueue

Categories

(Core :: General, defect, P5)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure, memory-leak, Whiteboard: [stockwell fixed:product])

27 failures in 5 days on linux64-asan.  

here is a log file:
https://treeherder.mozilla.org/logviewer.html#?repo=mozilla-inbound&job_id=124424594&lineNumber=5361


and some leak information from the log file:
[task 2017-08-20T22:59:14.261717Z] 22:59:14    ERROR - GECKO(3264) | ==3264==ERROR: LeakSanitizer: detected memory leaks
[task 2017-08-20T22:59:14.262057Z] 22:59:14     INFO - GECKO(3264) | Direct leak of 72 byte(s) in 1 object(s) allocated from:
[task 2017-08-20T22:59:14.265194Z] 22:59:14     INFO - GECKO(3264) |     #0 0x4bba1c in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:64:3
[task 2017-08-20T22:59:14.270998Z] 22:59:14     INFO - GECKO(3264) |     #1 0x4ecf3d in moz_xmalloc /home/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:83:17
[task 2017-08-20T22:59:14.274228Z] 22:59:14     INFO - GECKO(3264) |     #2 0x7fd4fa05dab1 in operator new /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:200:12
[task 2017-08-20T22:59:14.278267Z] 22:59:14     INFO - GECKO(3264) |     #3 0x7fd4fa05dab1 in NewRunnableMethod<mozilla::LazyIdleThread *, void (mozilla::LazyIdleThread::*)()> /home/worker/workspace/build/src/obj-firefox/dist/include/nsThreadUtils.h:1391
[task 2017-08-20T22:59:14.281836Z] 22:59:14     INFO - GECKO(3264) |     #4 0x7fd4fa05dab1 in mozilla::LazyIdleThread::ShutdownThread() /home/worker/workspace/build/src/xpcom/threads/LazyIdleThread.cpp:282
[task 2017-08-20T22:59:14.288317Z] 22:59:14     INFO - GECKO(3264) |     #5 0x7fd4fa05c4df in mozilla::LazyIdleThread::Shutdown() /home/worker/workspace/build/src/xpcom/threads/LazyIdleThread.cpp:489:17
[task 2017-08-20T22:59:14.291131Z] 22:59:14     INFO - GECKO(3264) |     #6 0x7fd4ff784363 in mozilla::dom::quota::QuotaManager::Shutdown() /home/worker/workspace/build/src/dom/quota/ActorsParent.cpp:3670:7
[task 2017-08-20T22:59:14.296438Z] 22:59:14     INFO - GECKO(3264) | Indirect leak of 2048 byte(s) in 1 object(s) allocated from:
[task 2017-08-20T22:59:14.300982Z] 22:59:14     INFO - GECKO(3264) |     #0 0x4bbc03 in calloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:72:3
[task 2017-08-20T22:59:14.304712Z] 22:59:14     INFO - GECKO(3264) |     #1 0x4ed0b1 in moz_xcalloc /home/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:94:17
[task 2017-08-20T22:59:14.309122Z] 22:59:14     INFO - GECKO(3264) |     #2 0x7fd4fa057de2 in NewPage /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/Queue.h:176:31
[task 2017-08-20T22:59:14.331744Z] 22:59:14     INFO - GECKO(3264) |     #3 0x7fd4fa057de2 in Push /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/Queue.h:38
[task 2017-08-20T22:59:14.339406Z] 22:59:14     INFO - GECKO(3264) |     #4 0x7fd4fa057de2 in mozilla::EventQueue::PutEvent(already_AddRefed<nsIRunnable>&&, mozilla::EventPriority, mozilla::BaseAutoLock<mozilla::Mutex> const&) /home/worker/workspace/build/src/xpcom/threads/EventQueue.cpp:21
[task 2017-08-20T22:59:14.342743Z] 22:59:14     INFO - GECKO(3264) |     #5 0x7fd4fa06a794 in mozilla::ThreadEventQueue<mozilla::EventQueue>::PutEventInternal(already_AddRefed<nsIRunnable>&&, mozilla::EventPriority, mozilla::ThreadEventQueue<mozilla::EventQueue>::NestedSink*) /home/worker/workspace/build/src/xpcom/threads/ThreadEventQueue.cpp:98:19
[task 2017-08-20T22:59:14.347524Z] 22:59:14     INFO - GECKO(3264) |     #6 0x7fd4fa07af9d in mozilla::ThreadEventTarget::Dispatch(already_AddRefed<nsIRunnable>, unsigned int) /home/worker/workspace/build/src/xpcom/threads/ThreadEventTarget.cpp:178:15
[task 2017-08-20T22:59:14.351301Z] 22:59:14     INFO - GECKO(3264) | Indirect leak of 184 byte(s) in 1 object(s) allocated from:
[task 2017-08-20T22:59:14.353383Z] 22:59:14     INFO - GECKO(3264) |     #0 0x4bba1c in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:64:3
[task 2017-08-20T22:59:14.355479Z] 22:59:14     INFO - GECKO(3264) |     #1 0x4ecf3d in moz_xmalloc /home/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:83:17
[task 2017-08-20T22:59:14.361016Z] 22:59:14     INFO - GECKO(3264) |     #2 0x7fd4ff781615 in operator new /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:200:12
[task 2017-08-20T22:59:14.366224Z] 22:59:14     INFO - GECKO(3264) |     #3 0x7fd4ff781615 in mozilla::dom::quota::QuotaManager::Init(nsAString const&) /home/worker/workspace/build/src/dom/quota/ActorsParent.cpp:3597
[task 2017-08-20T22:59:14.368346Z] 22:59:14     INFO - GECKO(3264) |     #4 0x7fd4ff780913 in mozilla::dom::quota::QuotaManager::CreateRunnable::CreateManager() /home/worker/workspace/build/src/dom/quota/ActorsParent.cpp:2644:27
[task 2017-08-20T22:59:14.370705Z] 22:59:14     INFO - GECKO(3264) |     #5 0x7fd4ff7837ba in mozilla::dom::quota::QuotaManager::CreateRunnable::Run() /home/worker/workspace/build/src/dom/quota/ActorsParent.cpp:2768:12
[task 2017-08-20T22:59:14.377357Z] 22:59:14     INFO - GECKO(3264) | Indirect leak of 176 byte(s) in 1 object(s) allocated from:
[task 2017-08-20T22:59:14.379421Z] 22:59:14     INFO - GECKO(3264) |     #0 0x4bba1c in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:64:3
[task 2017-08-20T22:59:14.381411Z] 22:59:14     INFO - GECKO(3264) |     #1 0x4ecf3d in moz_xmalloc /home/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:83:17
[task 2017-08-20T22:59:14.384533Z] 22:59:14     INFO - GECKO(3264) |     #2 0x7fd4fa093762 in operator new /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:200:12
[task 2017-08-20T22:59:14.387192Z] 22:59:14     INFO - GECKO(3264) |     #3 0x7fd4fa093762 in nsThreadManager::NewNamedThread(nsACString const&, unsigned int, nsIThread**) /home/worker/workspace/build/src/xpcom/threads/nsThreadManager.cpp:294
[task 2017-08-20T22:59:14.391847Z] 22:59:14     INFO - GECKO(3264) |     #4 0x7fd4fa0973c3 in NS_NewNamedThread(nsACString const&, nsIThread**, nsIRunnable*, unsigned int) /home/worker/workspace/build/src/xpcom/threads/nsThreadUtils.cpp:145:45
[task 2017-08-20T22:59:14.397004Z] 22:59:14     INFO - GECKO(3264) |     #5 0x7fd4fadf9955 in NS_NewNamedThread<16> /home/worker/workspace/build/src/obj-firefox/dist/include/nsThreadUtils.h:72:10
[task 2017-08-20T22:59:14.399123Z] 22:59:14     INFO - GECKO(3264) |     #6 0x7fd4fadf9955 in (anonymous namespace)::ParentImpl::CreateBackgroundThread() /home/worker/workspace/build/src/ipc/glue/BackgroundImpl.cpp:1053
[task 2017-08-20T22:59:14.401232Z] 22:59:14     INFO - GECKO(3264) | Indirect leak of 144 byte(s) in 1 object(s) allocated from:
[task 2017-08-20T22:59:14.403580Z] 22:59:14     INFO - GECKO(3264) |     #0 0x4bba1c in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:64:3
[task 2017-08-20T22:59:14.405880Z] 22:59:14     INFO - GECKO(3264) |     #1 0x4ecf3d in moz_xmalloc /home/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:83:17
[task 2017-08-20T22:59:14.411417Z] 22:59:14     INFO - GECKO(3264) |     #2 0x7fd4fa0936a9 in operator new /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:200:12
[task 2017-08-20T22:59:14.414509Z] 22:59:14     INFO - GECKO(3264) |     #3 0x7fd4fa0936a9 in nsThreadManager::NewNamedThread(nsACString const&, unsigned int, nsIThread**) /home/worker/workspace/build/src/xpcom/threads/nsThreadManager.cpp:293
[task 2017-08-20T22:59:14.416701Z] 22:59:14     INFO - GECKO(3264) |     #4 0x7fd4fa0973c3 in NS_NewNamedThread(nsACString const&, nsIThread**, nsIRunnable*, unsigned int) /home/worker/workspace/build/src/xpcom/threads/nsThreadUtils.cpp:145:45
[task 2017-08-20T22:59:14.418727Z] 22:59:14     INFO - GECKO(3264) |     #5 0x7fd4fadf9955 in NS_NewNamedThread<16> /home/worker/workspace/build/src/obj-firefox/dist/include/nsThreadUtils.h:72:10
[task 2017-08-20T22:59:14.420850Z] 22:59:14     INFO - GECKO(3264) |     #6 0x7fd4fadf9955 in (anonymous namespace)::ParentImpl::CreateBackgroundThread() /home/worker/workspace/build/src/ipc/glue/BackgroundImpl.cpp:1053
[task 2017-08-20T22:59:14.422781Z] 22:59:14     INFO - GECKO(3264) | Indirect leak of 48 byte(s) in 1 object(s) allocated from:
[task 2017-08-20T22:59:14.424955Z] 22:59:14     INFO - GECKO(3264) |     #0 0x4bba1c in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:64:3
[task 2017-08-20T22:59:14.427215Z] 22:59:14     INFO - GECKO(3264) |     #1 0x4ecf3d in moz_xmalloc /home/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:83:17
[task 2017-08-20T22:59:14.433970Z] 22:59:14     INFO - GECKO(3264) |     #2 0x7fd4fa08b051 in operator new /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:200:12
[task 2017-08-20T22:59:14.436555Z] 22:59:14     INFO - GECKO(3264) |     #3 0x7fd4fa08b051 in nsThread::nsThread(mozilla::NotNull<mozilla::SynchronizedEventQueue*>, nsThread::MainThreadFlag, unsigned int) /home/worker/workspace/build/src/xpcom/threads/nsThread.cpp:548
[task 2017-08-20T22:59:14.439870Z] 22:59:14     INFO - GECKO(3264) |     #4 0x7fd4fa09380a in nsThreadManager::NewNamedThread(nsACString const&, unsigned int, nsIThread**) /home/worker/workspace/build/src/xpcom/threads/nsThreadManager.cpp:294:30
[task 2017-08-20T22:59:14.442850Z] 22:59:14     INFO - GECKO(3264) |     #5 0x7fd4fa0973c3 in NS_NewNamedThread(nsACString const&, nsIThread**, nsIRunnable*, unsigned int) /home/worker/workspace/build/src/xpcom/threads/nsThreadUtils.cpp:145:45
[task 2017-08-20T22:59:14.444994Z] 22:59:14     INFO - GECKO(3264) | Indirect leak of 32 byte(s) in 1 object(s) allocated from:
[task 2017-08-20T22:59:14.450024Z] 22:59:14     INFO - GECKO(3264) |     #0 0x4bba1c in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:64:3
[task 2017-08-20T22:59:14.452272Z] 22:59:14     INFO - GECKO(3264) |     #1 0x4ecf3d in moz_xmalloc /home/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:83:17
[task 2017-08-20T22:59:14.459898Z] 22:59:14     INFO - GECKO(3264) |     #2 0x7fd4fa0936b6 in operator new /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:200:12
[task 2017-08-20T22:59:14.462330Z] 22:59:14     INFO - GECKO(3264) |     #3 0x7fd4fa0936b6 in MakeUnique<mozilla::EventQueue> /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/UniquePtr.h:680
[task 2017-08-20T22:59:14.474714Z] 22:59:14     INFO - GECKO(3264) |     #4 0x7fd4fa0936b6 in nsThreadManager::NewNamedThread(nsACString const&, unsigned int, nsIThread**) /home/worker/workspace/build/src/xpcom/threads/nsThreadManager.cpp:293
[task 2017-08-20T22:59:14.476982Z] 22:59:14     INFO - GECKO(3264) |     #5 0x7fd4fa0973c3 in NS_NewNamedThread(nsACString const&, nsIThread**, nsIRunnable*, unsigned int) /home/worker/workspace/build/src/xpcom/threads/nsThreadUtils.cpp:145:45
[task 2017-08-20T22:59:14.479138Z] 22:59:14     INFO - GECKO(3264) |     #6 0x7fd4fadf9955 in NS_NewNamedThread<16> /home/worker/workspace/build/src/obj-firefox/dist/include/nsThreadUtils.h:72:10
[task 2017-08-20T22:59:14.481758Z] 22:59:14     INFO - GECKO(3264) |     #7 0x7fd4fadf9955 in (anonymous namespace)::ParentImpl::Create
BackgroundThread() /home/worker/workspace/build/src/ipc/glue/BackgroundImpl.cpp:1053
[task 2017-08-20T22:59:14.484119Z] 22:59:14     INFO - GECKO(3264) | -----------------------------------------------------
[task 2017-08-20T22:59:14.486354Z] 22:59:14     INFO - GECKO(3264) | Suppressions used:
[task 2017-08-20T22:59:14.488544Z] 22:59:14     INFO - GECKO(3264) |   count      bytes template
[task 2017-08-20T22:59:14.490678Z] 22:59:14     INFO - GECKO(3264) |     711      22664 nsComponentManagerImpl
[task 2017-08-20T22:59:14.493047Z] 22:59:14     INFO - GECKO(3264) |      48       7680 mozJSComponentLoader::LoadModule
[task 2017-08-20T22:59:14.495139Z] 22:59:14     INFO - GECKO(3264) |       1        384 pixman_implementation_lookup_composite


I see :billm worked on LazyIdleThread.cpp, possibly he would know some next steps... ?
Flags: needinfo?(wmccloskey)
Whiteboard: [stockwell needswork]
it looks like :asuth will be working on bug 1392755 this week, lets see if that gets resolved easily and helps this out.
This might get fixed in bug 1392755.
Flags: needinfo?(wmccloskey)
this looks to be fixed!
Whiteboard: [stockwell needswork] → [stockwell fixed:product]
Keywords: mlk
https://wiki.mozilla.org/Bugmasters#Intermittent_Test_Failure_Cleanup
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE

Recent log failure: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=227141973&repo=mozilla-inbound&lineNumber=261233

[task 2019-02-08T12:13:35.182Z] 12:13:35 INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at NewPage, Push, mozilla::EventQueue::PutEvent, mozilla::ThreadEventQueue
[task 2019-02-08T12:13:35.183Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at mozilla::dom::RTCRtpReceiverJSImpl::ProcessTrackAdditionsAndRemovals, ProcessTrackAdditionsAndRemovals, mozilla::dom::RTCRtpReceiver_Binding::processTrackAdditionsAndRemovals, js_arena_malloc
[task 2019-02-08T12:13:35.184Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame mozilla::dom::RTCRtpReceiverJSImpl::ProcessTrackAdditionsAndRemovals matched a expected leak
[task 2019-02-08T12:13:35.184Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at js::frontend::Parser, js_arena_malloc, js_pod_arena_malloc, maybe_pod_malloc
[task 2019-02-08T12:13:35.185Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame js::frontend::Parser matched a expected leak
[task 2019-02-08T12:13:35.186Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at JSScript::createPrivateScriptData, JSScript::fullyInitFromEmitter, js::frontend::BytecodeEmitter::emitFunctionScript, js::frontend::BytecodeEmitter::emitFunction
[task 2019-02-08T12:13:35.186Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame JSScript::createPrivateScriptData matched a expected leak
[task 2019-02-08T12:13:35.188Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at EntrySlotOrCreate, EntrySlotOrCreate, mozilla::dom::MatchPatternSet_Binding::CreateInterfaceObjects, mozilla::dom::GetPerInterfaceObjectHandle
[task 2019-02-08T12:13:35.188Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame EntrySlotOrCreate matched a expected leak
[task 2019-02-08T12:13:35.190Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at EntrySlotOrCreate, EntrySlotOrCreate, mozilla::dom::WebExtensionPolicy_Binding::CreateInterfaceObjects, mozilla::dom::GetPerInterfaceObjectHandle
[task 2019-02-08T12:13:35.190Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame EntrySlotOrCreate matched a expected leak
[task 2019-02-08T12:13:35.191Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js::ExecuteInJSMEnvironment, js::ExecuteInJSMEnvironment, mozJSComponentLoader::ObjectForLocation
[task 2019-02-08T12:13:35.192Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2019-02-08T12:13:35.193Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, js_arena_malloc, js_pod_arena_malloc
[task 2019-02-08T12:13:35.193Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame Alloc matched a expected leak
[task 2019-02-08T12:13:35.194Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, maybe_pod_malloc, Interpret
[task 2019-02-08T12:13:35.195Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2019-02-08T12:13:35.195Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_realloc, js_arena_malloc, js_pod_arena_malloc, maybe_pod_malloc
[task 2019-02-08T12:13:35.196Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame js_arena_realloc matched a expected leak
[task 2019-02-08T12:13:35.197Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at emitStatementList, js::frontend::BytecodeEmitter::emitTree, js::frontend::BytecodeEmitter::emitScript, js::frontend::ScriptCompiler
[task 2019-02-08T12:13:35.198Z] 12:13:35 INFO - INFO | LeakSanitizer | Frame emitStatementList matched a expected leak
[task 2019-02-08T12:13:35.199Z] 12:13:35 INFO - TEST-FAIL | LeakSanitizer | leak at mozilla::WeakPtr, mozilla::GetUserMediaStreamRunnable::Run, mozilla::dom::MediaStreamTrackSource::UnregisterSink, mozilla::dom::MediaStreamTrack::Stop

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 6 years ago4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.