Closed Bug 1450731 Opened 2 years ago Closed 2 years ago

Assertion failure: !aSelection || !mSelection, at /builds/worker/workspace/build/src/dom/base/nsRange.cpp:1067

Categories

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

59 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1467796

People

(Reporter: jkratzer, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

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

rax = 0x0000000000000000   rdx = 0x0000000000000000
rcx = 0x00007f4b41a542dd   rbx = 0x00007f4b20250f40
rsi = 0x00007f4b41d23770   rdi = 0x00007f4b41d22540
rbp = 0x00007ffe6e622650   rsp = 0x00007ffe6e622640
r8 = 0x00007f4b41d23770    r9 = 0x00007f4b42dee740
r10 = 0x0000000000000039   r11 = 0x0000000000000000
r12 = 0x00007f4b20257400   r13 = 0x00007f4b20257458
r14 = 0x00007ffe6e6227c4   r15 = 0x00007ffe6e6226b8
rip = 0x00007f4b30bac824
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|nsRange::SetSelection|hg:hg.mozilla.org/mozilla-central:dom/base/nsRange.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|1067|0x18
0|1|libxul.so|mozilla::dom::Selection::AddItemInternal|hg:hg.mozilla.org/mozilla-central:dom/base/Selection.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|1176|0xb
0|2|libxul.so|mozilla::dom::Selection::AddItem|hg:hg.mozilla.org/mozilla-central:dom/base/Selection.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|1160|0xe
0|3|libxul.so|mozilla::dom::Selection::AddRangeInternal|hg:hg.mozilla.org/mozilla-central:dom/base/Selection.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|2326|0x10
0|4|libxul.so|mozilla::dom::Selection::AddRangeJS|hg:hg.mozilla.org/mozilla-central:dom/base/Selection.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|2286|0x5
0|5|libxul.so|mozilla::dom::SelectionBinding::addRange|s3:gecko-generated-sources:229f848356e99b9afc013dad143fa580d36b164ea6ba8ca0ac7b75a132e61393fb93043ca1e3d97fc14b409381c0295ed8ffccecebbfa2df38df73de2619b757/dom/bindings/SelectionBinding.cpp:|320|0xf
0|6|libxul.so|mozilla::dom::GenericBindingMethod|hg:hg.mozilla.org/mozilla-central:dom/bindings/BindingUtils.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|3032|0x9
0|7|libxul.so|js::CallJSNative|hg:hg.mozilla.org/mozilla-central:js/src/vm/JSContext-inl.h:c44f60c43432d468639b5fe078420e60c13fd3de|290|0x6
0|8|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|467|0xf
0|9|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|516|0xd
0|10|libxul.so|js::Call|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|535|0x5
0|11|libxul.so|js::ForwardingProxyHandler::call|hg:hg.mozilla.org/mozilla-central:js/src/proxy/Wrapper.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|176|0x9
0|12|libxul.so|js::CrossCompartmentWrapper::call|hg:hg.mozilla.org/mozilla-central:js/src/proxy/CrossCompartmentWrapper.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|358|0x13
0|13|libxul.so|js::Proxy::call|hg:hg.mozilla.org/mozilla-central:js/src/proxy/Proxy.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|510|0x15
0|14|libxul.so|js::proxy_Call|hg:hg.mozilla.org/mozilla-central:js/src/proxy/Proxy.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|769|0x9
0|15|libxul.so|js::CallJSNative|hg:hg.mozilla.org/mozilla-central:js/src/vm/JSContext-inl.h:c44f60c43432d468639b5fe078420e60c13fd3de|290|0x6
0|16|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|449|0x12
0|17|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|516|0xd
0|18|libxul.so|Interpret|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|522|0xf
0|19|libxul.so|js::RunScript|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|417|0xb
0|20|libxul.so|js::ExecuteKernel|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|700|0x5
0|21|libxul.so|js::Execute|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|733|0x5
0|22|libxul.so|ExecuteScript|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|4702|0x12
0|23|libxul.so|ExecuteScript|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|4721|0x5
0|24|libxul.so|nsJSUtils::ExecutionContext::CompileAndExec|hg:hg.mozilla.org/mozilla-central:dom/base/nsJSUtils.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|268|0xc
0|25|libxul.so|mozilla::dom::ScriptLoader::EvaluateScript|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptLoader.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|2326|0x12
0|26|libxul.so|mozilla::dom::ScriptLoader::ProcessRequest|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptLoader.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|1955|0xb
0|27|libxul.so|mozilla::dom::ScriptLoader::ProcessInlineScript|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptLoader.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|1595|0xf
0|28|libxul.so|mozilla::dom::ScriptLoader::ProcessScriptElement|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptLoader.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|1314|0xb
0|29|libxul.so|mozilla::dom::ScriptElement::MaybeProcessScript|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptElement.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|141|0x13
0|30|libxul.so|nsIScriptElement::AttemptToExecute|hg:hg.mozilla.org/mozilla-central:dom/script/nsIScriptElement.h:c44f60c43432d468639b5fe078420e60c13fd3de|247|0x3
0|31|libxul.so|nsHtml5TreeOpExecutor::RunScript|hg:hg.mozilla.org/mozilla-central:parser/html/nsHtml5TreeOpExecutor.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|739|0x10
0|32|libxul.so|nsHtml5TreeOpExecutor::RunFlushLoop|hg:hg.mozilla.org/mozilla-central:parser/html/nsHtml5TreeOpExecutor.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|538|0x8
0|33|libxul.so|nsHtml5ExecutorFlusher::Run|hg:hg.mozilla.org/mozilla-central:parser/html/nsHtml5StreamParser.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|121|0x10
0|34|libxul.so|mozilla::SchedulerGroup::Runnable::Run|hg:hg.mozilla.org/mozilla-central:xpcom/threads/SchedulerGroup.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|415|0x1c
0|35|libxul.so|nsThread::ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|1096|0x15
0|36|libxul.so|NS_ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|519|0x11
0|37|libxul.so|mozilla::ipc::MessagePump::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|97|0xa
0|38|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:c44f60c43432d468639b5fe078420e60c13fd3de|326|0x17
0|39|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:c44f60c43432d468639b5fe078420e60c13fd3de|319|0x8
0|40|libxul.so|nsBaseAppShell::Run|hg:hg.mozilla.org/mozilla-central:widget/nsBaseAppShell.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|157|0xd
0|41|libxul.so|XRE_RunAppShell|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|893|0x11
0|42|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|269|0x5
0|43|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:c44f60c43432d468639b5fe078420e60c13fd3de|326|0x17
0|44|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:c44f60c43432d468639b5fe078420e60c13fd3de|319|0x8
0|45|libxul.so|XRE_InitChildProcess|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|719|0x8
0|46|firefox|content_process_main|hg:hg.mozilla.org/mozilla-central:ipc/contentproc/plugin-container.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|50|0x14
0|47|firefox|main|hg:hg.mozilla.org/mozilla-central:browser/app/nsBrowserApp.cpp:c44f60c43432d468639b5fe078420e60c13fd3de|280|0x11
0|48|libc-2.23.so||||0x20830
0|49|firefox|MOZ_ReportAssertionFailure|hg:hg.mozilla.org/mozilla-central:mfbt/Assertions.h:c44f60c43432d468639b5fe078420e60c13fd3de|164|0x5
Flags: in-testsuite?
Component: Canvas: WebGL → DOM
Is anybody working on Selection now, Andrew?
Flags: needinfo?(overholt)
(In reply to Andrew McCreight [:mccr8] from comment #1)
> Is anybody working on Selection now, Andrew?

Not really :/

Olli, can you add this fuzz bug to your backlog?
Flags: needinfo?(overholt) → needinfo?(bugs)
Priority: -- → P2
Flags: needinfo?(echen)
I could not reproduce this on recent nightly, and the result of mozregression points Bug 1467796 fixes this.

> 4:25.49 INFO: First good revision: 48ffc0ee2258cc74a7fcd2ea60eba7c65779b75a
> 14:25.49 INFO: Last bad revision: bc1ce2b7d82a5da457faef2551aa30748f7ac5ec
> 14:25.49 INFO: Pushlog:
> https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=bc1ce2b7d82a5da457faef2551aa30748f7ac5ec&tochange=48ffc0ee2258cc74a7fcd2ea60eba7c65779b75a
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(echen)
Flags: needinfo?(bugs)
Resolution: --- → DUPLICATE
Duplicate of bug: 1467796
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.