Open Bug 1714424 Opened 2 years ago Updated 4 months ago

Assertion failure: result.mCurrentIteration != 0 (Should not have zero current iteration), at src/dom/animation/AnimationEffect.cpp:217

Categories

(Core :: DOM: Animation, defect)

defect

Tracking

()

Tracking Status
firefox91 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file)

Attached file testcase.html

Found while fuzzing m-c 20210603-3350b68026ed (--enable-debug --enable-fuzzing)

Assertion failure: result.mCurrentIteration != 0 (Should not have zero current iteration), at src/dom/animation/AnimationEffect.cpp:217

#0 0x7f7d6d8eb249 in mozilla::dom::AnimationEffect::GetComputedTimingAt(mozilla::dom::Nullable<mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator> > const&, mozilla::TimingParams const&, double) src/dom/animation/AnimationEffect.cpp:216:5
#1 0x7f7d6d8e9f6c in GetComputedTiming src/dom/animation/AnimationEffect.cpp:268:10
#2 0x7f7d6d8e9f6c in mozilla::dom::AnimationEffect::IsCurrent() const src/dom/animation/AnimationEffect.cpp:54:35
#3 0x7f7d6d8e14ca in HasCurrentEffect src/dom/animation/Animation.cpp:1867:38
#4 0x7f7d6d8e14ca in mozilla::dom::Animation::UpdateRelevance() src/dom/animation/Animation.cpp:1053:18
#5 0x7f7d6d8e8e12 in UpdateEffect src/dom/animation/Animation.cpp:1616:5
#6 0x7f7d6d8e8e12 in mozilla::dom::Animation::UpdateTiming(mozilla::dom::Animation::SeekFlag, mozilla::dom::Animation::SyncNotifyFlag) src/dom/animation/Animation.cpp:1559:3
#7 0x7f7d6d8e2136 in mozilla::dom::Animation::SetCurrentTime(mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator> const&) src/dom/animation/Animation.cpp:369:3
#8 0x7f7d6d8e61db in mozilla::dom::Animation::SetCurrentTimeAsDouble(mozilla::dom::Nullable<double> const&, mozilla::ErrorResult&) src/dom/animation/Animation.cpp:827:10
#9 0x7f7d6dcb9fc7 in mozilla::dom::Animation_Binding::set_currentTime(JSContext*, JS::Handle<JSObject*>, void*, JSJitSetterCallArgs) /builds/worker/workspace/obj-build/dom/bindings/AnimationBinding.cpp:473:24
#10 0x7f7d6ee2f3c8 in bool mozilla::dom::binding_detail::GenericSetter<mozilla::dom::binding_detail::NormalThisPolicy>(JSContext*, unsigned int, JS::Value*) src/dom/bindings/BindingUtils.cpp:3246:8
#11 0x7f7d71fe3a90 in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) src/js/src/vm/Interpreter.cpp:426:13
#12 0x7f7d71fe31f2 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) src/js/src/vm/Interpreter.cpp:511:12
#13 0x7f7d71fe4a19 in InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) src/js/src/vm/Interpreter.cpp:571:10
#14 0x7f7d71fe5a6f in Call src/js/src/vm/Interpreter.cpp:588:8
#15 0x7f7d71fe5a6f in js::CallSetter(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::Handle<JS::Value>) src/js/src/vm/Interpreter.cpp:728:10
#16 0x7f7d7232871b in SetExistingProperty(JSContext*, JS::Handle<JS::PropertyKey>, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::Handle<js::NativeObject*>, js::PropertyResult const&, JS::ObjectOpResult&) src/js/src/vm/NativeObject.cpp:2635:8
#17 0x7f7d723276c6 in bool js::NativeSetProperty<(js::QualifiedBool)1>(JSContext*, JS::Handle<js::NativeObject*>, JS::Handle<JS::PropertyKey>, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::ObjectOpResult&) src/js/src/vm/NativeObject.cpp:2669:14
#18 0x7f7d71fd82c8 in SetProperty src/js/src/vm/ObjectOperations-inl.h:300:10
#19 0x7f7d71fd82c8 in SetPropertyOperation src/js/src/vm/Interpreter.cpp:261:10
#20 0x7f7d71fd82c8 in Interpret(JSContext*, js::RunState&) src/js/src/vm/Interpreter.cpp:3002:12
#21 0x7f7d71fd19c5 in js::RunScript(JSContext*, js::RunState&) src/js/src/vm/Interpreter.cpp:395:13
#22 0x7f7d71fe320f in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) src/js/src/vm/Interpreter.cpp:543:13
#23 0x7f7d71fe4a19 in InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) src/js/src/vm/Interpreter.cpp:571:10
#24 0x7f7d71fe4c51 in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) src/js/src/vm/Interpreter.cpp:588:8
#25 0x7f7d725766bb in JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) src/js/src/jsapi.cpp:2786:10
#26 0x7f7d6ea873ce in mozilla::dom::EventListener::HandleEvent(mozilla::dom::BindingCallContext&, JS::Handle<JS::Value>, mozilla::dom::Event&, mozilla::ErrorResult&) /builds/worker/workspace/obj-build/dom/bindings/EventListenerBinding.cpp:58:8
#27 0x7f7d6f1ea016 in void mozilla::dom::EventListener::HandleEvent<mozilla::dom::EventTarget*>(mozilla::dom::EventTarget* const&, mozilla::dom::Event&, mozilla::ErrorResult&, char const*, mozilla::dom::CallbackObject::ExceptionHandling, JS::Realm*) /builds/worker/workspace/obj-build/dist/include/mozilla/dom/EventListenerBinding.h:65:12
#28 0x7f7d6f1e9d6a in mozilla::EventListenerManager::HandleEventSubType(mozilla::EventListenerManager::Listener*, mozilla::dom::Event*, mozilla::dom::EventTarget*) src/dom/events/EventListenerManager.cpp:1108:43
#29 0x7f7d6f1eaa08 in mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool) src/dom/events/EventListenerManager.cpp:1305:17
#30 0x7f7d6f1dfd45 in HandleEvent /builds/worker/workspace/obj-build/dist/include/mozilla/EventListenerManager.h:390:5
#31 0x7f7d6f1dfd45 in mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&) src/dom/events/EventDispatcher.cpp:355:17
#32 0x7f7d6f1df25f in mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&) src/dom/events/EventDispatcher.cpp:557:16
#33 0x7f7d6f1e1e84 in mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*) src/dom/events/EventDispatcher.cpp:1116:11
#34 0x7f7d6f1e4ac6 in mozilla::EventDispatcher::DispatchDOMEvent(nsISupports*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsPresContext*, nsEventStatus*) src/dom/events/EventDispatcher.cpp
#35 0x7f7d6dc10775 in nsINode::DispatchEvent(mozilla::dom::Event&, mozilla::dom::CallerType, mozilla::ErrorResult&) src/dom/base/nsINode.cpp:1331:17
#36 0x7f7d6d9271fa in nsContentUtils::DispatchEvent(mozilla::dom::Document*, nsISupports*, nsTSubstring<char16_t> const&, mozilla::CanBubble, mozilla::Cancelable, mozilla::Composed, mozilla::Trusted, bool*, mozilla::ChromeOnlyDispatch) src/dom/base/nsContentUtils.cpp:4316:28
#37 0x7f7d6d927086 in nsContentUtils::DispatchTrustedEvent(mozilla::dom::Document*, nsISupports*, nsTSubstring<char16_t> const&, mozilla::CanBubble, mozilla::Cancelable, mozilla::Composed, bool*) src/dom/base/nsContentUtils.cpp:4286:10
#38 0x7f7d6da905f7 in mozilla::dom::Document::DispatchContentLoadedEvents() src/dom/base/Document.cpp:7687:3
#39 0x7f7d6db00736 in applyImpl<mozilla::dom::Document, void (mozilla::dom::Document::*)()> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1150:12
#40 0x7f7d6db00736 in apply<mozilla::dom::Document, void (mozilla::dom::Document::*)()> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1156:12
#41 0x7f7d6db00736 in mozilla::detail::RunnableMethodImpl<mozilla::dom::Document*, void (mozilla::dom::Document::*)(), true, (mozilla::RunnableKind)0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1203:13
#42 0x7f7d6be3abf2 in mozilla::SchedulerGroup::Runnable::Run() src/xpcom/threads/SchedulerGroup.cpp:143:20
#43 0x7f7d6be65bde in mozilla::RunnableTask::Run() src/xpcom/threads/TaskController.cpp:482:16
#44 0x7f7d6be436e9 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) src/xpcom/threads/TaskController.cpp:785:26
#45 0x7f7d6be42558 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) src/xpcom/threads/TaskController.cpp:621:15
#46 0x7f7d6be427d3 in mozilla::TaskController::ProcessPendingMTTask(bool) src/xpcom/threads/TaskController.cpp:405:36
#47 0x7f7d6be693d6 in operator() src/xpcom/threads/TaskController.cpp:138:37
#48 0x7f7d6be693d6 in mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:534:5
#49 0x7f7d6be552ff in nsThread::ProcessNextEvent(bool, bool*) src/xpcom/threads/nsThread.cpp:1159:16
#50 0x7f7d6be5bf8a in NS_ProcessNextEvent(nsIThread*, bool) src/xpcom/threads/nsThreadUtils.cpp:548:10
#51 0x7f7d6c743166 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) src/ipc/glue/MessagePump.cpp:85:21
#52 0x7f7d6c6ab1b7 in MessageLoop::RunInternal() src/ipc/chromium/src/base/message_loop.cc:335:10
#53 0x7f7d6c6ab0d2 in RunHandler src/ipc/chromium/src/base/message_loop.cc:328:3
#54 0x7f7d6c6ab0d2 in MessageLoop::Run() src/ipc/chromium/src/base/message_loop.cc:310:3
#55 0x7f7d704e02f8 in nsBaseAppShell::Run() src/widget/nsBaseAppShell.cpp:137:27
#56 0x7f7d71eada63 in XRE_RunAppShell() src/toolkit/xre/nsEmbedFunctions.cpp:911:20
#57 0x7f7d6c74405a in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) src/ipc/glue/MessagePump.cpp:235:9
#58 0x7f7d6c6ab1b7 in MessageLoop::RunInternal() src/ipc/chromium/src/base/message_loop.cc:335:10
#59 0x7f7d6c6ab0d2 in RunHandler src/ipc/chromium/src/base/message_loop.cc:328:3
#60 0x7f7d6c6ab0d2 in MessageLoop::Run() src/ipc/chromium/src/base/message_loop.cc:310:3
#61 0x7f7d71ead67e in XRE_InitChildProcess(int, char**, XREChildData const*) src/toolkit/xre/nsEmbedFunctions.cpp:743:34
#62 0x5655323bcc56 in content_process_main src/browser/app/../../ipc/contentproc/plugin-container.cpp:57:28
#63 0x5655323bcc56 in main src/browser/app/nsBrowserApp.cpp:313:18
#64 0x7f7d80d480b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#65 0x565532399a5c in _start (/home/worker/builds/m-c-20210603094827-fuzzing-debug/firefox-bin+0x15a5c)
Flags: in-testsuite?

A Pernosco session is available here: https://pernos.co/debug/mzp9KOeoy7HOJ06KaZ9pgw/index.html

Bugmon Analysis:
Verified bug as reproducible on mozilla-central 20210603094827-3350b68026ed.
Failed to bisect testcase (Testcase reproduces on start build!):

Start: fecffba489bd447d60c2930f9d55ef834b1b20da (20200605043926)
End: 3350b68026ed51868a2100acb87d1833d61ac486 (20210603094827)
BuildFlags: BuildFlags(asan=False, tsan=False, debug=True, fuzzing=True, coverage=False, valgrind=False)

Whiteboard: [bugmon:bisected,confirmed]
Severity: -- → S3

Bugmon was unable reproduce this issue.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Keywords: bugmon

A change to the Taskcluster build definitions over the weekend caused Bugmon to fail when reproducing issues. This issue has been corrected. Re-enabling bugmon.

Keywords: bugmon
You need to log in before you can comment on or make changes to this bug.