Closed Bug 1461733 Opened 6 years ago Closed 3 years ago

Assertion failure: mChild || mParent->Length() == mOffset.value(), at /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/EditorDOMPoint.h:147

Categories

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

59 Branch
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox62 --- affected
firefox63 --- affected

People

(Reporter: jkratzer, Unassigned)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file)

Attached file trigger.html
Testcase found while fuzzing mozilla-central rev cf3ee14023483cbbb57129479537c713e22c1980.

rax = 0x0000000000000000   rdx = 0x0000000000000000
rcx = 0x00007f4648db62dd   rbx = 0x00007ffce747ac80
rsi = 0x00007f4649085770   rdi = 0x00007f4649084540
rbp = 0x00007ffce747ab60   rsp = 0x00007ffce747ab20
r8 = 0x00007f4649085770    r9 = 0x00007f464a154740
r10 = 0x0000000000000039   r11 = 0x0000000000000000
r12 = 0x00007ffce747ac90   r13 = 0x0000000000000001
r14 = 0x00007f462494e980   r15 = 0x00007ffce747aba8
rip = 0x00007f4638e1930a
OS|Linux|0.0.0 Linux 4.4.0-122-generic #146-Ubuntu SMP Mon Apr 23 15:34:04 UTC 2018 x86_64
CPU|amd64|family 6 model 78 stepping 3|1
GPU|||
Crash|SIGSEGV|0x0|0
0|0|libxul.so|mozilla::EditorDOMPointBase<nsINode*, nsIContent*>::EditorDOMPointBase|hg:hg.mozilla.org/mozilla-central:editor/libeditor/EditorDOMPoint.h:cf3ee14023483cbbb57129479537c713e22c1980|146|0x18
0|1|libxul.so|mozilla::HTMLEditRules::NormalizeSelection|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:cf3ee14023483cbbb57129479537c713e22c1980|5997|0x18
0|2|libxul.so|mozilla::HTMLEditRules::WillMakeList|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:cf3ee14023483cbbb57129479537c713e22c1980|3637|0x5
0|3|libxul.so|mozilla::HTMLEditRules::WillDoAction|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:cf3ee14023483cbbb57129479537c713e22c1980|642|0x1a
0|4|libxul.so|mozilla::HTMLEditor::MakeOrChangeList|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditor.cpp:cf3ee14023483cbbb57129479537c713e22c1980|2022|0x27
0|5|libxul.so|nsListCommand::ToggleState|hg:hg.mozilla.org/mozilla-central:editor/composer/nsComposerCommands.cpp:cf3ee14023483cbbb57129479537c713e22c1980|333|0x15
0|6|libxul.so|nsBaseStateUpdatingCommand::DoCommand|hg:hg.mozilla.org/mozilla-central:editor/composer/nsComposerCommands.cpp:cf3ee14023483cbbb57129479537c713e22c1980|106|0xd
0|7|libxul.so|nsControllerCommandTable::DoCommand|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsControllerCommandTable.cpp:cf3ee14023483cbbb57129479537c713e22c1980|147|0x17
0|8|libxul.so|nsBaseCommandController::DoCommand|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsBaseCommandController.cpp:cf3ee14023483cbbb57129479537c713e22c1980|136|0x18
0|9|libxul.so|nsCommandManager::DoCommand|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsCommandManager.cpp:cf3ee14023483cbbb57129479537c713e22c1980|212|0x14
0|10|libxul.so|nsHTMLDocument::ExecCommand|hg:hg.mozilla.org/mozilla-central:dom/html/nsHTMLDocument.cpp:cf3ee14023483cbbb57129479537c713e22c1980|2944|0x22
0|11|libxul.so|mozilla::dom::HTMLDocumentBinding::execCommand|s3:gecko-generated-sources:ff37da45d432fe47135ce6368fc89a4a887d9b174530286ffd95bbab64bd64616225e6a871e2d4781d133bc15e62f5a224226224657fad909a146782b168d9d3/dom/bindings/HTMLDocumentBinding.cpp:|577|0x2e
0|12|libxul.so|mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>|hg:hg.mozilla.org/mozilla-central:dom/bindings/BindingUtils.cpp:cf3ee14023483cbbb57129479537c713e22c1980|3260|0x9
0|13|libxul.so|js::CallJSNative|hg:hg.mozilla.org/mozilla-central:js/src/vm/JSContext-inl.h:cf3ee14023483cbbb57129479537c713e22c1980|280|0x6
0|14|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|467|0xf
0|15|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|516|0xd
0|16|libxul.so|Interpret|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|522|0xf
0|17|libxul.so|js::RunScript|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|417|0xb
0|18|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|489|0xf
0|19|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|516|0xd
0|20|libxul.so|js::Call|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|535|0x5
0|21|libxul.so|JS::Call|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:cf3ee14023483cbbb57129479537c713e22c1980|2989|0x20
0|22|libxul.so|mozilla::dom::EventListener::HandleEvent|s3:gecko-generated-sources:ccbadb8791154c00d5d9f3f34300a418cdfa4b3b0b60424e60394883162a95118b3edbfce81cbc7a5b48193d5a2618fc449143e250bd5c61dd1340709a3af189/dom/bindings/EventListenerBinding.cpp:|51|0x5
0|23|libxul.so|mozilla::dom::EventListener::HandleEvent<mozilla::dom::EventTarget*>|s3:gecko-generated-sources:0502cca494d7ae0441ada14535523caade9340fdd09934cf6d31cc421267c319ae3d6f5b43b2730d0b36ae1c87480f3b426c5fa4fec57d51047d83a51acde602/dist/include/mozilla/dom/EventListenerBinding.h:|66|0x1c
0|24|libxul.so|mozilla::EventListenerManager::HandleEventSubType|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1118|0x26
0|25|libxul.so|mozilla::EventListenerManager::HandleEventInternal|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1288|0x19
0|26|libxul.so|mozilla::EventTargetChainItem::HandleEvent|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.h:cf3ee14023483cbbb57129479537c713e22c1980|393|0xa
0|27|libxul.so|mozilla::EventTargetChainItem::HandleEventTargetChain|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:cf3ee14023483cbbb57129479537c713e22c1980|528|0xf
0|28|libxul.so|mozilla::EventDispatcher::Dispatch|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:cf3ee14023483cbbb57129479537c713e22c1980|962|0xb
0|29|libxul.so|nsDocumentViewer::LoadComplete|hg:hg.mozilla.org/mozilla-central:layout/base/nsDocumentViewer.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1063|0x2c
0|30|libxul.so|nsDocShell::EndPageLoad|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:cf3ee14023483cbbb57129479537c713e22c1980|7171|0x18
0|31|libxul.so|nsDocShell::OnStateChange|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:cf3ee14023483cbbb57129479537c713e22c1980|6964|0x18
0|32|libxul.so|nsDocLoader::DoFireOnStateChange|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1313|0x2b
0|33|libxul.so|nsDocLoader::doStopDocumentLoad|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:cf3ee14023483cbbb57129479537c713e22c1980|856|0x22
0|34|libxul.so|nsDocLoader::DocLoaderIsEmpty|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:cf3ee14023483cbbb57129479537c713e22c1980|745|0xf
0|35|libxul.so|nsDocLoader::OnStopRequest|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:cf3ee14023483cbbb57129479537c713e22c1980|631|0x16
0|36|libxul.so|mozilla::net::nsLoadGroup::RemoveRequest|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsLoadGroup.cpp:cf3ee14023483cbbb57129479537c713e22c1980|629|0x1f
0|37|libxul.so|nsIDocument::DoUnblockOnload|hg:hg.mozilla.org/mozilla-central:dom/base/nsDocument.cpp:cf3ee14023483cbbb57129479537c713e22c1980|8348|0x20
0|38|libxul.so|nsDocument::UnblockOnload|hg:hg.mozilla.org/mozilla-central:dom/base/nsDocument.cpp:cf3ee14023483cbbb57129479537c713e22c1980|8270|0x8
0|39|libxul.so|nsIDocument::DispatchContentLoadedEvents|hg:hg.mozilla.org/mozilla-central:dom/base/nsDocument.cpp:cf3ee14023483cbbb57129479537c713e22c1980|5251|0x11
0|40|libxul.so|mozilla::detail::RunnableMethodImpl<nsIDocument*, void (nsIDocument::*)(), true, (mozilla::RunnableKind)0u>::Run|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.h:cf3ee14023483cbbb57129479537c713e22c1980|1165|0x13
0|41|libxul.so|mozilla::SchedulerGroup::Runnable::Run|hg:hg.mozilla.org/mozilla-central:xpcom/threads/SchedulerGroup.cpp:cf3ee14023483cbbb57129479537c713e22c1980|337|0x15
0|42|libxul.so|nsThread::ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1090|0x15
0|43|libxul.so|NS_ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:cf3ee14023483cbbb57129479537c713e22c1980|519|0x11
0|44|libxul.so|mozilla::ipc::MessagePump::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:cf3ee14023483cbbb57129479537c713e22c1980|97|0xa
0|45|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:cf3ee14023483cbbb57129479537c713e22c1980|326|0x17
0|46|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:cf3ee14023483cbbb57129479537c713e22c1980|319|0x8
0|47|libxul.so|nsBaseAppShell::Run|hg:hg.mozilla.org/mozilla-central:widget/nsBaseAppShell.cpp:cf3ee14023483cbbb57129479537c713e22c1980|157|0xd
0|48|libxul.so|XRE_RunAppShell|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:cf3ee14023483cbbb57129479537c713e22c1980|893|0x11
0|49|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:cf3ee14023483cbbb57129479537c713e22c1980|269|0x5
0|50|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:cf3ee14023483cbbb57129479537c713e22c1980|326|0x17
0|51|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:cf3ee14023483cbbb57129479537c713e22c1980|319|0x8
0|52|libxul.so|XRE_InitChildProcess|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:cf3ee14023483cbbb57129479537c713e22c1980|719|0x8
0|53|firefox|content_process_main|hg:hg.mozilla.org/mozilla-central:ipc/contentproc/plugin-container.cpp:cf3ee14023483cbbb57129479537c713e22c1980|50|0x14
0|54|firefox|main|hg:hg.mozilla.org/mozilla-central:browser/app/nsBrowserApp.cpp:cf3ee14023483cbbb57129479537c713e22c1980|282|0x11
0|55|libc-2.23.so||||0x20830
0|56|firefox|MOZ_ReportAssertionFailure|hg:hg.mozilla.org/mozilla-central:mfbt/Assertions.h:cf3ee14023483cbbb57129479537c713e22c1980|164|0x5
Flags: in-testsuite?
assertion only
Priority: -- → P3

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

mozilla-central 20210224162107-27f574662450
mozilla-central 20200226092757-7f41334e1044

Whiteboard: [bugmon:confirmed]

This seems to have been fixed elsewhere 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: