Open Bug 1428054 Opened 2 years ago Updated 1 year ago

Assertion failure: IsSafeToRun(), at /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/SchedulerGroup.h:77

Categories

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

59 Branch
defect

Tracking

()

Tracking Status
firefox59 --- affected

People

(Reporter: jkratzer, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

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

OS|Linux|0.0.0 Linux 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64
CPU|amd64|family 6 model 78 stepping 3|1
GPU|||
Crash|SIGSEGV|0x0|0
0|0|libxul.so|mozilla::dom::DocGroup::ValidateAccess|hg:hg.mozilla.org/mozilla-central:xpcom/threads/SchedulerGroup.h:f78a83244fbe|77|0x1e
0|1|libxul.so|nsDocument::GetEventTargetParent|hg:hg.mozilla.org/mozilla-central:dom/base/nsDocument.cpp:f78a83244fbe|8120|0x14
0|2|libxul.so|mozilla::EventTargetChainItem::GetEventTargetParent|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:f78a83244fbe|420|0x11
0|3|libxul.so|mozilla::EventDispatcher::Dispatch|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:f78a83244fbe|828|0xf
0|4|libxul.so|mozilla::EventDispatcher::DispatchDOMEvent|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:f78a83244fbe|936|0x19
0|5|libxul.so|nsINode::DispatchEvent|hg:hg.mozilla.org/mozilla-central:dom/base/nsINode.cpp:f78a83244fbe|1359|0x5
0|6|libxul.so|mozilla::dom::EventTarget::DispatchEvent|hg:hg.mozilla.org/mozilla-central:dom/events/EventTarget.cpp:f78a83244fbe|102|0x3
0|7|libxul.so|mozilla::dom::EventTargetBinding::dispatchEvent|s3:gecko-generated-sources:82c9e49c8aa7745d2875bdbbfee52483f565a5992fbef515794b28fb368774a12474900ec42e0cd4717ab1ae67cb0102d14fe21feb893aadb0557d7b8c2d7332/dom/bindings/EventTargetBinding.cpp:|974|0xb
0|8|libxul.so|mozilla::dom::EventTargetBinding::genericMethod|s3:gecko-generated-sources:82c9e49c8aa7745d2875bdbbfee52483f565a5992fbef515794b28fb368774a12474900ec42e0cd4717ab1ae67cb0102d14fe21feb893aadb0557d7b8c2d7332/dom/bindings/EventTargetBinding.cpp:|1150|0x9
0|9|libxul.so|js::CallJSNative|hg:hg.mozilla.org/mozilla-central:js/src/jscntxtinlines.h:f78a83244fbe|291|0x6
0|10|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|473|0xf
0|11|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|522|0xd
0|12|libxul.so|Interpret|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|528|0xf
0|13|libxul.so|js::RunScript|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|423|0xb
0|14|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|495|0xf
0|15|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|522|0xd
0|16|libxul.so|js::Call|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|541|0x5
0|17|libxul.so|JS::Call|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:f78a83244fbe|3029|0x1c
0|18|libxul.so|mozilla::dom::LifecycleDisconnectedCallback::Call|s3:gecko-generated-sources:9c61e5c19e4981e43b73f5de635fb834ced360cab70e340a1cb6404529a992e55913fd6b1012c0960e9d0f08112331dd5d0b9af762b8001d6d5fc80ec03b899d/dom/bindings/WebComponentsBinding.cpp:|317|0x5
0|19|libxul.so|mozilla::dom::LifecycleDisconnectedCallback::Call<RefPtr<mozilla::dom::Element> >|s3:gecko-generated-sources:36922c41de09bf4857043733f95444d6d78abaa2e9c5cf3fb06e856354746fa722052c2d613aae5d04452005089fcf5a489e7dbdfe17788d25e77db5db15af47/dist/include/mozilla/dom/WebComponentsBinding.h:|209|0x15
0|20|libxul.so|mozilla::dom::CustomElementCallback::Call|hg:hg.mozilla.org/mozilla-central:dom/base/CustomElementRegistry.cpp:f78a83244fbe|81|0x14
0|21|libxul.so|mozilla::dom::CustomElementReactionsStack::InvokeReactions|hg:hg.mozilla.org/mozilla-central:dom/base/CustomElementRegistry.cpp:f78a83244fbe|1123|0x1b
0|22|libxul.so|mozilla::dom::CustomElementReactionsStack::PopAndInvokeElementQueue|hg:hg.mozilla.org/mozilla-central:dom/base/CustomElementRegistry.cpp:f78a83244fbe|1013|0xe
0|23|libxul.so|mozilla::dom::CustomElementReactionsStack::LeaveCEReactions|hg:hg.mozilla.org/mozilla-central:dom/base/CustomElementRegistry.h:f78a83244fbe|284|0x8
0|24|libxul.so|mozilla::Maybe<mozilla::dom::AutoCEReaction>::reset|hg:hg.mozilla.org/mozilla-central:dom/base/CustomElementRegistry.h:f78a83244fbe|509|0xe
0|25|libxul.so|mozilla::dom::ElementBinding::append|hg:hg.mozilla.org/mozilla-central:mfbt/Maybe.h:f78a83244fbe|100|0x8
0|26|libxul.so|mozilla::dom::GenericBindingMethod|hg:hg.mozilla.org/mozilla-central:dom/bindings/BindingUtils.cpp:f78a83244fbe|3042|0x9
0|27|libxul.so|js::CallJSNative|hg:hg.mozilla.org/mozilla-central:js/src/jscntxtinlines.h:f78a83244fbe|291|0x6
0|28|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|473|0xf
0|29|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|522|0xd
0|30|libxul.so|Interpret|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|528|0xf
0|31|libxul.so|js::RunScript|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|423|0xb
0|32|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|495|0xf
0|33|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|522|0xd
0|34|libxul.so|js::Call|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|541|0x5
0|35|libxul.so|JS::Call|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:f78a83244fbe|3029|0x1c
0|36|libxul.so|mozilla::dom::MutationCallback::Call|s3:gecko-generated-sources:66e298b96ba05687e960699e34b6a8ca06c2608592fe20b433eb66e12c8936b603803da4fd7c0fab035c3eebcc7151f377313f2ac5f76e4df464a3224a092133/dom/bindings/MutationObserverBinding.cpp:|668|0x5
0|37|libxul.so|mozilla::dom::MutationCallback::Call<nsDOMMutationObserver*>|s3:gecko-generated-sources:840e1604811ca701ebe18c51dadff263253309a342e552d23aa8484836846dddb7ea585fcada5ebde38abb1f29302157b8f8cacd1e7fc9e33d7ad6b0f85d995c/dist/include/mozilla/dom/MutationObserverBinding.h:|186|0x23
0|38|libxul.so|nsDOMMutationObserver::HandleMutation|s3:gecko-generated-sources:840e1604811ca701ebe18c51dadff263253309a342e552d23aa8484836846dddb7ea585fcada5ebde38abb1f29302157b8f8cacd1e7fc9e33d7ad6b0f85d995c/dist/include/mozilla/dom/MutationObserverBinding.h:|209|0x1c
0|39|libxul.so|nsDOMMutationObserver::HandleMutationsInternal|hg:hg.mozilla.org/mozilla-central:dom/base/nsDOMMutationObserver.cpp:f78a83244fbe|937|0x10
0|40|libxul.so|mozilla::CycleCollectedJSContext::PerformMicroTaskCheckPoint|hg:hg.mozilla.org/mozilla-central:xpcom/base/CycleCollectedJSContext.cpp:f78a83244fbe|521|0x13
0|41|libxul.so|mozilla::CycleCollectedJSContext::AfterProcessTask|hg:hg.mozilla.org/mozilla-central:xpcom/base/CycleCollectedJSContext.cpp:f78a83244fbe|359|0x8
0|42|libxul.so|XPCJSContext::AfterProcessTask|hg:hg.mozilla.org/mozilla-central:js/xpconnect/src/XPCJSContext.cpp:f78a83244fbe|1252|0xb
0|43|libxul.so|nsThread::ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:f78a83244fbe|1056|0x9
0|44|libxul.so|NS_ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:f78a83244fbe|510|0x11
0|45|libxul.so|mozilla::dom::ContentChild::ProvideWindowCommon|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.h:f78a83244fbe|323|0xd
0|46|libxul.so|mozilla::dom::TabChild::ProvideWindow|hg:hg.mozilla.org/mozilla-central:dom/ipc/TabChild.cpp:f78a83244fbe|1074|0x10
0|47|libxul.so|nsWindowWatcher::OpenWindowInternal|hg:hg.mozilla.org/mozilla-central:toolkit/components/windowwatcher/nsWindowWatcher.cpp:f78a83244fbe|857|0x2b
0|48|libxul.so|nsWindowWatcher::OpenWindow2|hg:hg.mozilla.org/mozilla-central:toolkit/components/windowwatcher/nsWindowWatcher.cpp:f78a83244fbe|447|0x18
0|49|libxul.so|nsGlobalWindowOuter::OpenInternal|hg:hg.mozilla.org/mozilla-central:dom/base/nsGlobalWindowOuter.cpp:f78a83244fbe|7193|0x2f
0|50|libxul.so|nsGlobalWindowOuter::OpenJS|hg:hg.mozilla.org/mozilla-central:dom/base/nsGlobalWindowOuter.cpp:f78a83244fbe|5608|0x18
0|51|libxul.so|nsGlobalWindowOuter::OpenOuter|hg:hg.mozilla.org/mozilla-central:dom/base/nsGlobalWindowOuter.cpp:f78a83244fbe|5574|0x15
0|52|libxul.so|nsGlobalWindowInner::Open|hg:hg.mozilla.org/mozilla-central:dom/base/nsGlobalWindowInner.cpp:f78a83244fbe|3898|0x17
0|53|libxul.so|mozilla::dom::WindowBinding::open|s3:gecko-generated-sources:af350bd7de319cdc05fb247dbb893d2629b79f8b6f8e63305c5f74be6730d4b5d5ac1e70d411f580525b86984b30526e15e89bad535a0b5982ef9f89c00882bb/dom/bindings/WindowBinding.cpp:|2192|0x2d
0|54|libxul.so|mozilla::dom::WindowBinding::genericMethod|s3:gecko-generated-sources:af350bd7de319cdc05fb247dbb893d2629b79f8b6f8e63305c5f74be6730d4b5d5ac1e70d411f580525b86984b30526e15e89bad535a0b5982ef9f89c00882bb/dom/bindings/WindowBinding.cpp:|15327|0x9
0|55|libxul.so|js::CallJSNative|hg:hg.mozilla.org/mozilla-central:js/src/jscntxtinlines.h:f78a83244fbe|291|0x6
0|56|libxul.so|js::InternalCallOrConstruct|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|473|0xf
0|57|libxul.so|InternalCall|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|522|0xd
0|58|libxul.so|Interpret|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|528|0xf
0|59|libxul.so|js::RunScript|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|423|0xb
0|60|libxul.so|js::ExecuteKernel|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|706|0x5
0|61|libxul.so|js::Execute|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:f78a83244fbe|739|0x5
0|62|libxul.so|ExecuteScript|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:f78a83244fbe|4693|0x11
0|63|libxul.so|ExecuteScript|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:f78a83244fbe|4712|0x8
0|64|libxul.so|nsJSUtils::ExecutionContext::CompileAndExec|hg:hg.mozilla.org/mozilla-central:dom/base/nsJSUtils.cpp:f78a83244fbe|266|0xc
0|65|libxul.so|mozilla::dom::ScriptLoader::EvaluateScript|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptLoader.cpp:f78a83244fbe|2310|0x12
0|66|libxul.so|mozilla::dom::ScriptLoader::ProcessRequest|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptLoader.cpp:f78a83244fbe|1952|0xb
0|67|libxul.so|mozilla::dom::ScriptLoader::ProcessScriptElement|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptLoader.cpp:f78a83244fbe|1650|0xf
0|68|libxul.so|mozilla::dom::ScriptElement::MaybeProcessScript|hg:hg.mozilla.org/mozilla-central:dom/script/ScriptElement.cpp:f78a83244fbe|147|0x13
0|69|libxul.so|nsIScriptElement::AttemptToExecute|hg:hg.mozilla.org/mozilla-central:dom/script/nsIScriptElement.h:f78a83244fbe|226|0x3
0|70|libxul.so|nsHtml5TreeOpExecutor::RunScript|hg:hg.mozilla.org/mozilla-central:parser/html/nsHtml5TreeOpExecutor.cpp:f78a83244fbe|736|0x10
0|71|libxul.so|nsHtml5TreeOpExecutor::RunFlushLoop|hg:hg.mozilla.org/mozilla-central:parser/html/nsHtml5TreeOpExecutor.cpp:f78a83244fbe|540|0x8
0|72|libxul.so|nsHtml5ExecutorFlusher::Run|hg:hg.mozilla.org/mozilla-central:parser/html/nsHtml5StreamParser.cpp:f78a83244fbe|131|0x10
0|73|libxul.so|mozilla::SchedulerGroup::Runnable::Run|hg:hg.mozilla.org/mozilla-central:xpcom/threads/SchedulerGroup.cpp:f78a83244fbe|395|0x1c
0|74|libxul.so|nsThread::ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:f78a83244fbe|1040|0x15
0|75|libxul.so|NS_ProcessNextEvent|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:f78a83244fbe|510|0x11
0|76|libxul.so|mozilla::ipc::MessagePump::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:f78a83244fbe|97|0xa
0|77|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:f78a83244fbe|326|0x17
0|78|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:f78a83244fbe|319|0x8
0|79|libxul.so|nsBaseAppShell::Run|hg:hg.mozilla.org/mozilla-central:widget/nsBaseAppShell.cpp:f78a83244fbe|157|0xd
0|80|libxul.so|XRE_RunAppShell|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:f78a83244fbe|875|0x11
0|81|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:f78a83244fbe|269|0x5
0|82|libxul.so|MessageLoop::RunInternal|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:f78a83244fbe|326|0x17
0|83|libxul.so|MessageLoop::Run|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:f78a83244fbe|319|0x8
0|84|libxul.so|XRE_InitChildProcess|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:f78a83244fbe|701|0x8
0|85|firefox|content_process_main|hg:hg.mozilla.org/mozilla-central:ipc/contentproc/plugin-container.cpp:f78a83244fbe|63|0x14
0|86|firefox|main|hg:hg.mozilla.org/mozilla-central:browser/app/nsBrowserApp.cpp:f78a83244fbe|280|0x11
0|87|libc-2.23.so||||0x20830
0|88|firefox|MOZ_ReportAssertionFailure|hg:hg.mozilla.org/mozilla-central:mfbt/Assertions.h:f78a83244fbe|165|0x5
Flags: in-testsuite?
This is basically a dup of a bug which I can't find right now...
Olli, did you ever find that dup?
Flags: needinfo?(bugs)
Nope
Flags: needinfo?(bugs)
Priority: -- → P3
I get the same assertion error on today master, when trying to bring a webextension page (LastPass) on macOS 10.13.6

Steps to reproduce:

- install the LastPass extension
- restart
- open wikipedia.org
- click on the LastPass icon
- click on the "Create Account" link
- the extension page that shows up crashes on the IsSafeToRun() assertion

Adding my traceback as an attachment
Attached file traceback
Could be dupe of Bug 1468519 ?
stack on comment 5 looks different to what this bug is about.

(this has nothing to do with DOM events but about DOM scheduler stuff.)
Component: DOM: Events → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.