Closed Bug 1449591 Opened 6 years ago Closed 3 years ago

Assertion failure: IsElement(), at /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/dom/Element.h:2011

Categories

(Core :: DOM: Editor, defect, P3)

59 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jkratzer, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase, Whiteboard: [bugmon:confirmed])

Attachments

(1 file)

Attached file testcase
Testcase found while fuzzing mozilla-central rev 5bf126434fac.

rax = 0x0000000000000000   rdx = 0x0000000000000000
rcx = 0x00007fa2277872dd   rbx = 0x0000000000000000
rsi = 0x00007fa227a56770   rdi = 0x00007fa227a55540
rbp = 0x00007ffe17f46f30   rsp = 0x00007ffe17f46f30
r8 = 0x00007fa227a56770    r9 = 0x00007fa228b21740
r10 = 0x0000000000000039   r11 = 0x0000000000000000
r12 = 0x00007ffe17f47088   r13 = 0x0000000000000bbd
r14 = 0x00007ffe17f46fe0   r15 = 0x00007fa205d5d700
rip = 0x00007fa2163bc46e
OS|Linux|0.0.0 Linux 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64
CPU|amd64|family 6 model 78 stepping 3|1
GPU|||
Crash|SIGSEGV|0x0|0
0|0|libxul.so|nsINode::AsElement|hg:hg.mozilla.org/mozilla-central:dom/base/Element.h:5bf126434fac78a31256c994b9dbf4b1031b0350|2011|0x5
0|1|libxul.so|mozilla::HTMLEditRules::PromoteRange|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|6103|0x26
0|2|libxul.so|mozilla::HTMLEditRules::GetPromotedRanges|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|6071|0x17
0|3|libxul.so|mozilla::HTMLEditRules::GetNodesFromSelection|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|6751|0x12
0|4|libxul.so|mozilla::HTMLEditRules::GetParagraphFormatNodes|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|6510|0x17
0|5|libxul.so|mozilla::HTMLEditRules::GetParagraphState|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|1091|0xd
0|6|libxul.so|mozilla::HTMLEditor::GetParagraphState|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditor.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|1765|0x17
0|7|libxul.so|nsParagraphStateCommand::GetCurrentState|hg:hg.mozilla.org/mozilla-central:editor/composer/nsComposerCommands.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|671|0x12
0|8|libxul.so|nsMultiStateCommand::GetCommandStateParams|hg:hg.mozilla.org/mozilla-central:editor/composer/nsComposerCommands.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|653|0x10
0|9|libxul.so|nsControllerCommandTable::GetCommandState|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsControllerCommandTable.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|178|0x14
0|10|libxul.so|nsBaseCommandController::GetCommandStateWithParams|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsBaseCommandController.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|168|0x1c
0|11|libxul.so|nsCommandManager::GetCommandState|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsCommandManager.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|188|0xf
0|12|libxul.so|nsHTMLDocument::QueryCommandIndeterm|hg:hg.mozilla.org/mozilla-central:dom/html/nsHTMLDocument.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|3063|0x4
0|13|libxul.so|mozilla::dom::HTMLDocumentBinding::queryCommandIndeterm|s3:gecko-generated-sources:d19684667b3845bece873eedea6faa7ec9776eec54840dec0eb58d9c1ba9ff43478426c623a78158948594bf0aea2e0dbc402175514d46b7bb278f2f9cd14139/dom/bindings/HTMLDocumentBinding.cpp:|670|0x12
0|14|libxul.so|mozilla::dom::GenericBindingMethod|hg:hg.mozilla.org/mozilla-central:dom/bindings/BindingUtils.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|3032|0x9
0|15|libxul.so|js::CallJSNative|hg:hg.mozilla.org/mozilla-central:js/src/vm/JSContext-inl.h:5bf126434fac78a31256c994b9dbf4b1031b0350|290|0x6
0|16|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|467|0xf
0|17|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|516|0xd
0|18|libxul.so|Interpret|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|522|0xf
0|19|libxul.so|js::RunScript|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|417|0xb
0|20|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|489|0xf
0|21|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|516|0xd
0|22|libxul.so|js::Call|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|535|0x5
0|23|libxul.so|JS::Call|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|3002|0x20
0|24|libxul.so|mozilla::dom::EventListener::HandleEvent|s3:gecko-generated-sources:4f12b90540cb165dd19eac1b88402159c76e59990061216cada90a154be8b234c7f9a8578831d6a0eb2b0cf1645daa7d853b12949e597c37d4557860ba4f42ae/dom/bindings/EventListenerBinding.cpp:|47|0x5
0|25|libxul.so|mozilla::dom::EventListener::HandleEvent<mozilla::dom::EventTarget*>|s3:gecko-generated-sources:0502cca494d7ae0441ada14535523caade9340fdd09934cf6d31cc421267c319ae3d6f5b43b2730d0b36ae1c87480f3b426c5fa4fec57d51047d83a51acde602/dist/include/mozilla/dom/EventListenerBinding.h:|66|0x1c
0|26|libxul.so|mozilla::EventListenerManager::HandleEventSubType|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|1087|0x36
0|27|libxul.so|mozilla::EventListenerManager::HandleEventInternal|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|1259|0x19
0|28|libxul.so|mozilla::EventTargetChainItem::HandleEvent|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.h:5bf126434fac78a31256c994b9dbf4b1031b0350|376|0xa
0|29|libxul.so|mozilla::EventTargetChainItem::HandleEventTargetChain|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|527|0xf
0|30|libxul.so|mozilla::EventDispatcher::Dispatch|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|918|0xb
0|31|libxul.so|mozilla::EventDispatcher::DispatchDOMEvent|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|1000|0x19
0|32|libxul.so|nsINode::DispatchEvent|hg:hg.mozilla.org/mozilla-central:dom/base/nsINode.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|1171|0x5
0|33|libxul.so|nsContentUtils::DispatchEvent|hg:hg.mozilla.org/mozilla-central:dom/base/nsContentUtils.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|4477|0x1c
0|34|libxul.so|nsContentUtils::DispatchTrustedEvent|hg:hg.mozilla.org/mozilla-central:dom/base/nsContentUtils.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|4446|0xf
0|35|libxul.so|nsIDocument::DispatchContentLoadedEvents|hg:hg.mozilla.org/mozilla-central:dom/base/nsDocument.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|5247|0x5
0|36|libxul.so|mozilla::detail::RunnableMethodImpl<nsIDocument*, void (nsIDocument::*)(), true, (mozilla::RunnableKind)0u>::Run|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.h:5bf126434fac78a31256c994b9dbf4b1031b0350|1164|0x13
0|37|libxul.so|mozilla::SchedulerGroup::Runnable::Run|hg:hg.mozilla.org/mozilla-central:xpcom/threads/SchedulerGroup.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|415|0x1c
0|38|libxul.so|nsThread::ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|1096|0x15
0|39|libxul.so|NS_ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|519|0x11
0|40|libxul.so|mozilla::ipc::MessagePump::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|97|0xa
0|41|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:5bf126434fac78a31256c994b9dbf4b1031b0350|326|0x17
0|42|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:5bf126434fac78a31256c994b9dbf4b1031b0350|319|0x8
0|43|libxul.so|nsBaseAppShell::Run|hg:hg.mozilla.org/mozilla-central:widget/nsBaseAppShell.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|157|0xd
0|44|libxul.so|XRE_RunAppShell|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|893|0x11
0|45|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|269|0x5
0|46|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:5bf126434fac78a31256c994b9dbf4b1031b0350|326|0x17
0|47|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:5bf126434fac78a31256c994b9dbf4b1031b0350|319|0x8
0|48|libxul.so|XRE_InitChildProcess|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|719|0x8
0|49|firefox|content_process_main|hg:hg.mozilla.org/mozilla-central:ipc/contentproc/plugin-container.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|50|0x14
0|50|firefox|main|hg:hg.mozilla.org/mozilla-central:browser/app/nsBrowserApp.cpp:5bf126434fac78a31256c994b9dbf4b1031b0350|280|0x11
0|51|libc-2.23.so||||0x20830
0|52|firefox|MOZ_ReportAssertionFailure|hg:hg.mozilla.org/mozilla-central:mfbt/Assertions.h:5bf126434fac78a31256c994b9dbf4b1031b0350|164|0x5
Flags: in-testsuite?
assertion only
Priority: -- → P3
Attachment #8963143 - Attachment description: trigger.html → testcase

Bugmon Analysis:
Unable to reproduce bug using the following builds:

mozilla-central 20210224100119-b3eb91f0b5a7
mozilla-central 20200226092757-7f41334e1044

Whiteboard: [bugmon:confirmed]

This seems to have been fixed somewhere more than a year ago.

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

Attachment

General

Created:
Updated:
Size: