Skip to content

Investigate tree sitter OOM on arm #273191

Closed

Description

@Tyriar

#273177 caused us to disable auto approval for pwsh on arm in #273179. Robo (@deepak1556) would you be able to investigate the root cause a little here? We want to re-enable this but I don't know where to start, I'm guessing the problem is in the tree sitter library itself as I wouldn't have expected a grammar to cause an oom like that. Especially after it had seemingly already done it's work as the repro gif posted in #273177 shows that the tree sitter work is already completed.

Activity

  1. added
    bug
    freeze-slow-crash-leak
    chat-terminal
    important
    on Oct 24, 2025
  2. hediet commented on Oct 27, 2025

    @hediet
    Member

    Btw, grammars are just general purpose wasm files (compiled from tree-sitter-generated C code).
    I believe the tokenizer is usually hand-written, and thus can cause arbitrary code defects (endless loops, OOM, generally being slow).

    This is a major problem of treesitter.
    (though I also think in this case it might even be an electron bug, as it only happens when the dev-tools are not attached)

  3. deepak1556 commented on Oct 30, 2025

    @deepak1556
    Collaborator

    Crash is from thread that was attempting to compile the wasm through the optimizing compiler (turboshaft)

    Crash reason:  Out of Memory
    Crash address: 0x7ff924186034
    Process uptime: 24 seconds
    
    Thread 2 (crashed)
     0  KERNELBASE.dll + 0x126034
         x0 = 0x0000000000000000    x1 = 0x0000000000000000
         x2 = 0x0000000000000000    x3 = 0x0000000000000000
         x4 = 0x0000000000000000    x5 = 0x0000000000000000
         x6 = 0x0000000000000000    x7 = 0x0000000000000000
         x8 = 0x0000000000000000    x9 = 0x0000000000000000
        x10 = 0x0000000000000000   x11 = 0x0000000000000000
        x12 = 0x0000000000000000   x13 = 0x0000000000000000
        x14 = 0x0000000000000000   x15 = 0x0000000000000000
        x16 = 0x0000000000000000   x17 = 0x0000000000000000
        x18 = 0x0000000000000000   x19 = 0x0000000000000000
        x20 = 0x00007ff712fcfd10   x21 = 0x000000da301fd660
        x22 = 0x0000000000000040   x23 = 0x000001dc32149080
        x24 = 0x000053ac1655d718   x25 = 0x000053ac128c4598
        x26 = 0x0000000000000f1b   x27 = 0x000053ac1289f198
        x28 = 0x000053ac0b700018    fp = 0x000000da301fd590
         lr = 0x00007ff924186034    sp = 0x000000da301fd4f0
         pc = 0x00007ff924186034
        Found by: given as instruction pointer in context
     1  KERNELBASE.dll + 0x126030
         fp = 0x000000da301fd608    lr = 0x00007ff70ab59bf8
         sp = 0x000000da301fd5a0    pc = 0x00007ff924186034
        Found by: previous frame's frame pointer
     2  Code - OSS.exe!static void partition_alloc::internal::OnNoMemoryInternal(unsigned __int64) [oom.cc : 68 + 0x1c]
         fp = 0x000000da301fd620    lr = 0x00007ff70ab59c14
         sp = 0x000000da301fd618    pc = 0x00007ff70ab59bf8
        Found by: previous frame's frame pointer
     3  Code - OSS.exe!partition_alloc::TerminateBecauseOutOfMemory(unsigned __int64) [oom.cc : 92 + 0x0]
         fp = 0x000000da301fd638    lr = 0x00007ff70ab59c34
         sp = 0x000000da301fd630    pc = 0x00007ff70ab59c14
        Found by: previous frame's frame pointer
     4  Code - OSS.exe!partition_alloc::internal::OnNoMemory(unsigned __int64) [oom.cc : 102 + 0x4]
         fp = 0x000000da301fd7c0    lr = 0x00007ff70bb89db8
         sp = 0x000000da301fd648    pc = 0x00007ff70ab59c34
        Found by: previous frame's frame pointer
     5  Code - OSS.exe!static void blink::ReportV8OOMError(const char *, const struct v8::OOMDetails & const) [v8_initializer.cc : 841 + 0x4]
         fp = 0x000000da301fdad0    lr = 0x00007ff70e014e8c
         sp = 0x000000da301fd7d0    pc = 0x00007ff70bb89db8
        Found by: previous frame's frame pointer
     6  Code - OSS.exe!v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate *,char const *,v8::OOMDetails const &) [api.cc : 231 + 0x18]
         fp = 0x000000da301fdae8    lr = 0x00007ff70c83e6cc
         sp = 0x000000da301fdae0    pc = 0x00007ff70e014e8c
        Found by: previous frame's frame pointer
     7  Code - OSS.exe!v8::internal::Zone::Expand(unsigned __int64) [zone.cc : 194 + 0x24]
         fp = 0x000000da301fdc30    lr = 0x00007ff70cae22ec
         sp = 0x000000da301fdaf8    pc = 0x00007ff70c83e6cc
        Found by: previous frame's frame pointer
     8  Code - OSS.exe!static bool v8::internal::compiler::turboshaft::Assembler<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor,v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer,v8::internal::compiler::turboshaft::LoopUnrollingReducer,v8::internal::compiler::turboshaft::MachineOptimizationReducer,v8::internal::compiler::turboshaft::ValueNumberingReducer,v8::internal::compiler::turboshaft::TSReducerBase> >::Bind(class v8::internal::compiler::turboshaft::Block *) [assembler.h : 5389 + 0x310]
         fp = 0x000000da301fe210    lr = 0x00007ff70cadf938
         sp = 0x000000da301fdc40    pc = 0x00007ff70cae22ec
        Found by: previous frame's frame pointer
     9  Code - OSS.exe!static void v8::internal::compiler::turboshaft::GraphVisitor<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor,v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer,v8::internal::compiler::turboshaft::LoopUnrollingReducer,v8::internal::compiler::turboshaft::MachineOptimizationReducer,v8::internal::compiler::turboshaft::ValueNumberingReducer,v8::internal::compiler::turboshaft::TSReducerBase> > > > > > > > > >::VisitAllBlocks<0>() [copying-phase.h : 490 + 0x5c]
         fp = 0x000000da301fe6d8    lr = 0x00007ff70cadea74
         sp = 0x000000da301fe220    pc = 0x00007ff70cadf938
        Found by: previous frame's frame pointer
    10  Code - OSS.exe!static void v8::internal::compiler::turboshaft::CopyingPhaseImpl<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer,v8::internal::compiler::turboshaft::LoopUnrollingReducer,v8::internal::compiler::turboshaft::MachineOptimizationReducer,v8::internal::compiler::turboshaft::ValueNumberingReducer>::Run(class v8::internal::compiler::turboshaft::PipelineData *, class v8::internal::compiler::turboshaft::Graph & const, class v8::internal::Zone *, bool) [copying-phase.h : 1059 + 0x0]
         fp = 0x000000da301fe848    lr = 0x00007ff70cade8e8
         sp = 0x000000da301fe6e8    pc = 0x00007ff70cadea74
        Found by: previous frame's frame pointer
    11  Code - OSS.exe!v8::internal::compiler::turboshaft::LoopUnrollingPhase::Run(v8::internal::compiler::turboshaft::PipelineData *,v8::internal::Zone *) [loop-unrolling-phase.cc : 23 + 0x20]
         fp = 0x000000da301fe8a8    lr = 0x00007ff709ff49a8
         sp = 0x000000da301fe858    pc = 0x00007ff70cade8e8
        Found by: previous frame's frame pointer
    12  Code - OSS.exe!static bool v8::internal::compiler::turboshaft::Pipeline::Run<v8::internal::compiler::turboshaft::LoopUnrollingPhase>() [pipelines.h : 85 + 0x8]
         fp = 0x000000da301ff200    lr = 0x00007ff709ff3bd8
         sp = 0x000000da301fe8b8    pc = 0x00007ff709ff49a8
        Found by: previous frame's frame pointer
    13  Code - OSS.exe!v8::internal::compiler::Pipeline::GenerateWasmCode(v8::internal::wasm::CompilationEnv *,v8::internal::compiler::WasmCompilationData &,v8::internal::wasm::WasmDetectedFeatures *,v8::internal::Counters *) [pipeline.cc : 2951 + 0x4]
         fp = 0x000000da301ff220    lr = 0x00007ff70a08a0ec
         sp = 0x000000da301ff210    pc = 0x00007ff709ff3bd8
        Found by: previous frame's frame pointer
    14  Code - OSS.exe!v8::internal::compiler::turboshaft::ExecuteTurboshaftWasmCompilation(v8::internal::wasm::CompilationEnv *,v8::internal::compiler::WasmCompilationData &,v8::internal::wasm::WasmDetectedFeatures *,v8::internal::Counters *) [wasm-turboshaft-compiler.cc : 24 + 0x0]
         fp = 0x000000da301ff400    lr = 0x00007ff709e4bfdc
         sp = 0x000000da301ff230    pc = 0x00007ff70a08a0ec
        Found by: previous frame's frame pointer
    15  Code - OSS.exe!v8::internal::wasm::WasmCompilationUnit::ExecuteCompilation(v8::internal::wasm::CompilationEnv *,v8::internal::wasm::WireBytesStorage const *,v8::internal::Counters *,v8::internal::wasm::WasmDetectedFeatures *) [function-compiler.cc : 137 + 0x0]
         fp = 0x000000da301ff630    lr = 0x00007ff709e53c00
         sp = 0x000000da301ff410    pc = 0x00007ff709e4bfdc
        Found by: previous frame's frame pointer
    16  Code - OSS.exe!static v8::internal::wasm::`anonymous namespace'::CompilationExecutionResult v8::internal::wasm::`anonymous namespace'::ExecuteCompilationUnits(class std::__Cr::weak_ptr<v8::internal::wasm::NativeModule>, class v8::internal::Counters *, class v8::JobDelegate *, v8::internal::wasm::`anonymous namespace'::CompilationTier) [module-compiler.cc : 2097 + 0x14]
         fp = 0x000000da301ff670    lr = 0x00007ff709e531dc
         sp = 0x000000da301ff640    pc = 0x00007ff709e53c00
        Found by: previous frame's frame pointer
    17  Code - OSS.exe!v8::internal::wasm::`anonymous namespace'::BackgroundCompileJob::Run(internal::JobDelegate *) [module-compiler.cc : 2355 + 0x8]
         fp = 0x000000da301ff6a0    lr = 0x00007ff70cfe9288
         sp = 0x000000da301ff680    pc = 0x00007ff709e531dc
        Found by: previous frame's frame pointer
    18  Code - OSS.exe!static void base::internal::Invoker<base::internal::FunctorTraits<const `lambda at ..\..\gin\v8_platform.cc:291:11' &,const std::__Cr::unique_ptr<v8::JobTask,std::__Cr::default_delete<v8::JobTask> > &>,base::internal::BindState<0,0,0,`lambda at ..\..\gin\v8_platform.cc:291:11',std::__Cr::unique_ptr<v8::JobTask,std::__Cr::default_delete<v8::JobTask> > >,void (base::JobDelegate *)>::Run(class base::internal::BindStateBase *, class base::JobDelegate *) [bind_internal.h : 980 + 0x34]
         fp = 0x000000da301ff6e0    lr = 0x00007ff70cdd1580
         sp = 0x000000da301ff6b0    pc = 0x00007ff70cfe9288
        Found by: previous frame's frame pointer
    19  Code - OSS.exe!static void base::internal::Invoker<base::internal::FunctorTraits<const `lambda at ..\..\base\task\thread_pool\job_task_source.cc:97:11' &,base::internal::JobTaskSource *>,base::internal::BindState<0,0,0,`lambda at ..\..\base\task\thread_pool\job_task_source.cc:97:11',base::internal::UnretainedWrapper<base::internal::JobTaskSource,base::unretained_traits::MayNotDangle,0> >,void ()>::Run(class base::internal::BindStateBase *) [bind_internal.h : 980 + 0x4c]
         fp = 0x000000da301ff768    lr = 0x00007ff70cde58b8
         sp = 0x000000da301ff6f0    pc = 0x00007ff70cdd1580
        Found by: previous frame's frame pointer
    20  Code - OSS.exe!base::TaskAnnotator::RunTaskImpl(base::PendingTask &) [task_annotator.cc : 209 + 0x20]
         fp = 0x000000da301ff7f8    lr = 0x00007ff70cdcda18
         sp = 0x000000da301ff778    pc = 0x00007ff70cde58b8
        Found by: previous frame's frame pointer
    21  Code - OSS.exe!static void base::internal::TaskTracker::RunSkipOnShutdown(struct base::internal::Task & const, const class base::TaskTraits & const, class base::internal::TaskSource *, const class base::internal::SequenceToken & const) [task_tracker.cc : 676 + 0x4c]
         fp = 0x000000da301ffb68    lr = 0x00007ff70cdcd0e8
         sp = 0x000000da301ff808    pc = 0x00007ff70cdcda18
        Found by: previous frame's frame pointer
    22  Code - OSS.exe!base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) [task_tracker.cc : 394 + 0x1a0]
         fp = 0x000000da301ffc60    lr = 0x00007ff70cdc9550
         sp = 0x000000da301ffb78    pc = 0x00007ff70cdcd0e8
        Found by: previous frame's frame pointer
    23  Code - OSS.exe!static void base::internal::WorkerThread::RunWorker() [worker_thread.cc : 473 + 0x18]
         fp = 0x000000da301ffc80    lr = 0x00007ff70aaf8670
         sp = 0x000000da301ffc70    pc = 0x00007ff70cdc9550
        Found by: previous frame's frame pointer
    24  Code - OSS.exe!static void base::internal::WorkerThread::RunPooledWorker() [worker_thread.cc : 359 + 0x0]
         fp = 0x000000da301ffcd8    lr = 0x00007ff70aacba74
         sp = 0x000000da301ffc90    pc = 0x00007ff70aaf8670
        Found by: previous frame's frame pointer
    25  Code - OSS.exe!static unsigned long base::`anonymous namespace'::ThreadFunc(void *) [platform_thread_win.cc : 114 + 0x1c]
         fp = 0x000000da301ffcf0    lr = 0x00007ff924728740
         sp = 0x000000da301ffce8    pc = 0x00007ff70aacba74
        Found by: previous frame's frame pointer
    26  KERNEL32.DLL + 0x873c
         fp = 0x000000da301ffd00    lr = 0x00007ff928464464
         sp = 0x000000da301ffd00    pc = 0x00007ff924728740
        Found by: previous frame's frame pointer
    27  ntdll.dll + 0xd4460
         fp = 0x0000000000000000    lr = 0x0000000000000000
         sp = 0x000000da301ffd10    pc = 0x00007ff928464464
        Found by: previous frame's frame pointer
    

    size value captured in the dump file at the point of crash via https://source.chromium.org/chromium/chromium/src/+/main:base/allocator/partition_allocator/src/partition_alloc/oom.cc;l=42-46 shows as 0x0 which doesn't make sense, however the process can commit around 6GB of memory

    Image

    The stacks and the nature of crash are similar to #243747 only the target process was different this time.

    Running the following with --no-wasm-lazy-compilation --no-liftoff in ELECTRON_RUN_AS_NODE for the same version of V8 doesn't crash the process

    import fs from "node:fs";
    
    const buffer = fs.readFileSync(
      "C:\\Users\\demohan\\github\\vscode\\node_modules\\@vscode\\tree-sitter-wasm\\wasm\\tree-sitter-powershell.wasm",
    );
    let module = new WebAssembly.Module(buffer);
    

    --turbo-stats-wasm shows total memory needed to compile by the optimizing compiler is only around 2GB which should satisfy the commit memory available for the process

    -------------------------------------------------
               Turbofan Wasm phase            Time (ms)                      Space (bytes)            Growth MOps/s Function
                                                                    Total         Max.     Abs. max.
    ----------------------------------------------------------------------------------------------------------------------
                                       -----------------------------------------------------------------------------------
                   V8.WasmInitializing     40.084 ( 1.3%)    27876392 ( 1.0%)   27156872   27156872         
    
          V8.TFTurboshaftLoopUnrolling   2095.636 (69.9%)  2297004552 (83.3%) 2296942176 2324099048         
           V8.TFTurboshaftWasmLowering     26.027 ( 0.9%)     6498008 ( 0.2%)    5622632   57007736         
           V8.TFTurboshaftWasmOptimize    295.807 ( 9.9%)   300989024 (10.9%)  300237816  351652120         
    V8.TFTurboshaftWasmDeadCodeElimination     23.259 ( 0.8%)    12710232 ( 0.5%)   12317496   63761000     
                                       -----------------------------------------------------------------------------------
                   V8.WasmOptimization   2441.483 (81.5%)  2617201816 (94.9%) 2296942176 2324099048         
    
    V8.TFTurboshaftDecompressionOptimization      1.706 ( 0.1%)      553096 ( 0.0%)     542792   52063256   
    V8.TFTurboshaftSpecialRPOScheduling      9.812 ( 0.3%)     1767880 ( 0.1%)    1714568   53235032        
    V8.TFTurboshaftInstructionSelection     40.806 ( 1.4%)    29251856 ( 1.1%)   28740856   80598296        
                                       -----------------------------------------------------------------------------------
               V8.InstructionSelection     57.520 ( 1.9%)    31573792 ( 1.1%)   29077832   80598296         
    
          V8.TFMeetRegisterConstraints      2.049 ( 0.1%)     1235896 ( 0.0%)    1211016   38378832         
                      V8.TFResolvePhis      0.569 ( 0.0%)      357608 ( 0.0%)     356648   38735480         
                  V8.TFBuildLiveRanges     27.047 ( 0.9%)    24414872 ( 0.9%)   24143888   62879368         
            V8.TFBuildLiveRangeBundles      7.232 ( 0.2%)      264112 ( 0.0%)     263608   63117728         
         V8.TFAllocateGeneralRegisters    330.854 (11.0%)    24621512 ( 0.9%)   24410816   87528544         
               V8.TFDecideSpillingMode      0.746 ( 0.0%)       56160 ( 0.0%)      55656   83796512         
                 V8.TFAssignSpillSlots      1.123 ( 0.0%)       62928 ( 0.0%)      62672   83859184         
                 V8.TFCommitAssignment      6.280 ( 0.2%)           0 ( 0.0%)          0   83859184         
                    V8.TFConnectRanges      6.451 ( 0.2%)     2195984 ( 0.1%)    2127696   85986880         
               V8.TFResolveControlFlow     20.432 ( 0.7%)     4500088 ( 0.2%)    4469176   90456056         
            V8.TFPopulateReferenceMaps      0.699 ( 0.0%)      571304 ( 0.0%)     553176   87753288         
                    V8.TFOptimizeMoves      3.174 ( 0.1%)      590552 ( 0.0%)     587064   88340352         
                     V8.TFFrameElision      1.415 ( 0.0%)           0 ( 0.0%)          0   23764864         
                    V8.TFJumpThreading      3.949 ( 0.1%)      261816 ( 0.0%)     224376   23989240         
                                       -----------------------------------------------------------------------------------
               V8.TFRegisterAllocation    435.079 (14.5%)    77169120 ( 2.8%)   70800088   90456056         
    
                     V8.TFAssembleCode     15.958 ( 0.5%)     2548880 ( 0.1%)    2453032   26554800         
                                       -----------------------------------------------------------------------------------
                   V8.TFCodeGeneration     21.211 ( 0.7%)     2886424 ( 0.1%)    2789936   26554800         
    
    ----------------------------------------------------------------------------------------------------------------------
                                totals   2996.544 (100.0%)  2756707544 (100.0%) 2324099048 2324099048    
    

    However, attempting the same compilation in the renderer or main process in a minimal electron app does trigger the crash. Some kind of partition allocator limit we are hitting ? I also need to confirm why it behaves different between x64 and arm64. I have a minimal repro outside vscode now, will post updates.

    Just for fun attempted to collect v8.zone_stats via tracing to view in https://v8.github.io/tools/head/zone-stats/index.html however V8.TFTurboshaftLoopUnrolling doesn't show up as a major consumer and the peak memory used is much different from the above table, maybe I am misreading it.

  4. deepak1556 commented on Nov 3, 2025

    @deepak1556
    Collaborator

    More updates and seems like I have a better understanding of the issue now,

    The Zone expansion callsite that was triggering the crash tripped on the following condition https://github.com/v8/v8/blob/8f0c0fc8df5b708ab508848db8ad1b04983fdcf7/src/zone/zone.cc#L175-L177

    if (new_size > INT_MAX) {
        V8::FatalProcessOutOfMemory(nullptr, "Zone");
    }
    

    new_size requested was 2253389824, here is a better stacktrace from debug build

    frame #6: 0x000000011c366a20 Electron Framework`v8::internal::V8::FatalProcessOutOfMemory(i_isolate=0x00000104006a0000, location="Zone", details=0x000000012933e938) at api.cc:258:3 [opt]
        frame #7: 0x000000011d0215ec Electron Framework`v8::internal::Zone::Expand(this=0x0000010400909000, size=2253389824) at zone.cc:0:3 [opt]
        frame #8: 0x000000011c423ba0 Electron Framework`void* v8::internal::Zone::Allocate<v8::internal::AstConsString::Segment>(this=0x0000010400909000, size=2253389824) at zone.h:67:7 [opt]
        frame #9: 0x000000011da62cd4 Electron Framework`v8::internal::compiler::turboshaft::OpIndex* v8::internal::Zone::AllocateArray<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::OpIndex []>(this=0x0000010400909000, length=563347456) at zone.h:127:28 [opt] [inlined]
        frame #10: 0x000000011da62cc0 Electron Framework`v8::internal::ZoneVector<v8::internal::compiler::turboshaft::OpIndex>::PrepareForInsertion(this=0x000000016fdfab30, pos=0x0000010491690018, count=4298, assignable=0x000000016fdfa228) at zone-containers.h:516:22 [opt]
        frame #11: 0x000000011da627ac Electron Framework`v8::internal::ZoneVector<v8::internal::compiler::turboshaft::OpIndex>::insert(this=<unavailable>, pos=<unavailable>, count=4298, value=0x00000104093c56f0) at zone-containers.h:365:19 [opt] [inlined]
        frame #12: 0x000000011da627a0 Electron Framework`v8::internal::compiler::turboshaft::SnapshotTable<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::RecordMergeValue(this=0x000000016fdfaa38, entry=0x00000104093c56e0, value=0x00000104095819a4, predecessor_index=3811, predecessor_count=<unavailable>) at snapshot-table.h:398:19 [opt]
        frame #13: 0x000000011dd0c074 Electron Framework`void v8::internal::compiler::turboshaft::SnapshotTable<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::MergePredecessors<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>), void v8::internal::compiler::turboshaft::ChangeTrackingSnapshotTable<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::VariableTable, v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::StartNewSnapshot<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>)>(v8::base::Vector<v8::internal::compiler::turboshaft::SnapshotTable<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::Snapshot const>, v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>) const&) requires std::is_invocable_v<TL0_, v8::internal::compiler::turboshaft::ChangeTrackingSnapshotTable::Key, v8::base::Vector<T0 const>>::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::internal::compiler::turboshaft::OpIndex const&, v8::internal::compiler::turboshaft::OpIndex const&)>(this=0x000000016fdfaa38, predecessors=Vector<const v8::internal::compiler::turboshaft::SnapshotTable<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::Snapshot> @ 0x0000000a5d322a30, merge_fun=0x000000016fdfa320, change_callback=0x000000016fdfa300) at snapshot-table.h:492:9 [opt]
        frame #14: 0x000000011dd0b74c Electron Framework`void v8::internal::compiler::turboshaft::SnapshotTable<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::StartNewSnapshot<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>), void v8::internal::compiler::turboshaft::ChangeTrackingSnapshotTable<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::VariableTable, v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::StartNewSnapshot<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>)>(v8::base::Vector<v8::internal::compiler::turboshaft::SnapshotTable<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::Snapshot const>, v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>) const&) requires std::is_invocable_v<TL0_, v8::internal::compiler::turboshaft::ChangeTrackingSnapshotTable::Key, v8::base::Vector<T0 const>>::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::internal::compiler::turboshaft::OpIndex const&, v8::internal::compiler::turboshaft::OpIndex const&)>(this=<unavailable>, predecessors=<unavailable>, merge_fun=0x000000016fdfa320, change_callback=0x000000016fdfa300) requires std::is_invocable_v<TL0_, v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>), T0>, v8::base::Vector<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>) const>> && std::is_invocable_v<TL0_0, v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>), T0>, v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>), v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>)> at snapshot-table.h:184:5 [opt] [inlined]
        frame #15: 0x000000011dd0b70c Electron Framework`void v8::internal::compiler::turboshaft::ChangeTrackingSnapshotTable<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::VariableTable, v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>::StartNewSnapshot<v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(v8::internal::compiler::turboshaft::Block*)::'lambda'(v8::internal::compiler::turboshaft::SnapshotTableKey<v8::internal::compiler::turboshaft::OpIndex, v8::internal::compiler::turboshaft::VariableData>, v8::base::Vector<v8::internal::compiler::turboshaft::OpIndex const>)>(this=0x000000016fdfaa38, predecessors=<unavailable>, merge_fun=0x000000016fdfa320) requires std::is_invocable_v<TL0_, v8::internal::compiler::turboshaft::ChangeTrackingSnapshotTable::Key, v8::base::Vector<T0 const>> at snapshot-table.h:542:12 [opt] [inlined]
        frame #16: 0x000000011dd0b708 Electron Framework`v8::internal::compiler::turboshaft::VariableReducer<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(this=0x000000016fdfa890, new_block=0x000001040852fca0) at variable-reducer.h:127:12 [opt]
        frame #17: 0x000000011dd0a898 Electron Framework`v8::internal::compiler::turboshaft::GraphVisitor<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::Bind(this=<unavailable>, block=0x000001040852fca0) at copying-phase.h:134:11 [opt] [inlined]
        frame #18: 0x000000011dd0a890 Electron Framework`v8::internal::compiler::turboshaft::Assembler<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>::Bind(this=0x000000016fdfa870, block=0x000001040852fca0, bind_location=SourceLocation @ x21) at assembler.h:5532:12 [opt]
        frame #19: 0x000000011dd1b474 Electron Framework`void v8::internal::compiler::turboshaft::GraphVisitor<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::VisitBlock<false>(this=0x000000016fdfa890, input_block=0x0000010401274cc8) at copying-phase.h:515:15 [opt]
        frame #20: 0x000000011dd613e4 Electron Framework`void v8::internal::compiler::turboshaft::GraphVisitor<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::VisitAllBlocks<false>(this=0x000000016fdfa890) at copying-phase.h:491:7 [opt]
        frame #21: 0x000000011dd0965c Electron Framework`void v8::internal::compiler::turboshaft::GraphVisitor<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer<v8::internal::compiler::turboshaft::LoopUnrollingReducer<v8::internal::compiler::turboshaft::MachineOptimizationReducer<v8::internal::compiler::turboshaft::EmitProjectionReducer<v8::internal::compiler::turboshaft::ValueNumberingReducer<v8::internal::compiler::turboshaft::GenericReducerBase<v8::internal::compiler::turboshaft::TSReducerBase<v8::internal::compiler::turboshaft::StackBottom<v8::base::tmp::list1<v8::internal::compiler::turboshaft::GraphVisitor, v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer, v8::internal::compiler::turboshaft::TSReducerBase>>>>>>>>>>::VisitGraph<false>(this=<unavailable>) at copying-phase.h:128:5 [opt] [inlined]
        frame #22: 0x000000011dd09658 Electron Framework`v8::internal::compiler::turboshaft::CopyingPhaseImpl<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer>::Run(data=0x000000016fdfb0b8, input_graph=<unavailable>, phase_zone=0x0000010400909000, trace_reductions=<unavailable>) at copying-phase.h:1088:22 [opt]
        frame #23: 0x000000011dd091d8 Electron Framework`v8::internal::compiler::turboshaft::CopyingPhase<v8::internal::compiler::turboshaft::LoopStackCheckElisionReducer, v8::internal::compiler::turboshaft::LoopUnrollingReducer, v8::internal::compiler::turboshaft::MachineOptimizationReducer, v8::internal::compiler::turboshaft::ValueNumberingReducer>::Run(data=0x000000016fdfb0b8, phase_zone=0x0000010400909000) at copying-phase.h:1101:5 [opt] [inlined]
        frame #24: 0x000000011dd091b4 Electron Framework`v8::internal::compiler::turboshaft::LoopUnrollingPhase::Run(this=<unavailable>, data=0x000000016fdfb0b8, temp_zone=0x0000010400909000) at loop-unrolling-phase.cc:23:5 [opt]
    

    During loop unrolling phase when variable reducer attempts to snapshot a block with 4298 predecessors it hits this condition, merge_values_ already had a length of 281673728 at this point.

    L = 281673728
    zone-container#NewCapacity(4298) -> 281673728 * 2 = 563347456 (as seen on frame 9)
    zone#AllocateArray<turboshaft::OpIndex> -> 563347456 * 4 = 2253389824 (> INT_MAX)
    

    I still wasn't able to crash d8 with the same wasm file, although I was able to break on similar stack and confirmed the predecessor counts to match but not the length of the merge_values_, so what's happening ?

    Running with --trace-turbo will print the turbofan IR but also print information on the function that is being compiled, this confirmed the crash was happening when compiling wasm-function#9, the generated turbo json file for this particular function was quite large (800MB) that I couldn't visualize in turbolizer

    Next ran with --trace-turbo-graph --trace-turbo-filter wasm-function#9 which prints the turbofan graphs to stdout (much smaller output), couple of things stood out

    Block B4 which is a loop had a switch statement with ~1800 branches

    LOOP B4 <- B3, B42593
       ...
      106: Switch(#104)[case 0: B5, ...,  default: B1830]
    

    Merge Block B42591 and B42596 created as a result of this loop shows the large phi nodes that I guess eventually gets put through the variable reducer before the next phase (correct me if I am wrong here)

    Looking at the same output for the crashing process, what stood out in B4 loop was the following lines which was added before each Store call

    TrapIf(OpIndex)[1, TrapMemOutOfBounds]
    

    Wait a minute, this is the inlined bound checks when wasm trap handling is disabled. Ah d8 was being run with the trap handling feature enabled https://github.com/v8/v8/blob/2e3207bd63c027d2b191f4aa9b1bed408c365c87/src/d8/d8.h#L518-L520. Now when I run with --no-wasm-lazy-compilation --no-liftoff --no-wasm-trap-handler the same test case does crash in d8!!

    To the original case, the issue was first observed in windows arm64 from the renderer process. I was able to repro the crash in both main and utility process on mac arm64. Checking back on chromium source the feature is enabled in renderer process for the following combination https://source.chromium.org/chromium/chromium/src/+/main:content/public/common/content_features.cc;l=1166-1177 which answers the differences,

    Linux, Windows, MacOS - x86_64
    Linux, MacOS - arm64
    

    Electron doesn't setup v8::V8::EnableWebAssemblyTrapHandler for main and utility process which explains the crash on macOS.

    I see that enabling this feature as a workaround it only temporarily reduces the number of variables involved via the runtime bound checks, whatever tree-sitter loop code is involved should be revisited and optimized.

  5. deepak1556 commented on Nov 3, 2025

    @deepak1556
    Collaborator

    d8_repro.zip

    Minimal repro with d8, also contains the turbo graph files mentioned above

  6. removed their assignment
    on Nov 5, 2025
  7. added
    unreleased
    on Nov 13, 2025
  8. added
    insiders-released
    and removed
    unreleased
    on Nov 13, 2025
  9. locked and limited conversation to collaborators on Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugchat-terminalfreeze-slow-crash-leakimportantinsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions