==4917==ERROR: AddressSanitizer: heap-use-after-free on address 0x7c097a1811c8 at pc 0x558dbd3d55e3 bp 0x7fff247d75c0 sp 0x7fff247d75b8 READ of size 8 at 0x7c097a1811c8 thread T0 (chrome) #0 0x558dbd3d55e2 in v8::internal::CodeEntryStorage::DecRef(v8::internal::CodeEntry*) gen/third_party/libc++/src/include/__atomic/support/c11.h:81:10 #1 0x558dbd3d50a0 in v8::internal::ProfileNode::~ProfileNode() v8/src/profiler/profile-generator.cc:339:53 #2 0x558dbd3d7012 in void v8::internal::ProfileTree::TraverseDepthFirst(v8::internal::DeleteNodesCallback*) v8/src/profiler/profile-generator.cc:463:55 #3 0x558dbd3e3223 in std::__Cr::unique_ptr>::reset(v8::internal::CpuProfile*) v8/src/profiler/profile-generator.cc:476:3 #4 0x558dbd3dd019 in v8::internal::CpuProfilesCollection::RemoveProfile(v8::internal::CpuProfile*) gen/third_party/libc++/src/include/__memory/unique_ptr.h:254:71 #5 0x558dbd376a83 in v8::internal::CpuProfiler::DeleteProfile(v8::internal::CpuProfile*) v8/src/profiler/cpu-profiler.cc:475:14 #6 0x558dde120861 in blink::ProfilerGroup::StopProfiler(blink::ScriptState*, blink::Profiler*, blink::ScriptPromiseResolver*) third_party/blink/renderer/core/timing/profiler_group.cc:309:14 #7 0x558dde135dba in blink::Profiler::stop(blink::ScriptState*) third_party/blink/renderer/core/timing/profiler.cc:92:22 #8 0x558de0187e15 in blink::(anonymous namespace)::v8_profiler::StopOperationCallback(v8::FunctionCallbackInfo const&) gen/third_party/blink/renderer/bindings/core/v8/v8_profiler.cc:177:39 #9 0x558dbbf1f6c4 in v8::internal::(anonymous namespace)::InvokeFunctionCallback(v8::FunctionCallbackInfo const&, v8::internal::CallApiCallbackMode) v8/src/api/api.cc:12393:3 #10 0x558dc10df73d in Builtins_CallApiCallbackGeneric setup-isolate-deserialize.cc #11 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #12 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #13 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #14 0x558dc10da69b in Builtins_JSEntryTrampoline setup-isolate-deserialize.cc #15 0x558dc10da3ea in Builtins_JSEntry setup-isolate-deserialize.cc #16 0x558dbc32f7ad in v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) v8/src/execution/simulator.h:216:12 #17 0x558dbc331f54 in v8::internal::Execution::CallScript(v8::internal::Isolate*, v8::internal::DirectHandle, v8::internal::DirectHandle, v8::internal::DirectHandle) v8/src/execution/execution.cc:574:10 #18 0x558dbbeab228 in v8::Script::Run(v8::Local, v8::Local) v8/src/api/api.cc:2042:7 #19 0x558dda5f1b0d in blink::V8ScriptRunner::RunCompiledScript(v8::Isolate*, v8::Local, v8::Local, blink::ExecutionContext*) third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc:509:22 #20 0x558dda5f3496 in blink::V8ScriptRunner::CompileAndRunScript(blink::ScriptState*, blink::ClassicScript*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc:633:22 #21 0x558dddc658e2 in blink::ClassicScript::RunScriptOnScriptStateAndReturnValue(blink::ScriptState*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/classic_script.cc:227:10 #22 0x558dddcc8717 in blink::Script::RunScriptOnScriptState(blink::ScriptState*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/script.cc:35:17 #23 0x558dddcc8b4b in blink::Script::RunScript(blink::LocalDOMWindow*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/script.cc:42:3 #24 0x558dddce4336 in blink::PendingScript::ExecuteScriptBlockInternal(blink::Script*, blink::ScriptElementBase*, bool, bool, bool, base::TimeTicks, bool) third_party/blink/renderer/core/script/pending_script.cc:312:13 #25 0x558dddce32a6 in blink::PendingScript::ExecuteScriptBlock() third_party/blink/renderer/core/script/pending_script.cc:209:3 #26 0x558dddccef5a in blink::ScriptLoader::PrepareScript(blink::ScriptLoader::ParserBlockingInlineOption, blink::TextPosition const&) third_party/blink/renderer/core/script/script_loader.cc:1175:60 #27 0x558ddf4ba3df in blink::HTMLParserScriptRunner::ProcessScriptElementInternal(blink::Element*, blink::TextPosition const&) third_party/blink/renderer/core/script/html_parser_script_runner.cc:587:52 #28 0x558ddf4b9b86 in blink::HTMLParserScriptRunner::ProcessScriptElement(blink::Element*, blink::TextPosition const&) third_party/blink/renderer/core/script/html_parser_script_runner.cc:297:3 #29 0x558ddf4934dc in blink::HTMLDocumentParser::RunScriptsForPausedTreeBuilder() third_party/blink/renderer/core/html/parser/html_document_parser.cc:668:21 #30 0x558ddf48f90c in blink::HTMLDocumentParser::PumpTokenizer() third_party/blink/renderer/core/html/parser/html_document_parser.h:227:7 #31 0x558ddf48ddea in blink::HTMLDocumentParser::PumpTokenizerIfPossible() third_party/blink/renderer/core/html/parser/html_document_parser.cc:631:15 #32 0x558ddf49c754 in blink::HTMLDocumentParser::FinishAppend() third_party/blink/renderer/core/html/parser/html_document_parser.cc:1034:5 #33 0x558ddf49ceca in blink::HTMLDocumentParser::CommitPreloadedData() third_party/blink/renderer/core/html/parser/html_document_parser.cc:1049:5 #34 0x558ddd3b9bc2 in blink::DocumentLoader::StartLoadingResponse() third_party/blink/renderer/core/loader/document_loader.cc:2172:14 #35 0x558ddd3ca125 in blink::DocumentLoader::CommitNavigation() third_party/blink/renderer/core/loader/document_loader.cc:3238:3 #36 0x558ddd43e4fe in blink::FrameLoader::CommitDocumentLoader(blink::DocumentLoader*, blink::HistoryItem*, blink::CommitReason) third_party/blink/renderer/core/loader/frame_loader.cc:1477:21 #37 0x558ddd44a2cb in blink::FrameLoader::CommitNavigation(std::__Cr::unique_ptr>, std::__Cr::unique_ptr>, blink::CommitReason) third_party/blink/renderer/core/loader/frame_loader.cc:1289:3 #38 0x558ddbdb5a68 in blink::WebLocalFrameImpl::CommitNavigation(std::__Cr::unique_ptr>, std::__Cr::unique_ptr>) third_party/blink/renderer/core/frame/web_local_frame_impl.cc:2839:24 #39 0x558dda2c1303 in content::RenderFrameImpl::CommitNavigationWithParams(mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>) content/renderer/render_frame_impl.cc:2969:11 #40 0x558dda31cca2 in void base::internal::DecayedFunctorTraits, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&, std::__Cr::optional, std::__Cr::allocator>>>&&, mojo::StructPtr&&, mojo::StructPtr&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::PendingAssociatedRemote&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&>::Invoke, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr const&, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>>(void (content::RenderFrameImpl::*)(mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr const&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&, std::__Cr::optional, std::__Cr::allocator>>>&&, mojo::StructPtr&&, mojo::StructPtr&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::PendingAssociatedRemote&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&, std::__Cr::unique_ptr>&&) base/functional/bind_internal.h:740:12 #41 0x558dda31c75b in base::internal::Invoker, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&, std::__Cr::optional, std::__Cr::allocator>>>&&, mojo::StructPtr&&, mojo::StructPtr&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::PendingAssociatedRemote&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&>, base::internal::BindState, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>>, void (std::__Cr::unique_ptr>)>::RunOnce(base::internal::BindStateBase*, std::__Cr::unique_ptr>&&) base/functional/bind_internal.h:956:5 #42 0x558dda2c24eb in base::OnceCallback>)>::Run(std::__Cr::unique_ptr>) && base/functional/callback.h:155:12 #43 0x558dda2bbeec in content::RenderFrameImpl::CommitNavigation(mojo::StructPtr, mojo::StructPtr, mojo::StructPtr, mojo::ScopedHandleBase, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, base::TokenType const&, base::UnguessableToken const&, base::Uuid const&, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, base::OnceCallback, mojo::StructPtr)>) content/renderer/render_frame_impl.cc:2827:33 #44 0x558dda39975d in content::NavigationClient::CommitNavigation(mojo::StructPtr, mojo::StructPtr, mojo::StructPtr, mojo::ScopedHandleBase, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, base::TokenType const&, base::UnguessableToken const&, base::Uuid const&, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, base::OnceCallback, mojo::StructPtr)>) content/renderer/navigation_client.cc:87:18 #45 0x558dbbd23f8c in content::mojom::NavigationClientStubDispatch::AcceptWithResponder(content::mojom::NavigationClient*, mojo::Message*, std::__Cr::unique_ptr>) gen/content/common/navigation_client.mojom.cc:1746:13 #46 0x558dcdf441b0 in mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:1036:56 #47 0x558dcdf61ef1 in mojo::MessageDispatcher::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/message_dispatcher.cc:44:19 #48 0x558dcdf4a513 in mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:747:20 #49 0x558dd1e6a7dd in IPC::ChannelAssociatedGroupController::AcceptOnEndpointThread(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification) ipc/ipc_mojo_bootstrap.cc:1199:24 #50 0x558dd1e6cc65 in base::internal::Invoker, base::internal::BindState, mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification>, void ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #51 0x558dce184326 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&) base/functional/callback.h:155:12 #52 0x558dce1fb9c9 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*) base/task/common/task_annotator.h:112:5 #53 0x558dce1fa83a in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:340:40 #54 0x558dce042927 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:42:55 #55 0x558dce1fd0d7 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:644:12 #56 0x558dce0feca0 in base::RunLoop::Run(base::Location const&) base/run_loop.cc:135:14 #57 0x558dda4881fb in content::RendererMain(content::MainFunctionParams) content/renderer/renderer_main.cc:337:16 #58 0x558dc9c9c6ef in content::RunZygote(content::ContentMainDelegate*) content/app/content_main_runner_impl.cc:664:14 #59 0x558dc9c9da1f in content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string, std::__Cr::allocator> const&, content::MainFunctionParams, content::ContentMainDelegate*) content/app/content_main_runner_impl.cc:771:12 #60 0x558dc9ca0728 in content::ContentMainRunnerImpl::Run() content/app/content_main_runner_impl.cc:1152:10 #61 0x558dc9c9a101 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) content/app/content_main.cc:358:36 #62 0x558dc9c9a6fc in content::ContentMain(content::ContentMainParams) content/app/content_main.cc:371:10 #63 0x558db61ceb39 in ChromeMain chrome/app/chrome_main.cc:191:12 #64 0x7f997be2b249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7c097a1811c8 is located 8 bytes inside of 80-byte region [0x7c097a1811c0,0x7c097a181210) freed by thread T11 (v8:ProfEvntProc) here: #0 0x558db61ce002 in operator delete(void*, unsigned long) (/chromium/chromium/src/out/asan/chrome+0x10e09002) (BuildId: 1a2d8765960f9285) #1 0x558dbd3d55a4 in v8::internal::CodeEntryStorage::DecRef(v8::internal::CodeEntry*) v8/src/profiler/profile-generator.cc:984:5 #2 0x558dbd3db1d6 in v8::internal::InstructionStreamMap::RemoveCode(v8::internal::CodeEntry*) v8/src/profiler/profile-generator.cc:1016:21 #3 0x558dbd374c85 in v8::internal::ProfilerCodeObserver::CodeEventHandlerInternal(v8::internal::CodeEventsContainer const&) v8/src/profiler/cpu-profiler-inl.h:83:42 #4 0x558dbd374892 in v8::internal::ProfilerEventsProcessor::ProcessCodeEvent() v8/src/profiler/cpu-profiler.cc:210:23 #5 0x558dbd375fe2 in v8::internal::SamplingEventsProcessor::Run() v8/src/profiler/cpu-profiler.cc:295:9 #6 0x558dd44622ed in v8::base::ThreadEntry(void*) v8/src/base/platform/platform-posix.cc:1307:11 #7 0x558db6191c46 in asan_thread_start(void*) asan_interceptors.cpp previously allocated by thread T0 (chrome) here: #0 0x558db61cd3fd in operator new(unsigned long) (/chromium/chromium/src/out/asan/chrome+0x10e083fd) (BuildId: 1a2d8765960f9285) #1 0x558dbd3eb5a5 in v8::internal::ProfilerListener::CodeCreateEvent(v8::internal::LogEventListener::CodeTag, v8::internal::DirectHandle, v8::internal::DirectHandle, v8::internal::DirectHandle, int, int) v8/src/profiler/profile-generator.h:548:30 #2 0x558dbc11dc82 in v8::internal::Compiler::LogFunctionCompilation(v8::internal::Isolate*, v8::internal::LogEventListener::CodeTag, v8::internal::DirectHandle, v8::internal::DirectHandle, v8::internal::DirectHandle, v8::internal::DirectHandle, v8::internal::CodeKind, double) v8/src/logging/code-events.h:193:17 #3 0x558dbc14d354 in v8::internal::Compiler::FinalizeMaglevCompilationJob(v8::internal::maglev::MaglevCompilationJob*, v8::internal::Isolate*) v8/src/codegen/compiler.cc:1225:3 #4 0x558dbdd9c882 in v8::internal::maglev::MaglevConcurrentDispatcher::FinalizeFinishedJobs() v8/src/maglev/maglev-concurrent-dispatcher.cc:375:5 #5 0x558dbc3e2b8d in v8::internal::StackGuard::HandleInterrupts(v8::internal::StackGuard::InterruptLevel) v8/src/execution/stack-guard.cc:378:47 #6 0x558dbd60c0f6 in v8::internal::(anonymous namespace)::BytecodeBudgetInterruptWithStackCheck(v8::internal::Isolate*, v8::internal::Arguments<(v8::internal::ArgumentsType)0>&, v8::internal::CodeKind) v8/src/runtime/runtime-internal.cc:429:59 #7 0x558dbd5f814e in v8::internal::Runtime_BytecodeBudgetInterruptWithStackCheck_Ignition(int, unsigned long*, v8::internal::Isolate*) v8/src/runtime/runtime-internal.cc:455:10 #8 0x558dc1191bb5 in Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit setup-isolate-deserialize.cc #9 0x558dc12a954d in Builtins_JumpLoopHandler setup-isolate-deserialize.cc #10 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #11 0x558d80a428e6 () #12 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #13 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #14 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #15 0x558dc10da69b in Builtins_JSEntryTrampoline setup-isolate-deserialize.cc #16 0x558dc10da3ea in Builtins_JSEntry setup-isolate-deserialize.cc #17 0x558dbc32f7ad in v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) v8/src/execution/simulator.h:216:12 #18 0x558dbc331f54 in v8::internal::Execution::CallScript(v8::internal::Isolate*, v8::internal::DirectHandle, v8::internal::DirectHandle, v8::internal::DirectHandle) v8/src/execution/execution.cc:574:10 #19 0x558dbbeab228 in v8::Script::Run(v8::Local, v8::Local) v8/src/api/api.cc:2042:7 #20 0x558dda5f1b0d in blink::V8ScriptRunner::RunCompiledScript(v8::Isolate*, v8::Local, v8::Local, blink::ExecutionContext*) third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc:509:22 #21 0x558dda5f3496 in blink::V8ScriptRunner::CompileAndRunScript(blink::ScriptState*, blink::ClassicScript*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc:633:22 #22 0x558dddc658e2 in blink::ClassicScript::RunScriptOnScriptStateAndReturnValue(blink::ScriptState*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/classic_script.cc:227:10 #23 0x558dddcc8717 in blink::Script::RunScriptOnScriptState(blink::ScriptState*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/script.cc:35:17 #24 0x558dddcc8b4b in blink::Script::RunScript(blink::LocalDOMWindow*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/script.cc:42:3 #25 0x558dddce4336 in blink::PendingScript::ExecuteScriptBlockInternal(blink::Script*, blink::ScriptElementBase*, bool, bool, bool, base::TimeTicks, bool) third_party/blink/renderer/core/script/pending_script.cc:312:13 #26 0x558dddce32a6 in blink::PendingScript::ExecuteScriptBlock() third_party/blink/renderer/core/script/pending_script.cc:209:3 #27 0x558dddccef5a in blink::ScriptLoader::PrepareScript(blink::ScriptLoader::ParserBlockingInlineOption, blink::TextPosition const&) third_party/blink/renderer/core/script/script_loader.cc:1175:60 #28 0x558ddf4ba3df in blink::HTMLParserScriptRunner::ProcessScriptElementInternal(blink::Element*, blink::TextPosition const&) third_party/blink/renderer/core/script/html_parser_script_runner.cc:587:52 #29 0x558ddf4b9b86 in blink::HTMLParserScriptRunner::ProcessScriptElement(blink::Element*, blink::TextPosition const&) third_party/blink/renderer/core/script/html_parser_script_runner.cc:297:3 Thread T11 (v8:ProfEvntProc) created by T0 (chrome) here: #0 0x558db6177a71 in pthread_create (/chromium/chromium/src/out/asan/chrome+0x10db2a71) (BuildId: 1a2d8765960f9285) #1 0x558dd446212b in v8::base::Thread::Start() v8/src/base/platform/platform-posix.cc:1339:14 #2 0x558dbd378d15 in v8::internal::CpuProfiler::StartProcessorIfNotStarted() v8/src/base/platform/platform.h:596:10 #3 0x558dbd3785df in v8::internal::CpuProfiler::StartProfiling(char const*, v8::CpuProfilingOptions, std::__Cr::unique_ptr>) v8/src/profiler/cpu-profiler.cc:658:5 #4 0x558dbd379005 in v8::internal::CpuProfiler::StartProfiling(v8::internal::Tagged, v8::CpuProfilingOptions, std::__Cr::unique_ptr>) v8/src/profiler/cpu-profiler.cc:693:10 #5 0x558dbbf1b5cb in v8::CpuProfiler::StartProfiling(v8::Local, v8::CpuProfilingOptions, std::__Cr::unique_ptr>) v8/src/api/api.cc:11617:51 #6 0x558dde11ed38 in blink::ProfilerGroup::CreateProfiler(blink::ScriptState*, blink::ProfilerInitOptions const&, base::TimeTicks, blink::ExceptionState&) third_party/blink/renderer/core/timing/profiler_group.cc:186:50 #7 0x558dde135458 in blink::Profiler::Create(blink::ScriptState*, blink::ProfilerInitOptions const*, blink::ExceptionState&) third_party/blink/renderer/core/timing/profiler.cc:48:36 #8 0x558de01876a2 in blink::(anonymous namespace)::v8_profiler::ConstructorCallback(v8::FunctionCallbackInfo const&) gen/third_party/blink/renderer/bindings/core/v8/v8_profiler.cc:149:23 #9 0x558dbbfdfcde in v8::internal::FunctionCallbackArguments::CallOrConstruct(v8::internal::Isolate*, v8::internal::Tagged, bool) v8/src/api/api-arguments-inl.h:176:3 #10 0x558dbbfdc6eb in v8::internal::Builtin_Impl_HandleApiConstruct(v8::internal::BuiltinArguments, v8::internal::Isolate*) v8/src/builtins/builtins-api.cc:117:27 #11 0x558dc1191af5 in Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit setup-isolate-deserialize.cc #12 0x558dc10de1a9 in Builtins_InterpreterPushArgsThenFastConstructFunction setup-isolate-deserialize.cc #13 0x558dc12a2857 in Builtins_ConstructHandler setup-isolate-deserialize.cc #14 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #15 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #16 0x558dc10dd902 in Builtins_InterpreterEntryTrampoline setup-isolate-deserialize.cc #17 0x558dc10da69b in Builtins_JSEntryTrampoline setup-isolate-deserialize.cc #18 0x558dc10da3ea in Builtins_JSEntry setup-isolate-deserialize.cc #19 0x558dbc32f7ad in v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) v8/src/execution/simulator.h:216:12 #20 0x558dbc331f54 in v8::internal::Execution::CallScript(v8::internal::Isolate*, v8::internal::DirectHandle, v8::internal::DirectHandle, v8::internal::DirectHandle) v8/src/execution/execution.cc:574:10 #21 0x558dbbeab228 in v8::Script::Run(v8::Local, v8::Local) v8/src/api/api.cc:2042:7 #22 0x558dda5f1b0d in blink::V8ScriptRunner::RunCompiledScript(v8::Isolate*, v8::Local, v8::Local, blink::ExecutionContext*) third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc:509:22 #23 0x558dda5f3496 in blink::V8ScriptRunner::CompileAndRunScript(blink::ScriptState*, blink::ClassicScript*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc:633:22 #24 0x558dddc658e2 in blink::ClassicScript::RunScriptOnScriptStateAndReturnValue(blink::ScriptState*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/classic_script.cc:227:10 #25 0x558dddcc8717 in blink::Script::RunScriptOnScriptState(blink::ScriptState*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/script.cc:35:17 #26 0x558dddcc8b4b in blink::Script::RunScript(blink::LocalDOMWindow*, blink::ExecuteScriptPolicy, blink::V8ScriptRunner::RethrowErrorsOption) third_party/blink/renderer/core/script/script.cc:42:3 #27 0x558dddce4336 in blink::PendingScript::ExecuteScriptBlockInternal(blink::Script*, blink::ScriptElementBase*, bool, bool, bool, base::TimeTicks, bool) third_party/blink/renderer/core/script/pending_script.cc:312:13 #28 0x558dddce32a6 in blink::PendingScript::ExecuteScriptBlock() third_party/blink/renderer/core/script/pending_script.cc:209:3 #29 0x558dddccef5a in blink::ScriptLoader::PrepareScript(blink::ScriptLoader::ParserBlockingInlineOption, blink::TextPosition const&) third_party/blink/renderer/core/script/script_loader.cc:1175:60 #30 0x558ddf4ba3df in blink::HTMLParserScriptRunner::ProcessScriptElementInternal(blink::Element*, blink::TextPosition const&) third_party/blink/renderer/core/script/html_parser_script_runner.cc:587:52 #31 0x558ddf4b9b86 in blink::HTMLParserScriptRunner::ProcessScriptElement(blink::Element*, blink::TextPosition const&) third_party/blink/renderer/core/script/html_parser_script_runner.cc:297:3 #32 0x558ddf4934dc in blink::HTMLDocumentParser::RunScriptsForPausedTreeBuilder() third_party/blink/renderer/core/html/parser/html_document_parser.cc:668:21 #33 0x558ddf48f90c in blink::HTMLDocumentParser::PumpTokenizer() third_party/blink/renderer/core/html/parser/html_document_parser.h:227:7 #34 0x558ddf48ddea in blink::HTMLDocumentParser::PumpTokenizerIfPossible() third_party/blink/renderer/core/html/parser/html_document_parser.cc:631:15 #35 0x558ddf49c754 in blink::HTMLDocumentParser::FinishAppend() third_party/blink/renderer/core/html/parser/html_document_parser.cc:1034:5 #36 0x558ddf49ceca in blink::HTMLDocumentParser::CommitPreloadedData() third_party/blink/renderer/core/html/parser/html_document_parser.cc:1049:5 #37 0x558ddd3b9bc2 in blink::DocumentLoader::StartLoadingResponse() third_party/blink/renderer/core/loader/document_loader.cc:2172:14 #38 0x558ddd3ca125 in blink::DocumentLoader::CommitNavigation() third_party/blink/renderer/core/loader/document_loader.cc:3238:3 #39 0x558ddd43e4fe in blink::FrameLoader::CommitDocumentLoader(blink::DocumentLoader*, blink::HistoryItem*, blink::CommitReason) third_party/blink/renderer/core/loader/frame_loader.cc:1477:21 #40 0x558ddd44a2cb in blink::FrameLoader::CommitNavigation(std::__Cr::unique_ptr>, std::__Cr::unique_ptr>, blink::CommitReason) third_party/blink/renderer/core/loader/frame_loader.cc:1289:3 #41 0x558ddbdb5a68 in blink::WebLocalFrameImpl::CommitNavigation(std::__Cr::unique_ptr>, std::__Cr::unique_ptr>) third_party/blink/renderer/core/frame/web_local_frame_impl.cc:2839:24 #42 0x558dda2c1303 in content::RenderFrameImpl::CommitNavigationWithParams(mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>) content/renderer/render_frame_impl.cc:2969:11 #43 0x558dda31cca2 in void base::internal::DecayedFunctorTraits, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&, std::__Cr::optional, std::__Cr::allocator>>>&&, mojo::StructPtr&&, mojo::StructPtr&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::PendingAssociatedRemote&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&>::Invoke, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr const&, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>>(void (content::RenderFrameImpl::*)(mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr const&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&, std::__Cr::optional, std::__Cr::allocator>>>&&, mojo::StructPtr&&, mojo::StructPtr&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::PendingAssociatedRemote&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&, std::__Cr::unique_ptr>&&) base/functional/bind_internal.h:740:12 #44 0x558dda31c75b in base::internal::Invoker, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&, std::__Cr::optional, std::__Cr::allocator>>>&&, mojo::StructPtr&&, mojo::StructPtr&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::PendingAssociatedRemote&&, mojo::PendingRemote&&, mojo::PendingRemote&&, mojo::StructPtr&&, mojo::StructPtr&&, std::__Cr::unique_ptr>&&>, base::internal::BindState, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::unique_ptr>), base::WeakPtr, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, std::__Cr::unique_ptr>>, void (std::__Cr::unique_ptr>)>::RunOnce(base::internal::BindStateBase*, std::__Cr::unique_ptr>&&) base/functional/bind_internal.h:956:5 #45 0x558dda2c24eb in base::OnceCallback>)>::Run(std::__Cr::unique_ptr>) && base/functional/callback.h:155:12 #46 0x558dda2bbeec in content::RenderFrameImpl::CommitNavigation(mojo::StructPtr, mojo::StructPtr, mojo::StructPtr, mojo::ScopedHandleBase, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, base::TokenType const&, base::UnguessableToken const&, base::Uuid const&, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, base::OnceCallback, mojo::StructPtr)>) content/renderer/render_frame_impl.cc:2827:33 #47 0x558dda39975d in content::NavigationClient::CommitNavigation(mojo::StructPtr, mojo::StructPtr, mojo::StructPtr, mojo::ScopedHandleBase, mojo::StructPtr, std::__Cr::unique_ptr>, std::__Cr::optional, std::__Cr::allocator>>>, mojo::StructPtr, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::PendingAssociatedRemote, base::TokenType const&, base::UnguessableToken const&, base::Uuid const&, mojo::StructPtr, mojo::PendingRemote, mojo::PendingRemote, mojo::StructPtr, mojo::StructPtr, base::OnceCallback, mojo::StructPtr)>) content/renderer/navigation_client.cc:87:18 #48 0x558dbbd23f8c in content::mojom::NavigationClientStubDispatch::AcceptWithResponder(content::mojom::NavigationClient*, mojo::Message*, std::__Cr::unique_ptr>) gen/content/common/navigation_client.mojom.cc:1746:13 #49 0x558dcdf441b0 in mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:1036:56 #50 0x558dcdf61ef1 in mojo::MessageDispatcher::Accept(mojo::Message*) mojo/public/cpp/bindings/lib/message_dispatcher.cc:44:19 #51 0x558dcdf4a513 in mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*) mojo/public/cpp/bindings/lib/interface_endpoint_client.cc:747:20 #52 0x558dd1e6a7dd in IPC::ChannelAssociatedGroupController::AcceptOnEndpointThread(mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification) ipc/ipc_mojo_bootstrap.cc:1199:24 #53 0x558dd1e6cc65 in base::internal::Invoker, base::internal::BindState, mojo::Message, IPC::(anonymous namespace)::ScopedUrgentMessageNotification>, void ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #54 0x558dce184326 in base::TaskAnnotator::RunTaskImpl(base::PendingTask&) base/functional/callback.h:155:12 #55 0x558dce1fb9c9 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::LazyNow*) base/task/common/task_annotator.h:112:5 #56 0x558dce1fa83a in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:340:40 #57 0x558dce042927 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_default.cc:42:55 #58 0x558dce1fd0d7 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:644:12 #59 0x558dce0feca0 in base::RunLoop::Run(base::Location const&) base/run_loop.cc:135:14 #60 0x558dda4881fb in content::RendererMain(content::MainFunctionParams) content/renderer/renderer_main.cc:337:16 #61 0x558dc9c9c6ef in content::RunZygote(content::ContentMainDelegate*) content/app/content_main_runner_impl.cc:664:14 #62 0x558dc9c9da1f in content::RunOtherNamedProcessTypeMain(std::__Cr::basic_string, std::__Cr::allocator> const&, content::MainFunctionParams, content::ContentMainDelegate*) content/app/content_main_runner_impl.cc:771:12 #63 0x558dc9ca0728 in content::ContentMainRunnerImpl::Run() content/app/content_main_runner_impl.cc:1152:10 #64 0x558dc9c9a101 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) content/app/content_main.cc:358:36 #65 0x558dc9c9a6fc in content::ContentMain(content::ContentMainParams) content/app/content_main.cc:371:10 #66 0x558db61ceb39 in ChromeMain chrome/app/chrome_main.cc:191:12 #67 0x7f997be2b249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-use-after-free gen/third_party/libc++/src/include/__atomic/support/c11.h:81:10 in v8::internal::CodeEntryStorage::DecRef(v8::internal::CodeEntry*) Shadow bytes around the buggy address: 0x7c097a180f00: fa fa f7 fa fd fd fd fd fd fd fd fd fd fa fa fa 0x7c097a180f80: f7 fa 00 00 00 00 00 00 00 00 00 00 fa fa f7 fa 0x7c097a181000: fd fd fd fd fd fd fd fd fd fa fa fa f7 fa 00 00 0x7c097a181080: 00 00 00 00 00 00 00 00 fa fa f7 fa fd fd fd fd 0x7c097a181100: fd fd fd fd fd fa fa fa f7 fa fd fd fd fd fd fd =>0x7c097a181180: fd fd fd fa fa fa f7 fa fd[fd]fd fd fd fd fd fd 0x7c097a181200: fd fd fa fa f7 fa fd fd fd fd fd fd fd fd fd fa 0x7c097a181280: fa fa f7 fa fd fd fd fd fd fd fd fd fd fa fa fa 0x7c097a181300: f7 fa 00 00 00 00 00 00 00 00 00 00 fa fa f7 fa 0x7c097a181380: fd fd fd fd fd fd fd fd fd fa fa fa f7 fa fd fd 0x7c097a181400: fd fd fd fd fd fd fd fa fa fa f7 fa fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==4917==ADDITIONAL INFO ==4917==Note: Please include this section with the ASan report. Task trace: #0 0x558dd1e63df7 in IPC::ChannelAssociatedGroupController::Accept(mojo::Message*) ipc/ipc_mojo_bootstrap.cc:1138:13 Command line: `/proc/self/exe --type=renderer --crashpad-handler-pid=4841 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/chrome-poc-profile --change-stack-guard-on-fork=enable --no-sandbox --ozone-platform=headless --disable-gpu-compositing --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1775711236998024 --launch-time-ticks=123618613658 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,4959840252421997571,14976285596902355503,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,10577746972823914524,15057221306484008443,4 --trace-process-track-uuid=3190708990997080739 --enable-logging=stderr --v=0` MiraclePtr Status: NOT PROTECTED No raw_ptr access to this region was detected prior to this crash. This crash is still exploitable with MiraclePtr. Refer to https://chromium.googlesource.com/chromium/src/+/main/base/memory/raw_ptr.md for details. ==4917==END OF ADDITIONAL INFO ==4917==ABORTING