Closed Bug 1838832 Opened 11 months ago Closed 8 months ago

Intermittent LeakSanitizer | leak at Alloc, nsTSubstring, nsTSubstring, nsContentUtils::SerializeNodeToMarkup

Categories

(Core :: General, defect, P5)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure, Whiteboard: [domsecurity-intermittent][retriggered])

Filed by: sstanca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=419566017&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/eBPgoesHQQ6HNSQDgMCWzQ/runs/0/artifacts/public/logs/live_backing.log


[task 2023-06-16T09:43:47.795Z] 09:43:47     INFO - TEST-INFO | Main app process: exit 0
[task 2023-06-16T09:43:47.797Z] 09:43:47     INFO - TEST-INFO | LeakSanitizer | To show the addresses of leaked objects add report_objects=1 to LSAN_OPTIONS
[task 2023-06-16T09:43:47.797Z] 09:43:47     INFO - TEST-INFO | LeakSanitizer | This can be done in testing/mozbase/mozrunner/mozrunner/utils.py
[task 2023-06-16T09:43:47.799Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, Gecko_StartBulkWriteString, nsstring::nsAString::start_bulk_write_impl::h3777aa45c34be559
[task 2023-06-16T09:43:47.800Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, nsTSubstring, nsContentUtils::SerializeNodeToMarkup
[task 2023-06-16T09:43:47.801Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::UniquePtr, JSRope::copyLatin1Chars, js::CopyStringPure, JS::Compartment::wrap
[task 2023-06-16T09:43:47.801Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at js_pod_arena_malloc, maybe_pod_arena_malloc, pod_arena_malloc, pod_malloc
[task 2023-06-16T09:43:47.802Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at js_pod_arena_realloc, maybe_pod_arena_realloc, pod_arena_realloc, pod_realloc
[task 2023-06-16T09:43:47.803Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::EventListenerManager::CompileEventHandlerInternal, mozilla::EventListenerManager::HandleEventSubType, mozilla::EventListenerManager::HandleEventInternal, mozilla::EventTargetChainItem::HandleEvent
[task 2023-06-16T09:43:47.805Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::BasePrincipal::CreateContentPrincipal, mozilla::BasePrincipal::CreateContentPrincipal, nsScriptSecurityManager::GetChannelURIPrincipal, nsScriptSecurityManager::GetChannelResultPrincipal
[task 2023-06-16T09:43:47.806Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at js_pod_arena_malloc, maybe_pod_arena_malloc, pod_arena_malloc, make_pod_arena_array
[task 2023-06-16T09:43:47.807Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at js_new, MakeUnique, js::SharedPropMap::addChild, js::SharedPropMap::addPropertyInternal
[task 2023-06-16T09:43:47.808Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at js_pod_arena_malloc, MakeUTF8AtomHelperNonStaticValidLength, NewAtomNonStaticValidLength, AllocateNewAtomNonStaticValidLength
[task 2023-06-16T09:43:47.810Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at v8::internal::Isolate::allocatePseudoHandle, NewByteArray, v8::internal::RegExpBytecodePeepholeOptimization::OptimizeBytecode, v8::internal::RegExpBytecodeGenerator::GetCode
[task 2023-06-16T09:43:47.811Z] 09:43:47    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at js_pod_arena_malloc, maybe_pod_arena_malloc, pod_arena_malloc, AllocChars
[task 2023-06-16T09:43:47.812Z] 09:43:47     INFO - runtests.py | Application ran for: 0:06:24.249347

Hi SerbanS,
how sure are we that this is in DOM: Security? From a cursory reading this might also come from DOM Event Handling or JS.
Can you get us a regression range for this leak?

Flags: needinfo?(sstanca)

Hello Frederik! I'm not sure on component.. Watching more carefully, I noticed that there are some recent leaks that all have this failure line in common: TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at js_pod_arena_malloc, maybe_pod_arena_malloc, pod_arena_malloc, pod_malloc and on this perspective we had Bug 1711640. Should I open a new bug on this theme?
As for regression range, I couldn't find something relevant, only backfilled and retriggered from first point where I found it.

Flags: needinfo?(sstanca) → needinfo?(fbraun)
Whiteboard: [domsecurity-intermittent] → [domsecurity-intermittent][retriggered]
Component: DOM: Security → Untriaged
Flags: needinfo?(fbraun)
Product: Core → Firefox
Component: Untriaged → General
Product: Firefox → Core

It looks like we're leaking a ton of stuff, so maybe this is a case of our "ignore all JS engine leaks" ignore listing for WPTs is insufficient.

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.