Closed Bug 1540297 Opened 6 years ago Closed 2 years ago

Intermittent Assertion failure: aNewListener, at /builds/worker/workspace/build/src/dom/base/Selection.cpp:3109

Categories

(Core :: Disability Access APIs, defect, P3)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

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

#[markdown(off)]
Filed by: aciure [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=237005923&repo=autoland

https://queue.taskcluster.net/v1/task/c-iXYaxsRgedebX_jfuPAA/runs/0/artifacts/public/logs/live_backing.log

https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://queue.taskcluster.net/v1/task/c-iXYaxsRgedebX_jfuPAA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

21:49:28 INFO - REFTEST TEST-PASS | file:///Users/cltbld/tasks/task_1553895805/build/tests/reftest/tests/dom/smil/crashtests/1535388-1.html | (LOAD ONLY)
21:49:28 INFO - REFTEST TEST-END | file:///Users/cltbld/tasks/task_1553895805/build/tests/reftest/tests/dom/smil/crashtests/1535388-1.html
21:49:28 INFO - ++DOMWINDOW == 78 (0x1169d3800) [pid = 1949] [serial = 3331] [outer = 0x126731020]
21:49:28 INFO - Assertion failure: aNewListener, at /builds/worker/workspace/build/src/dom/base/Selection.cpp:3109
21:49:28 INFO - #01: mozilla::a11y::SelectionManager::AddDocSelectionListener(nsIPresShell*) [accessible/base/SelectionManager.cpp:90]
21:49:28 INFO -
21:49:28 INFO - #02: mozilla::a11y::DocAccessible::AddEventListeners() [accessible/generic/DocAccessible.cpp:516]
21:49:28 INFO -
21:49:28 INFO - #03: mozilla::a11y::RootAccessible::AddEventListeners() [accessible/generic/RootAccessible.cpp:180]
21:49:28 INFO -
21:49:28 INFO - #04: mozilla::a11y::DocManager::CreateDocOrRootAccessible(mozilla::dom::Document*) [accessible/base/DocManager.cpp:470]
21:49:28 INFO -
21:49:28 INFO - #05: mozilla::a11y::DocManager::HandleEvent(mozilla::dom::Event*) [accessible/base/DocManager.cpp:377]
21:49:28 INFO -
21:49:28 INFO - #06: non-virtual thunk to mozilla::a11y::DocManager::HandleEvent(mozilla::dom::Event*) [accessible/base/DocManager.cpp:0]
21:49:28 INFO -
21:49:28 INFO - #07: mozilla::EventListenerManager::HandleEventSubType(mozilla::EventListenerManager::Listener*, mozilla::dom::Event*, mozilla::dom::EventTarget*) [dom/events/EventListenerManager.cpp:1045]
21:49:28 INFO -
21:49:28 INFO - #08: mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool) [xpcom/base/nsCOMPtr.h:839]
21:49:28 INFO -
21:49:28 INFO - #09: mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&) [dom/events/EventDispatcher.cpp:354]
21:49:28 INFO -
21:49:28 INFO - #10: mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&) [dom/events/EventDispatcher.cpp:486]
21:49:28 INFO -
21:49:28 INFO - #11: mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*) [dom/events/EventDispatcher.cpp:1051]
21:49:28 INFO -
21:49:28 INFO - #12: mozilla::EventDispatcher::DispatchDOMEvent(nsISupports*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsPresContext*, nsEventStatus*) [dom/events/EventDispatcher.cpp:1152]
21:49:28 INFO -
21:49:28 INFO - #13: nsINode::DispatchEvent(mozilla::dom::Event&, mozilla::dom::CallerType, mozilla::ErrorResult&) [dom/base/nsINode.cpp:1025]

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

It looks like accessibility code calls into DOM with nullptr.

Component: DOM: Core & HTML → Disability Access APIs

That suggests our this pointer is null in SelectionManager::AddDocSelectionListener, which is... worrying. I guess SelectionMgr() must have returned null? That suggests the accessibility service has been shut down, but in that case, I don't understand how DocManager::CreateDocOrRootAccessible got called (as it's also part of the service). And I can't think of any reason the service should have shut down during this call stack.

Priority: -- → P3
Severity: normal → S3
Status: REOPENED → RESOLVED
Closed: 5 years ago2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.