Closed Bug 1687140 Opened 11 months ago Closed 10 months ago

Intermittent LeakSanitizer | leak at mozilla::dom::ProtoAndIfaceCache::PageTableCache::EntrySlotOrCreate, mozilla::dom::WindowGlobalChild_Binding::CreateInterfaceObjects, mozilla::dom::GetPerInterfaceObjectHandle, GetProtoObjectHandle

Categories

(Core :: DOM: Security, defect, P5)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1639376

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure)

Filed by: btara [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=326918936&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RYhIQljURk-7O4hUEp4zrA/runs/0/artifacts/public/logs/live_backing.log


...
[task 2021-01-16T22:49:29.974Z] 22:49:29     INFO - PID 1811 | -----------------------------------------------------
[task 2021-01-16T22:49:29.974Z] 22:49:29     INFO - PID 1811 | Suppressions used:
[task 2021-01-16T22:49:29.975Z] 22:49:29     INFO - PID 1811 |   count      bytes template
[task 2021-01-16T22:49:29.977Z] 22:49:29     INFO - PID 1811 |    2697     176865 libc.so
[task 2021-01-16T22:49:29.977Z] 22:49:29     INFO - PID 1811 |      14        448 nsComponentManagerImpl
[task 2021-01-16T22:49:29.977Z] 22:49:29     INFO - PID 1811 |     633      18287 libfontconfig.so
[task 2021-01-16T22:49:29.977Z] 22:49:29     INFO - PID 1811 |     668      24196 js::frontend::Parse
[task 2021-01-16T22:49:29.978Z] 22:49:29     INFO - PID 1811 |       6        175 xpc::CIGSHelper
[task 2021-01-16T22:49:29.978Z] 22:49:29     INFO - PID 1811 |     591      53738 mozJSComponentLoader
[task 2021-01-16T22:49:29.979Z] 22:49:29     INFO - PID 1811 |       6        328 mozilla::xpcom::ConstructJSMComponent
[task 2021-01-16T22:49:29.980Z] 22:49:29     INFO - PID 1811 |     140      10899 XPCWrappedNativeJSOps
[task 2021-01-16T22:49:29.980Z] 22:49:29     INFO - PID 1811 | -----------------------------------------------------
[task 2021-01-16T22:49:29.981Z] 22:49:29     INFO - PID 1811 | -----------------------------------------------------
[task 2021-01-16T22:49:29.981Z] 22:49:29     INFO - PID 1811 | Suppressions used:
[task 2021-01-16T22:49:29.982Z] 22:49:29     INFO - PID 1811 |   count      bytes template
[task 2021-01-16T22:49:29.982Z] 22:49:29     INFO - PID 1811 |      11        344 nsComponentManagerImpl
[task 2021-01-16T22:49:29.983Z] 22:49:29     INFO - PID 1811 |     633      18083 libfontconfig.so
[task 2021-01-16T22:49:29.983Z] 22:49:29     INFO - PID 1811 |       4         24 libglib-2.0.so
[task 2021-01-16T22:49:29.984Z] 22:49:29     INFO - PID 1811 |       3        624 mozJSComponentLoader
[task 2021-01-16T22:49:29.984Z] 22:49:29     INFO - PID 1811 | -----------------------------------------------------
[task 2021-01-16T22:49:29.985Z] 22:49:29     INFO - Browser exited with return code 0
[task 2021-01-16T22:49:29.985Z] 22:49:29     INFO - PROCESS LEAKS None
[task 2021-01-16T22:49:29.985Z] 22:49:29     INFO - ERROR | LeakSanitizer | SUMMARY: AddressSanitizer: 639601 byte(s) leaked in 3596 allocation(s).
[task 2021-01-16T22:49:29.986Z] 22:49:29     INFO - LeakSanitizer | To show the addresses of leaked objects add report_objects=1 to LSAN_OPTIONS
[task 2021-01-16T22:49:29.986Z] 22:49:29     INFO - This can be done in testing/mozbase/mozrunner/mozrunner/utils.py
[task 2021-01-16T22:49:29.987Z] 22:49:29     INFO - Allowed depth was 4
[task 2021-01-16T22:49:29.987Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, maybe_pod_arena_malloc, make_pod_arena_array
[task 2021-01-16T22:49:29.987Z] 22:49:29     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2021-01-16T22:49:29.988Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, maybe_pod_arena_malloc, pod_malloc
[task 2021-01-16T22:49:29.988Z] 22:49:29     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2021-01-16T22:49:29.988Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at alloc::alloc::alloc, hashbrown::raw::RawTable$LT$T$GT$::new_uninitialized, hashbrown::raw::RawTable$LT$T$GT$::fallible_with_capacity, hashbrown::raw::RawTable$LT$T$GT$::resize
[task 2021-01-16T22:49:29.988Z] 22:49:29     INFO - INFO | LeakSanitizer | Frame alloc::alloc::alloc::ha5d8a14cce03bc63 matched a expected leak
[task 2021-01-16T22:49:29.989Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::ProtoAndIfaceCache::PageTableCache::EntrySlotOrCreate, mozilla::dom::WindowGlobalChild_Binding::CreateInterfaceObjects, mozilla::dom::GetPerInterfaceObjectHandle, GetProtoObjectHandle
[task 2021-01-16T22:49:29.989Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, maybe_pod_arena_malloc, maybe_pod_malloc
[task 2021-01-16T22:49:29.989Z] 22:49:29     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2021-01-16T22:49:29.990Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at alloc::alloc::alloc, alloc::alloc::Global::alloc_impl, _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..AllocRef$GT$::alloc, alloc::raw_vec::finish_grow
[task 2021-01-16T22:49:29.990Z] 22:49:29     INFO - INFO | LeakSanitizer | Frame alloc::alloc::alloc::ha5d8a14cce03bc63 matched a expected leak
[task 2021-01-16T22:49:29.991Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, nsTSubstring, mozilla::net::nsStandardURL::BuildNormalizedSpec
[task 2021-01-16T22:49:29.991Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::intl::FluentBundle::Constructor, mozilla::dom::FluentBundle_Binding::_constructor, CallJSNative, CallJSNativeConstructor
[task 2021-01-16T22:49:29.992Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::net::nsStandardURL::TemplatedMutator, mozilla::net::nsStandardURL::TemplatedMutator, std::function, operator
[task 2021-01-16T22:49:29.992Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_realloc, js_pod_arena_realloc, maybe_pod_arena_realloc, pod_realloc
[task 2021-01-16T22:49:29.992Z] 22:49:29     INFO - INFO | LeakSanitizer | Frame js_arena_realloc matched a expected leak
[task 2021-01-16T22:49:29.994Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, maybe_pod_arena_malloc, js::detail::OrderedHashTable
[task 2021-01-16T22:49:29.994Z] 22:49:29     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2021-01-16T22:49:29.994Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::ProtoAndIfaceCache::PageTableCache::EntrySlotOrCreate, mozilla::dom::BrowsingContext_Binding::CreateInterfaceObjects, mozilla::dom::GetPerInterfaceObjectHandle, GetProtoObjectHandle
[task 2021-01-16T22:49:29.995Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at alloc::alloc::alloc, alloc::alloc::Global::alloc_impl, _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..AllocRef$GT$::alloc, alloc::raw_vec::RawVec$LT$T$C$A$GT$::allocate_in
[task 2021-01-16T22:49:29.995Z] 22:49:29     INFO - INFO | LeakSanitizer | Frame alloc::alloc::alloc::ha5d8a14cce03bc63 matched a expected leak
[task 2021-01-16T22:49:29.995Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::detail::HashTable, mozilla::detail::HashTable, remove, remove
[task 2021-01-16T22:49:29.996Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at alloc::raw_vec::finish_grow, alloc::raw_vec::RawVec$LT$T$C$A$GT$::grow_amortized, alloc::raw_vec::RawVec$LT$T$C$A$GT$::try_reserve, alloc::raw_vec::RawVec$LT$T$C$A$GT$::reserve
[task 2021-01-16T22:49:29.996Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::detail::HashTable, mozilla::detail::HashTable, putNew, putNew
[task 2021-01-16T22:49:29.997Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::Performance::CreateForMainThread, nsPIDOMWindowInner::CreatePerformanceObjectIfNeeded, nsPIDOMWindowInner::GetPerformance, mozilla::dom::Window_Binding::get_performance
[task 2021-01-16T22:49:29.998Z] 22:49:29     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, nsTSubstring, nsTSubstring
[task 2021-01-16T22:49:29.998Z] 22:49:29     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_calloc, js_pod_arena_calloc
...```
Component: web-platform-tests → DOM: Security
Product: Testing → Core

Hey Sebastian, the last running test according to the log is css/css-sizing/contain-intrinsic-size/parsing/contain-intrinsic-size-valid.html. Did you incorrectly put that one into dom:security or is there something I am not seeing?

Flags: needinfo?(aryx.bugmail)

@Christoph: wpt runs 2 test folders in parallel on most platforms and most recent leaks ran /content-security-policy/ up close to the leak report and often some css folder.

@Ted: This failure popped up shortly after stencil mvp (bug 1667804) landed. Could you check if the leaks are related to the landing?

Flags: needinfo?(aryx.bugmail)
Flags: needinfo?(tcampbell)
Regressed by: stencil-mvp

Generally those parts of Stencil in the stacks have been running for a few months now. It looks like entire scripts/modules are somehow not being cleaned up. I've spun up some try runs simulating reverting stencil-mvp and seeing if changes are unrelated. Will check on them when they complete.

Comment 3 Base Rev: https://treeherder.mozilla.org/jobs?repo=try&group_state=expanded&revision=9d937e4699a3cbc4fc6c1334b66c4567b9b75974
With stencil-mvp reverted: https://treeherder.mozilla.org/jobs?repo=try&group_state=expanded&revision=13d22c8834a2fa4e4d959af16da0e2bbe0e7b6b6

I see very similar crashes go back much earlier (eg Bug 1639376).

We also see Bug 1683253 get much more intermittent with stencil-mvp. With stencil-mvp enable, we no longer allocate a bunch of temporary GlobalObjects which probably affects GC heuristics. Hmm..

Actually.. I read my results wrong. Reverting the stencil-mvp patch gives me a lot of crashes which makes me think this is all unrelated to our changes there.

Without any better ideas, I'm going to dupe to Bug 1639376. It looks like Bug 1686948 disabled some css-break LSAN stuff.

Status: NEW → RESOLVED
Closed: 10 months ago
Flags: needinfo?(tcampbell)
No longer regressed by: stencil-mvp
Resolution: --- → DUPLICATE
Duplicate of bug: 1639376
You need to log in before you can comment on or make changes to this bug.