Closed Bug 1461745 Opened 6 years ago Closed 2 years ago

Assertion failure: aPointToInsert.IsSetAndValid(), at /builds/worker/workspace/build/src/editor/libeditor/EditorBase.cpp:1360

Categories

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

59 Branch
defect

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox-esr60 --- wontfix
firefox-esr68 --- wontfix
firefox-esr102 --- unaffected
firefox67 --- wontfix
firefox68 --- wontfix
firefox105 --- unaffected
firefox106 --- unaffected
firefox107 --- unaffected

People

(Reporter: jkratzer, Assigned: masayuki)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

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

Attachments

(2 files, 1 obsolete file)

Attached file trigger.html (obsolete) —
Testcase found while fuzzing mozilla-central rev cf3ee14023483cbbb57129479537c713e22c1980.

rax = 0x0000000000000000   rdx = 0x0000000000000000
rcx = 0x00007f662b0fb2dd   rbx = 0x00007fff1a934900
rsi = 0x00007f662b3ca770   rdi = 0x00007f662b3c9540
rbp = 0x00007fff1a934870   rsp = 0x00007fff1a934770
r8 = 0x00007f662b3ca770    r9 = 0x00007f662c499740
r10 = 0x0000000000000039   r11 = 0x0000000000000000
r12 = 0x00007f6606d30800   r13 = 0x00007fff1a9348e0
r14 = 0x00007fff1a934900   r15 = 0x0000000000000000
rip = 0x00007f661b21fb8d
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::EditorBase::CreateNodeWithTransaction<nsCOMPtr<nsINode>, nsCOMPtr<nsIContent> >|hg:hg.mozilla.org/mozilla-central:editor/libeditor/EditorBase.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1379|0x18
0|1|libxul.so|mozilla::TextEditor::InsertBrElementWithTransaction<nsCOMPtr<nsINode>, nsCOMPtr<nsIContent> >|hg:hg.mozilla.org/mozilla-central:editor/libeditor/TextEditor.cpp:cf3ee14023483cbbb57129479537c713e22c1980|489|0x1d
0|2|libxul.so|mozilla::WSRunObject::InsertBreak<nsCOMPtr<nsINode>, nsCOMPtr<nsIContent> >|hg:hg.mozilla.org/mozilla-central:editor/libeditor/WSRunObject.cpp:cf3ee14023483cbbb57129479537c713e22c1980|269|0x27
0|3|libxul.so|mozilla::HTMLEditRules::InsertBRElement|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1914|0x8
0|4|libxul.so|mozilla::HTMLEditRules::WillInsertBreak|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1848|0x12
0|5|libxul.so|mozilla::HTMLEditRules::WillDoAction|hg:hg.mozilla.org/mozilla-central:editor/libeditor/HTMLEditRules.cpp:cf3ee14023483cbbb57129479537c713e22c1980|636|0x15
0|6|libxul.so|mozilla::TextEditor::InsertParagraphSeparatorAsAction|hg:hg.mozilla.org/mozilla-central:editor/libeditor/TextEditor.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1008|0x27
0|7|libxul.so|mozilla::TextEditor::OnInputParagraphSeparator|hg:hg.mozilla.org/mozilla-central:editor/libeditor/TextEditor.cpp:cf3ee14023483cbbb57129479537c713e22c1980|437|0x8
0|8|libxul.so|mozilla::InsertParagraphCommand::DoCommand|hg:hg.mozilla.org/mozilla-central:editor/libeditor/EditorCommands.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1190|0x8
0|9|libxul.so|nsControllerCommandTable::DoCommand|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsControllerCommandTable.cpp:cf3ee14023483cbbb57129479537c713e22c1980|147|0x17
0|10|libxul.so|nsBaseCommandController::DoCommand|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsBaseCommandController.cpp:cf3ee14023483cbbb57129479537c713e22c1980|136|0x18
0|11|libxul.so|nsCommandManager::DoCommand|hg:hg.mozilla.org/mozilla-central:dom/commandhandler/nsCommandManager.cpp:cf3ee14023483cbbb57129479537c713e22c1980|212|0x14
0|12|libxul.so|nsHTMLDocument::ExecCommand|hg:hg.mozilla.org/mozilla-central:dom/html/nsHTMLDocument.cpp:cf3ee14023483cbbb57129479537c713e22c1980|2944|0x22
0|13|libxul.so|mozilla::dom::HTMLDocumentBinding::execCommand|s3:gecko-generated-sources:ff37da45d432fe47135ce6368fc89a4a887d9b174530286ffd95bbab64bd64616225e6a871e2d4781d133bc15e62f5a224226224657fad909a146782b168d9d3/dom/bindings/HTMLDocumentBinding.cpp:|577|0x2e
0|14|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|15|libxul.so|js::CallJSNative|hg:hg.mozilla.org/mozilla-central:js/src/vm/JSContext-inl.h:cf3ee14023483cbbb57129479537c713e22c1980|280|0x6
0|16|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|467|0xf
0|17|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|516|0xd
0|18|libxul.so|Interpret|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|522|0xf
0|19|libxul.so|js::RunScript|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|417|0xb
0|20|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|489|0xf
0|21|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|516|0xd
0|22|libxul.so|js::Call|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:cf3ee14023483cbbb57129479537c713e22c1980|535|0x5
0|23|libxul.so|JS::Call|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:cf3ee14023483cbbb57129479537c713e22c1980|2989|0x20
0|24|libxul.so|mozilla::dom::EventListener::HandleEvent|s3:gecko-generated-sources:ccbadb8791154c00d5d9f3f34300a418cdfa4b3b0b60424e60394883162a95118b3edbfce81cbc7a5b48193d5a2618fc449143e250bd5c61dd1340709a3af189/dom/bindings/EventListenerBinding.cpp:|51|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:cf3ee14023483cbbb57129479537c713e22c1980|1118|0x26
0|27|libxul.so|mozilla::EventListenerManager::HandleEventInternal|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1288|0x19
0|28|libxul.so|mozilla::EventTargetChainItem::HandleEvent|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.h:cf3ee14023483cbbb57129479537c713e22c1980|393|0xa
0|29|libxul.so|mozilla::EventTargetChainItem::HandleEventTargetChain|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:cf3ee14023483cbbb57129479537c713e22c1980|528|0xf
0|30|libxul.so|mozilla::EventDispatcher::Dispatch|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:cf3ee14023483cbbb57129479537c713e22c1980|962|0xb
0|31|libxul.so|nsDocumentViewer::LoadComplete|hg:hg.mozilla.org/mozilla-central:layout/base/nsDocumentViewer.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1063|0x2c
0|32|libxul.so|nsDocShell::EndPageLoad|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:cf3ee14023483cbbb57129479537c713e22c1980|7171|0x18
0|33|libxul.so|nsDocShell::OnStateChange|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:cf3ee14023483cbbb57129479537c713e22c1980|6964|0x18
0|34|libxul.so|nsDocLoader::DoFireOnStateChange|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1313|0x2b
0|35|libxul.so|nsDocLoader::doStopDocumentLoad|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:cf3ee14023483cbbb57129479537c713e22c1980|856|0x22
0|36|libxul.so|nsDocLoader::DocLoaderIsEmpty|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:cf3ee14023483cbbb57129479537c713e22c1980|745|0xf
0|37|libxul.so|nsDocLoader::OnStopRequest|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:cf3ee14023483cbbb57129479537c713e22c1980|631|0x16
0|38|libxul.so|mozilla::net::nsLoadGroup::RemoveRequest|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsLoadGroup.cpp:cf3ee14023483cbbb57129479537c713e22c1980|629|0x1f
0|39|libxul.so|nsIDocument::DoUnblockOnload|hg:hg.mozilla.org/mozilla-central:dom/base/nsDocument.cpp:cf3ee14023483cbbb57129479537c713e22c1980|8348|0x20
0|40|libxul.so|nsDocument::UnblockOnload|hg:hg.mozilla.org/mozilla-central:dom/base/nsDocument.cpp:cf3ee14023483cbbb57129479537c713e22c1980|8270|0x8
0|41|libxul.so|nsIDocument::DispatchContentLoadedEvents|hg:hg.mozilla.org/mozilla-central:dom/base/nsDocument.cpp:cf3ee14023483cbbb57129479537c713e22c1980|5251|0x11
0|42|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|43|libxul.so|mozilla::SchedulerGroup::Runnable::Run|hg:hg.mozilla.org/mozilla-central:xpcom/threads/SchedulerGroup.cpp:cf3ee14023483cbbb57129479537c713e22c1980|337|0x15
0|44|libxul.so|nsThread::ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:cf3ee14023483cbbb57129479537c713e22c1980|1090|0x15
0|45|libxul.so|NS_ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:cf3ee14023483cbbb57129479537c713e22c1980|519|0x11
0|46|libxul.so|mozilla::ipc::MessagePump::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:cf3ee14023483cbbb57129479537c713e22c1980|97|0xa
0|47|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:cf3ee14023483cbbb57129479537c713e22c1980|326|0x17
0|48|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:cf3ee14023483cbbb57129479537c713e22c1980|319|0x8
0|49|libxul.so|nsBaseAppShell::Run|hg:hg.mozilla.org/mozilla-central:widget/nsBaseAppShell.cpp:cf3ee14023483cbbb57129479537c713e22c1980|157|0xd
0|50|libxul.so|XRE_RunAppShell|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:cf3ee14023483cbbb57129479537c713e22c1980|893|0x11
0|51|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:cf3ee14023483cbbb57129479537c713e22c1980|269|0x5
0|52|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:cf3ee14023483cbbb57129479537c713e22c1980|326|0x17
0|53|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:cf3ee14023483cbbb57129479537c713e22c1980|319|0x8
0|54|libxul.so|XRE_InitChildProcess|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:cf3ee14023483cbbb57129479537c713e22c1980|719|0x8
0|55|firefox|content_process_main|hg:hg.mozilla.org/mozilla-central:ipc/contentproc/plugin-container.cpp:cf3ee14023483cbbb57129479537c713e22c1980|50|0x14
0|56|firefox|main|hg:hg.mozilla.org/mozilla-central:browser/app/nsBrowserApp.cpp:cf3ee14023483cbbb57129479537c713e22c1980|282|0x11
0|57|libc-2.23.so||||0x20830
0|58|firefox|MOZ_ReportAssertionFailure|hg:hg.mozilla.org/mozilla-central:mfbt/Assertions.h:cf3ee14023483cbbb57129479537c713e22c1980|164|0x5
forb1dden@xps:/mnt/sshfs/crashes/5609$
Flags: in-testsuite?
assertion only
Priority: -- → P3
Attached file testcase.html

Update obsolete test case.

Attachment #8975871 - Attachment is obsolete: true

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

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

Whiteboard: [bugmon:confirmed]

Fuzzers are no longer reporting issues with a matching stack.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME

I think that we should add the reported testcase into the tree.

Severity: normal → N/A
Status: RESOLVED → REOPENED
Priority: P3 → P5
Resolution: WORKSFORME → ---
Assignee: nobody → masayuki
Status: REOPENED → ASSIGNED
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/5ac38da1848f
Add reported testcase to WPT r=m_kato
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/36408 for changes under testing/web-platform/tests
Whiteboard: [bugmon:confirmed] → [bugmon:confirmed], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
Flags: in-testsuite? → in-testsuite+
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: