Closed Bug 1752911 Opened 3 years ago Closed 2 years ago

Assertion failure: isRelevant == ((IsCurrent() || IsInEffect()) && mAnimation && mAnimation->ReplaceState() != AnimationReplaceState::Removed) (Out of date Animation::IsRelevant value), at /dom/animation/KeyframeEffect.cpp:95

Categories

(Core :: DOM: Animation, defect)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jkratzer, Assigned: boris)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file)

Testcase found while fuzzing mozilla-central rev bb528a123b65 (built with: --enable-debug --enable-fuzzing).

Testcase can be reproduced using the following commands:

$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build bb528a123b65 --debug --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.html
Assertion failure: isRelevant == ((IsCurrent() || IsInEffect()) && mAnimation && mAnimation->ReplaceState() != AnimationReplaceState::Removed) (Out of date Animation::IsRelevant value), at /dom/animation/KeyframeEffect.cpp:95

    ==1715466==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7eff53683357 bp 0x7fff89402680 sp 0x7fff894025e0 T1715466)
    ==1715466==The signal is caused by a WRITE memory access.
    ==1715466==Hint: address points to the zero page.
        #0 0x7eff53683357 in mozilla::dom::KeyframeEffect::UpdateTargetRegistration() /dom/animation/KeyframeEffect.cpp:952:3
        #1 0x7eff53688e96 in mozilla::dom::KeyframeEffect::UpdateTarget(mozilla::dom::Element*, mozilla::PseudoStyleType) /dom/animation/KeyframeEffect.cpp:921:5
        #2 0x7eff5368a011 in mozilla::dom::KeyframeEffect::SetPseudoElement(nsTSubstring<char16_t> const&, mozilla::ErrorResult&) /dom/animation/KeyframeEffect.cpp
        #3 0x7eff53efb45c in mozilla::dom::KeyframeEffect_Binding::set_pseudoElement(JSContext*, JS::Handle<JSObject*>, void*, JSJitSetterCallArgs) /builds/worker/workspace/obj-build/dom/bindings/KeyframeEffectBinding.cpp:763:24
        #4 0x7eff54e74326 in bool mozilla::dom::binding_detail::GenericSetter<mozilla::dom::binding_detail::NormalThisPolicy>(JSContext*, unsigned int, JS::Value*) /dom/bindings/BindingUtils.cpp:3254:8
        #5 0x7eff5893335f in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) /js/src/vm/Interpreter.cpp:425:13
        #6 0x7eff58932a5d in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /js/src/vm/Interpreter.cpp:512:12
        #7 0x7eff5893453e in InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) /js/src/vm/Interpreter.cpp:572:10
        #8 0x7eff5893576c in Call /js/src/vm/Interpreter.cpp:589:8
        #9 0x7eff5893576c in js::CallSetter(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::Handle<JS::Value>) /js/src/vm/Interpreter.cpp:730:10
        #10 0x7eff58ca538b in SetExistingProperty(JSContext*, JS::Handle<JS::PropertyKey>, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::Handle<js::NativeObject*>, js::PropertyResult const&, JS::ObjectOpResult&) /js/src/vm/NativeObject.cpp:2493:8
        #11 0x7eff58ca4376 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&) /js/src/vm/NativeObject.cpp:2527:14
        #12 0x7eff58928228 in SetProperty /js/src/vm/ObjectOperations-inl.h:308:10
        #13 0x7eff58928228 in SetObjectElementOperation /js/src/vm/Interpreter.cpp:1812:10
        #14 0x7eff58928228 in Interpret(JSContext*, js::RunState&) /js/src/vm/Interpreter.cpp:3064:12
        #15 0x7eff58920cf3 in js::RunScript(JSContext*, js::RunState&) /js/src/vm/Interpreter.cpp:394:13
        #16 0x7eff58932958 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /js/src/vm/Interpreter.cpp:544:13
        #17 0x7eff5893453e in InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) /js/src/vm/Interpreter.cpp:572:10
        #18 0x7eff58934741 in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) /js/src/vm/Interpreter.cpp:589:8
        #19 0x7eff58af2d21 in JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) /js/src/vm/CallAndConstruct.cpp:117:10
        #20 0x7eff54c25fc4 in mozilla::dom::Function::Call(mozilla::dom::BindingCallContext&, JS::Handle<JS::Value>, nsTArray<JS::Value> const&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&) /builds/worker/workspace/obj-build/dom/bindings/FunctionBinding.cpp:50:8
        #21 0x7eff53a82292 in void mozilla::dom::Function::Call<nsCOMPtr<nsIGlobalObject> >(nsCOMPtr<nsIGlobalObject> const&, nsTArray<JS::Value> const&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&, char const*, mozilla::dom::CallbackObject::ExceptionHandling, JS::Realm*) /builds/worker/workspace/obj-build/dist/include/mozilla/dom/FunctionBinding.h:71:12
        #22 0x7eff53a8202d in mozilla::dom::CallbackTimeoutHandler::Call(char const*) /dom/base/TimeoutHandler.cpp:167:29
        #23 0x7eff53765851 in nsGlobalWindowInner::RunTimeoutHandler(mozilla::dom::Timeout*, nsIScriptContext*) /dom/base/nsGlobalWindowInner.cpp:6295:38
        #24 0x7eff53a919d8 in mozilla::dom::TimeoutManager::RunTimeout(mozilla::TimeStamp const&, mozilla::TimeStamp const&, bool) /dom/base/TimeoutManager.cpp:893:44
        #25 0x7eff53a7fb70 in mozilla::dom::TimeoutExecutor::MaybeExecute() /dom/base/TimeoutExecutor.cpp:179:11
        #26 0x7eff53a80119 in Notify /dom/base/TimeoutExecutor.cpp:246:5
        #27 0x7eff53a80119 in non-virtual thunk to mozilla::dom::TimeoutExecutor::Notify(nsITimer*) /dom/base/TimeoutExecutor.cpp
        #28 0x7eff51ae0dfd in operator() /xpcom/threads/nsTimerImpl.cpp:654:44
        #29 0x7eff51ae0dfd in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:654:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:658:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:659:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:309:16
        #30 0x7eff51ae0dfd in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:653:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:654:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:658:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:659:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:318:14
        #31 0x7eff51ae0dfd in matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /xpcom/threads/nsTimerImpl.cpp:653:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:654:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:658:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:659:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:902:12
        #32 0x7eff51ae0dfd in match<(lambda at /xpcom/threads/nsTimerImpl.cpp:653:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:654:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:655:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:658:7), (lambda at /xpcom/threads/nsTimerImpl.cpp:659:7)> /builds/worker/workspace/obj-build/dist/include/mozilla/Variant.h:857:12
        #33 0x7eff51ae0dfd in nsTimerImpl::Fire(int) /xpcom/threads/nsTimerImpl.cpp:652:22
        #34 0x7eff51ab333e in nsTimerEvent::Run() /xpcom/threads/TimerThread.cpp:265:11
        #35 0x7eff51ad21fa in mozilla::ThrottledEventQueue::Inner::ExecuteRunnable() /xpcom/threads/ThrottledEventQueue.cpp:254:22
        #36 0x7eff51acf461 in mozilla::ThrottledEventQueue::Inner::Executor::Run() /xpcom/threads/ThrottledEventQueue.cpp:81:15
        #37 0x7eff51ad058e in mozilla::RunnableTask::Run() /xpcom/threads/TaskController.cpp:467:16
        #38 0x7eff51aaa416 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:770:26
        #39 0x7eff51aa90d8 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:606:15
        #40 0x7eff51aa9353 in mozilla::TaskController::ProcessPendingMTTask(bool) /xpcom/threads/TaskController.cpp:390:36
        #41 0x7eff51ad3639 in operator() /xpcom/threads/TaskController.cpp:127:37
        #42 0x7eff51ad3639 in mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_1>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:531:5
        #43 0x7eff51abece3 in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1195:16
        #44 0x7eff51ac5dca in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:467:10
        #45 0x7eff52566344 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:107:5
        #46 0x7eff5248b0f7 in MessageLoop::RunInternal() /ipc/chromium/src/base/message_loop.cc:331:10
        #47 0x7eff5248b002 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3
        #48 0x7eff5248b002 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3
        #49 0x7eff567573d8 in nsBaseAppShell::Run() /widget/nsBaseAppShell.cpp:137:27
        #50 0x7eff587b7033 in XRE_RunAppShell() /toolkit/xre/nsEmbedFunctions.cpp:870:20
        #51 0x7eff5256728a in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:235:9
        #52 0x7eff5248b0f7 in MessageLoop::RunInternal() /ipc/chromium/src/base/message_loop.cc:331:10
        #53 0x7eff5248b002 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3
        #54 0x7eff5248b002 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3
        #55 0x7eff587b666c in XRE_InitChildProcess(int, char**, XREChildData const*) /toolkit/xre/nsEmbedFunctions.cpp:707:34
        #56 0x557b4739d029 in content_process_main /browser/app/../../ipc/contentproc/plugin-container.cpp:57:28
        #57 0x557b4739d029 in main /browser/app/nsBrowserApp.cpp:327:18
        #58 0x7eff6826f0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
        #59 0x557b473787bc in _start (/home/jkratzer/builds/mc-debug/firefox-bin+0x157bc)
    
    UndefinedBehaviorSanitizer can not provide additional info.
    SUMMARY: UndefinedBehaviorSanitizer: SEGV /dom/animation/KeyframeEffect.cpp:952:3 in mozilla::dom::KeyframeEffect::UpdateTargetRegistration()
    ==1715466==ABORTING
Attached file Testcase

The severity field is not set for this bug.
:boris, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(boris.chiou)
Severity: -- → S3
Flags: needinfo?(boris.chiou)
OS: Linux → All
Hardware: x86_64 → All
Assignee: nobody → boris.chiou

:boris, since this bug contains a bisection range, could you fill (if possible) the regressed_by field?
For more information, please visit auto_nag documentation.

Flags: needinfo?(boris.chiou)

Sorry, wrong needinfo because of a bug in the bot.

Flags: needinfo?(boris.chiou)

I cannot reproduce this test now, based on today's nightly debug build.

Perhaps some other bugs fix this. Please feel free to reopen if this is still reproducible.

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

No valid actions for resolution (WORKSFORME).
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

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

Attachment

General

Created:
Updated:
Size: