Closed Bug 1479987 Opened 6 years ago Closed 1 year ago

Intermittent LeakSanitizer | leak at mozilla::WeakPtr, WeakPtr, mozilla::Maybe, mozilla::ContentPrincipal::AddonPolicy

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Blocks 2 open bugs)

Details

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

Filed by: btara [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=191293287&repo=mozilla-inbound https://queue.taskcluster.net/v1/task/UwZkQEaYST62ZqCWHYrdQA/runs/0/artifacts/public/logs/live_backing.log [task 2018-08-01T03:38:53.501Z] 03:38:53 INFO - Browser exited with return code 0 [task 2018-08-01T03:38:53.502Z] 03:38:53 INFO - ERROR | LeakSanitizer | SUMMARY: AddressSanitizer: 2350 byte(s) leaked in 18 allocation(s). [task 2018-08-01T03:38:53.502Z] 03:38:53 INFO - LeakSanitizer | To show the addresses of leaked objects add report_objects=1 to LSAN_OPTIONS [task 2018-08-01T03:38:53.502Z] 03:38:53 INFO - This can be done in testing/mozbase/mozrunner/mozrunner/utils.py [task 2018-08-01T03:38:53.503Z] 03:38:53 INFO - TEST-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, nsTSubstring, nsTSubstring [task 2018-08-01T03:38:53.504Z] 03:38:53 INFO - INFO | LeakSanitizer | Frame Alloc matched a expected leak [task 2018-08-01T03:38:53.504Z] 03:38:53 INFO - TEST-FAIL | LeakSanitizer | leak at CreateInner, Create, nsAtomTable::Atomize, mozilla::BasePrincipal::FinishInit [task 2018-08-01T03:38:53.504Z] 03:38:53 INFO - INFO | LeakSanitizer | Frame CreateInner matched a expected leak [task 2018-08-01T03:38:53.505Z] 03:38:53 INFO - TEST-FAIL | LeakSanitizer | leak at Alloc, nsTSubstring, nsTSubstring, AppendUTF16toUTF8 [task 2018-08-01T03:38:53.505Z] 03:38:53 INFO - INFO | LeakSanitizer | Frame Alloc matched a expected leak [task 2018-08-01T03:38:53.506Z] 03:38:53 INFO - TEST-FAIL | LeakSanitizer | leak at mozilla::net::nsStandardURL::StartClone, CloneInternal, mozilla::net::nsStandardURL::Clone, InitFromURI [task 2018-08-01T03:38:53.506Z] 03:38:53 INFO - INFO | LeakSanitizer | Frame InitFromURI matched a expected leak [task 2018-08-01T03:38:53.506Z] 03:38:53 INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::WeakPtr, WeakPtr, mozilla::Maybe, mozilla::ContentPrincipal::AddonPolicy [task 2018-08-01T03:38:53.507Z] 03:38:53 INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Malloc, nsTArray_base, AppendElement, nsPrefetchNode::nsPrefetchNode [task 2018-08-01T03:38:53.508Z] 03:38:53 INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at nsPrefetchService::Preload, mozilla::dom::Link::TryDNSPrefetchOrPreconnectOrPrefetchOrPreloadOrPrerender, mozilla::dom::HTMLLinkElement::BindToTree, nsINode::doInsertChildAt [task 2018-08-01T03:38:53.509Z] 03:38:53 INFO - TEST-FAIL | LeakSanitizer | leak at mozilla::BasePrincipal::CreateCodebasePrincipal, mozilla::BasePrincipal::CreateCodebasePrincipal, nsScriptSecurityManager::GetChannelURIPrincipal, nsScriptSecurityManager::GetChannelResultPrincipal [task 2018-08-01T03:38:53.509Z] 03:38:53 INFO - INFO | LeakSanitizer | Frame mozilla::BasePrincipal::CreateCodebasePrincipal matched a expected leak [task 2018-08-01T03:38:53.511Z] 03:38:53 INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at nsNodeSupportsWeakRefTearoff::GetWeakReference, NS_GetWeakReference, do_GetWeakReference, nsPrefetchNode::nsPrefetchNode [task 2018-08-01T03:38:53.511Z] 03:38:53 INFO - TEST-FAIL | LeakSanitizer | leak at mozilla::net::nsStandardURL::TemplatedMutator, Init, mozilla::net::nsStandardURL::TemplatedMutator, operator [task 2018-08-01T03:38:53.511Z] 03:38:53 INFO - INFO | LeakSanitizer | Frame Init matched a expected leak [task 2018-08-01T03:38:53.511Z] 03:38:53 INFO - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at PLDHashTable::Add, mozilla::net::nsLoadGroup::AddRequest, mozilla::net::HttpChannelChild::AsyncOpen, mozilla::net::HttpChannelChild::AsyncOpen2 [task 2018-08-01T03:38:53.512Z] 03:38:53 WARNING - u'runner_teardown': () [task 2018-08-01T03:38:53.514Z] 03:38:53 INFO - INFO | runtests.py | ASan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer [task 2018-08-01T03:38:53.514Z] 03:38:53 INFO - STDOUT: Setting up LSAN
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

The recent failures here are happening in wpt8, in the /service-workers/service-worker/ directory.

leak at nsDocShell::Create, nsFrameLoader::MaybeCreateDocShell, nsFrameLoader::CheckForRecursiveLoad, CheckURILoad
leak at nsPrefetchService::Preload, mozilla::dom::Link::TryDNSPrefetchOrPreconnectOrPrefetchOrPreloadOrPrerender, mozilla::dom::HTMLLinkElement::BindToTree, nsINode::InsertChildBefore
leak at mozilla::WeakPtr, WeakPtr, mozilla::Maybe, mozilla::ContentPrincipal::AddonPolicy
leak at Malloc, nsTArray_base, AppendElement, nsPrefetchNode::nsPrefetchNode
leak at Alloc, nsTSubstring, Gecko_StartBulkWriteCString, nsstring::nsACString::start_bulk_write_impl
leak at mozilla::BasePrincipal::CreateCodebasePrincipal, mozilla::BasePrincipal::CreateCodebasePrincipal, nsScriptSecurityManager::GetChannelURIPrincipal, nsScriptSecurityManager::GetChannelResultPrincipal
leak at Alloc, nsTSubstring, nsTSubstring, nsTSubstring
leak at Create, nsAtomTable::Atomize, mozilla::BasePrincipal::FinishInit, mozilla::ContentPrincipal::Init
leak at PLDHashTable::Add, mozilla::net::nsLoadGroup::AddRequest, mozilla::net::HttpChannelChild::AsyncOpen, AsyncOpen2
leak at Alloc, nsTSubstring, nsTSubstring, mozilla::net::nsStandardURL::BuildNormalizedSpec
leak at mozilla::net::nsStandardURL::TemplatedMutator, Init, mozilla::net::nsStandardURL::TemplatedMutator, operator
leak at nsNodeSupportsWeakRefTearoff::GetWeakReference, NS_GetWeakReference, do_GetWeakReference, nsPrefetchNode::nsPrefetchNode
leak at nsSupportsWeakReference::GetWeakReference, NS_GetWeakReference, do_GetWeakReference, mozilla::net::nsLoadGroup::SetGroupObserver

Blocks: 1523989
No longer blocks: 1517309
Depends on: 1509844

The latest spike in this intermittent failure appears to be in the /2dcontext/imagebitmap/ directory.

Component: DOM: Service Workers → Canvas: 2D

Looks like the actual leaks are coming from URL code and the like somewhere in the DOM code...

Component: Canvas: 2D → DOM: Core & HTML
Priority: -- → P3
Blocks: LSan
Severity: normal → S3

No failures since 2022.

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