Closed Bug 1774405 Opened 3 years ago Closed 3 years ago

Intermittent LeakSanitizer | leak at createTable, mozilla::detail::HashTable, mozilla::detail::HashTable, reserve

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1773656

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

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

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


[task 2022-06-15T11:51:35.817Z] 11:51:35     INFO - TEST-START | /streams/transform-streams/general.any.html
[task 2022-06-15T11:51:35.818Z] 11:51:35     INFO - Closing window 2bea3786-6094-424a-ad35-c63007e91f18
[task 2022-06-15T11:51:36.270Z] 11:51:36     INFO - PID 8233 | -----------------------------------------------------
[task 2022-06-15T11:51:36.273Z] 11:51:36     INFO - PID 8233 | Suppressions used:
[task 2022-06-15T11:51:36.273Z] 11:51:36     INFO - PID 8233 |   count      bytes template
[task 2022-06-15T11:51:36.273Z] 11:51:36     INFO - PID 8233 |       9        280 nsComponentManagerImpl
[task 2022-06-15T11:51:36.273Z] 11:51:36     INFO - PID 8233 |     633      18115 libfontconfig.so
[task 2022-06-15T11:51:36.273Z] 11:51:36     INFO - PID 8233 |    3293      19761 libglib-2.0.so
[task 2022-06-15T11:51:36.273Z] 11:51:36     INFO - PID 8233 |       2        416 mozJSComponentLoader
[task 2022-06-15T11:51:36.274Z] 11:51:36     INFO - PID 8233 |       1         32 XPCWrappedNativeJSOps
[task 2022-06-15T11:51:36.274Z] 11:51:36     INFO - PID 8233 | -----------------------------------------------------
[task 2022-06-15T11:51:36.351Z] 11:51:36     INFO - Browser exited with return code 0
[task 2022-06-15T11:51:36.352Z] 11:51:36     INFO - ERROR | LeakSanitizer | SUMMARY: AddressSanitizer: 91489 byte(s) leaked in 543 allocation(s).
[task 2022-06-15T11:51:36.354Z] 11:51:36     INFO - LeakSanitizer | To show the addresses of leaked objects add report_objects=1 to LSAN_OPTIONS
[task 2022-06-15T11:51:36.354Z] 11:51:36     INFO - This can be done in testing/mozbase/mozrunner/mozrunner/utils.py
[task 2022-06-15T11:51:36.354Z] 11:51:36     INFO - Allowed depth was 4
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at createTable, mozilla::detail::HashTable, mozilla::detail::HashTable, reserve
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, Gecko_StartBulkWriteString, nsstring::nsAString::start_bulk_write_impl
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_new, MakeUnique, js::SharedPropMap::addChild
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at AllocateProtoAndIfaceCache, mozilla::dom::CreateGlobal, mozilla::dom::Window_Binding::Wrap, CreateNativeGlobalForInner
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at createTable, mozilla::detail::HashTable, reserve, reserve
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::PageTransitionEvent::Constructor, mozilla::dom::Document::DispatchPageTransition, mozilla::dom::Document::OnPageShow, nsDocumentViewer::LoadComplete
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_realloc, js_pod_arena_realloc, maybe_pod_arena_realloc, pod_realloc
[task 2022-06-15T11:51:36.355Z] 11:51:36     INFO - INFO | LeakSanitizer | Frame js_arena_realloc matched a expected leak
[task 2022-06-15T11:51:36.356Z] 11:51:36     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, maybe_pod_arena_malloc, pod_arena_malloc
[task 2022-06-15T11:51:36.356Z] 11:51:36     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2022-06-15T11:51:36.356Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::Event::ConstructorInit, PageTransitionEvent, mozilla::dom::PageTransitionEvent::Constructor, mozilla::dom::Document::DispatchPageTransition
[task 2022-06-15T11:51:36.357Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at nsDynamicAtom::Create, nsAtomTable::Atomize, nsLanguageAtomService::LookupLanguage, gfxFcPlatformFontList::TryLangForGroup
[task 2022-06-15T11:51:36.357Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at createTable, mozilla::detail::HashTable, putNew, putNew
[task 2022-06-15T11:51:36.358Z] 11:51:36     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, js::detail::OrderedHashTable, js::detail::OrderedHashTable
[task 2022-06-15T11:51:36.358Z] 11:51:36     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2022-06-15T11:51:36.356Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::Event::ConstructorInit, PageTransitionEvent, mozilla::dom::PageTransitionEvent::Constructor, mozilla::dom::Document::DispatchPageTransition
[task 2022-06-15T11:51:36.357Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at nsDynamicAtom::Create, nsAtomTable::Atomize, nsLanguageAtomService::LookupLanguage, gfxFcPlatformFontList::TryLangForGroup
[task 2022-06-15T11:51:36.357Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at createTable, mozilla::detail::HashTable, putNew, putNew
[task 2022-06-15T11:51:36.358Z] 11:51:36     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, js::detail::OrderedHashTable, js::detail::OrderedHashTable
[task 2022-06-15T11:51:36.358Z] 11:51:36     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2022-06-15T11:51:36.358Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, nsTSubstring, nsTSubstring
[task 2022-06-15T11:51:36.359Z] 11:51:36     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, maybe_pod_arena_malloc, pod_malloc
[task 2022-06-15T11:51:36.359Z] 11:51:36     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2022-06-15T11:51:36.360Z] 11:51:36     INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at ProtoAndIfaceCache, AllocateProtoAndIfaceCache, mozilla::dom::CreateGlobal, mozilla::dom::Window_Binding::Wrap
[task 2022-06-15T11:51:36.361Z] 11:51:36     INFO - TEST-FAIL | LeakSanitizer | leak at js_arena_malloc, js_pod_arena_malloc, maybe_pod_arena_malloc, maybe_pod_malloc
[task 2022-06-15T11:51:36.361Z] 11:51:36     INFO - INFO | LeakSanitizer | Frame js_arena_malloc matched a expected leak
[task 2022-06-15T11:51:36.362Z] 11:51:36     INFO - Closing logging queue
[task 2022-06-15T11:51:36.362Z] 11:51:36     INFO - queue closed
[task 2022-06-15T11:51:36.407Z] 11:51:36     INFO - .........................
[task 2022-06-15T11:51:36.408Z] 11:51:36     INFO - TEST-OK | /streams/transform-streams/general.any.html | took 595ms
[task 2022-06-15T11:51:36.408Z] 11:51:36     INFO - TEST-START | /streams/transform-streams/lipfuzz.any.sharedworker.html

The test is stream related, so I'll move it there. Kind of a generic looking DOM leak. The PageTransitionEvent is maybe interesting.

Component: General → DOM: Streams

Looks very related to bug 1773656, and probably a dup.

And again, if you look at the log more closer, you can see that it actually happens during BFCache tests:

[task 2022-06-15T11:45:04.694Z] 11:45:04     INFO - TEST-OK | /html/browsers/browsing-the-web/back-forward-cache/service-worker-controlled-after-restore.https.html | took 9441ms
[task 2022-06-15T11:45:04.696Z] 11:45:04     INFO - TEST-START | /html/browsers/browsing-the-web/back-forward-cache/service-worker-unregister.https.html
[task 2022-06-15T11:45:04.722Z] 11:45:04     INFO - Closing window 339deafc-f073-44c2-b630-4515214e7bdf
[task 2022-06-15T11:45:04.889Z] 11:45:04     INFO - Closing window 714d7db7-6825-4033-9793-c4ec88e37632
[task 2022-06-15T11:45:07.166Z] 11:45:07     INFO - PID 8233 | -----------------------------------------------------
[task 2022-06-15T11:45:07.166Z] 11:45:07     INFO - PID 8233 | Suppressions used:
[task 2022-06-15T11:45:07.166Z] 11:45:07     INFO - PID 8233 |   count      bytes template
[task 2022-06-15T11:45:07.167Z] 11:45:07     INFO - PID 8233 |      12        384 nsComponentManagerImpl
[task 2022-06-15T11:45:07.167Z] 11:45:07     INFO - PID 8233 |       2        288 libfontconfig.so
[task 2022-06-15T11:45:07.167Z] 11:45:07     INFO - PID 8233 | -----------------------------------------------------
[task 2022-06-15T11:45:07.681Z] 11:45:07     INFO - PID 8233 | -----------------------------------------------------
[task 2022-06-15T11:45:07.683Z] 11:45:07     INFO - PID 8233 | Suppressions used:
[task 2022-06-15T11:45:07.685Z] 11:45:07     INFO - PID 8233 |   count      bytes template
[task 2022-06-15T11:45:07.687Z] 11:45:07     INFO - PID 8233 |      12        384 nsComponentManagerImpl
[task 2022-06-15T11:45:07.687Z] 11:45:07     INFO - PID 8233 |       2        288 libfontconfig.so
[task 2022-06-15T11:45:07.688Z] 11:45:07     INFO - PID 8233 | -----------------------------------------------------
[task 2022-06-15T11:45:07.982Z] 11:45:07     INFO - PID 8233 | =================================================================
[task 2022-06-15T11:45:07.983Z] 11:45:07     INFO - PID 8233 | LeakSanitizer: detected memory leaks
[task 2022-06-15T11:45:07.985Z] 11:45:07     INFO - PID 8233 | Direct leak of 12672 byte(s) in 89 object(s) allocated from:
[task 2022-06-15T11:45:07.996Z] 11:45:07     INFO - PID 8233 |     #0 0x555e2f60c19e in malloc /builds/worker/fetches/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:69:3
[task 2022-06-15T11:45:07.996Z] 11:45:07     INFO - PID 8233 |     #1 0x7fc5a223d89b in js_arena_malloc /builds/worker/workspace/obj-build/dist/include/js/Utility.h:366:10
[task 2022-06-15T11:45:07.996Z] 11:45:07     INFO - PID 8233 |     #2 0x7fc5a223d89b in js_pod_arena_malloc<js::HeapSlot> /builds/worker/workspace/obj-build/dist/include/js/Utility.h:575:26
[task 2022-06-15T11:45:07.996Z] 11:45:07     INFO - PID 8233 |     #3 0x7fc5a223d89b in maybe_pod_arena_malloc<js::HeapSlot> /builds/worker/checkouts/gecko/js/src/vm/MallocProvider.h:57:12
[task 2022-06-15T11:45:07.996Z] 11:45:07     INFO - PID 8233 |     #4 0x7fc5a223d89b in js::HeapSlot* js::MallocProvider<JS::Zone>::pod_arena_malloc<js::HeapSlot>(unsigned long, unsigned long) /builds/worker/checkouts/gecko/js/src/vm/MallocProvider.h:109:12

Somehow ERROR | LeakSanitizer message happens after some delay for whatever reason, and Streams tests just happen to be there.

Status: NEW → RESOLVED
Closed: 3 years ago
Component: DOM: Streams → DOM: Navigation
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.