Skip to content

ExecutionEngineException fail-fast in GC thread-suspension / return-address hijack (invalid tailcall epilog) #129071

Closed

Description

@steveh-iz

Description

A long-running desktop app (Avalonia 12, Win32 windowing backend) reliably fail-fasts with a runtime-raised System.ExecutionEngineException (HRESULT 0x80131506, faulting module coreclr.dll) every ~8–80 minutes of idle/normal use. The exception is raised by the runtime itself from Debugger::HandleFatalError → RaiseFailFastException, so it bypasses AppDomain.UnhandledException and cannot be caught.

Using DOTNET_StressLog=1 + a full minidump (DOTNET_DbgEnableMiniDump=1, DbgMiniDumpType=4) I captured the runtime's own fatal-event trail across three independent crashes. All three show the same mechanism: the GC's thread-suspension / return-address-hijack machinery raises the fatal error while suspending a thread stopped at a non-fully-interruptible JIT point (fullyInt=0), while the main UI thread is being GC-root-scanned inside the Win32 message pump's DispatchMessage(MSG) P/Invoke frame, during a routine (not pressure-driven) GC.

Disabling CET (<CetCompat>false</CetCompat>) stops the crash completely (confirmed by a 2+ hour soak — see below), which strongly implicates CET hardware shadow-stack enforcement colliding with the GC's return-address hijack.

Frequency / Severity

  • Reproduces every ~8–80 minutes of runtime. Fatal (process dies); no managed handler can intercept.
  • Reproduced across two different builds of the app and two render modes (GPU/ANGLE and CPU/software) — 3 captured dumps total.

StressLog — the fatal sequence (representative; identical shape in all 3 dumps)

<tid> <ts> : SYNC   Stopped in Jitted code at pc=...  sp=...  fullyInt=0
<tid> <ts> : SYNC   Hijacking return address ...  for thread ...
<tid> <ts> : CORDB  D::HFE: About to call LogFatalError            <-- FATAL
<tid> <ts> : EH     SetLastThrownObject: obj=... (ExecutionEngineException)
<tid> <ts> : CORDB  D::RFFE: About to call RaiseFailFastException  <-- FAIL-FAST
<tid> <ts> : SYNC   Thread::SuspendAllThreads() - Success
  • Exactly one fatal event per crash. Thrown object is the System.ExecutionEngineException singleton (same MethodTable across all 3 crashes), _message=null, HResult=0x80131506, exception code 0xE0434352 → runtime-raised, not a managed throw.
  • At every SuspendAllThreads (including the fatal one), the main UI thread shows Scanning Frameless method IL_STUB_PInvoke(MSG ByRef) — i.e. it is parked in the Win32 GetMessage/DispatchMessage(MSG) P/Invoke and being root-scanned.
  • The thread being hijacked at the fatal moment varies by crash and is doing ordinary work:
    • Crash A: main UI thread mid-Measure (layout).
    • Crash B: a non-main thread.
    • Crash C: a thread inside System.DateTimeOffset.ValidateOffset / ..ctor — pure CoreLib, no app/render frames (a periodic timer's timestamp path).
  • The GC at the fatal point is routine: e.g. Crash C was BEGINGC ... requested generation = 1 — an ordinary periodic gen-1, ~1 GC / 4 s, ~35 MB heap.

Minimal characterization of the invariant

During a routine GC, while the main UI thread is suspended inside the Win32 DispatchMessage(MSG) P/Invoke frame being root-scanned, the runtime hijacks the return address of another thread stopped at a fullyInt=0 JIT point and immediately enters Debugger::HandleFatalError → raises ExecutionEngineException → RaiseFailFastException.

The hijack-victim thread's work is incidental (layout in one crash, DateTimeOffset ctor in another) — the constant is the suspend/hijack step itself faulting, with the pump P/Invoke frame present in the root scan.

Disabling CET stops it — confirmed

  • Building the app with <CetCompat>false</CetCompat> (opts the exe out of CET shadow stacks; apphost PE CET_COMPAT bit verified flipped 1→0 via dumpbin /headers) eliminates the crash: the CET-off build ran 125+ minutes with zero EEE and was still healthy, versus an 8–80 minute crash baseline on every CET-on build (3 dumps, 2 binaries, GPU and software render).
  • This points at CET hardware shadow-stack enforcement as the trigger: a GC return-address hijack sets a thread's return address to a stub that is not on the shadow stack, which CET treats as a control-flow violation and terminates the process. The runtime has a CET-safe suspension path using special user-mode APCs (QueueUserAPC2); this looks like a case where the hijack path is taken while shadow stacks are active.
  • <CetCompat>false> is a usable mitigation but disables a security feature for the whole process — an in-runtime fix (always take the CET-safe suspension path when shadow stacks are enabled) would be preferable.

Ruled out (with evidence)

  1. GPU / Skia / ANGLE render path — exonerated. Forced CPU software rendering (no av_libGLESv2.dll / av_libEGL.dll / nvwgf2umx.dll / d3d11.dll / dxgi.dll / opengl32.dll / vulkan-1.dll loaded — verified by module-list diff vs the GPU-mode dumps) still crashed with the identical mechanism in ~8 min, on a thread doing DateTimeOffset construction with zero render frames.
  2. Allocation pressure — exonerated. Fatal GCs are routine periodic gen-0/gen-1 at ~1/4 s with a ~35 MB heap; a low-allocation run crashed faster than a high-allocation one. No GC heap corruption (verifyheap clean).
  3. Application exception storm — exonerated. An earlier high-rate InvalidDataException storm (an app-side deserialization bug, unrelated to the runtime) was fixed; with it gone (InvalidDataException = 0 across a 273 MB StressLog) the EEE still reproduced. Background exception rate at crash is ~1/8 s, not a storm.

Environment

  • .NET: 10.0.8 (DAC 10.0.826.23019)
  • OS: Windows 11, build 26200 (x64)
  • UI framework: Avalonia 12, Win32 windowing backend, classic desktop lifetime, single-threaded WPF-style UI message pump
  • TieredCompilation already disabled; reproduces with and without tiering knobs.
  • App is mostly idle at crash time (periodic timers + UI message pump + routine GC).

Possibly related

Repro assets available on request

  • 3 full minidumps (Type=4) with armed StressLog (DOTNET_StressLog=1, 128 MB/thread ring); the two storm-free dumps are cleanest (~273 MB each, can be trimmed to the fatal window).
  • clrstack / clrthreads / threads / module-list captures per dump.

Questions for the runtime team

  1. Is this a known issue in the return-address hijack / EEPolicy::HandleFatalError path on Windows when a thread is suspended at a fullyInt=0 point while another thread's IL_STUB_PInvoke(MSG ByRef) frame is being root-scanned?
  2. CET: when shadow stacks are enabled, under what conditions can the GC take the hijack suspension path (return-address overwrite) instead of the CET-safe QueueUserAPC2 path? We've confirmed <CetCompat>false> stops the crash — is that the recommended mitigation on 10.0.8, or is an in-runtime fix planned?
  3. Do any suspension-timing knobs change time-to-crash as a race corroborator: DOTNET_gcServer=1, DOTNET_GCgen0size=<larger>, DOTNET_TieredPGO=0, DOTNET_JITMinOpts=1? (DOTNET_ThreadSuspendInjection is Unix-only and does not apply on Windows.)
  4. Is there a recommended mitigation for desktop apps on 10.0.8 short of pinning an earlier runtime, other than opting out of CET?

Suggested areas: area-VM-coreclr, area-GC-coreclr.

Activity

  1. added
    untriaged
    on Jun 6, 2026
  2. jkotas commented on Jun 6, 2026

    @jkotas
    Member

    Is this a known issue in the return-address hijack / EEPolicy::HandleFatalError path on Windows when a thread is suspended at a fullyInt=0 point

    It is not a known issue.

    GC take the hijack suspension path (return-address overwrite) instead of the CET-safe QueueUserAPC2 path?

    Return-address overwrite is CET safe thanks to RtlGetReturnAddressHijackTarget Windows API.

    Is there a recommended mitigation for desktop apps on 10.0.8 short of pinning an earlier runtime, other than opting out of CET?

    We cannot tell without understanding the root cause. While opting out of CET makes your test work, it does not mean that it is reliable workaround.

    Repro assets available on request

    It would be great if you can open an issue at http://developercommunity.visualstudio.com/, attach the crash dumps to it as private attachments, and share the link here.

  3. dotnet-policy-service commented on Jun 8, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke
    See info in area-owners.md if you want to be subscribed.

  4. added
    needs-author-action
    on Jun 8, 2026
  5. dotnet-policy-service commented on Jun 8, 2026

    @dotnet-policy-service
    Contributor

    This issue has been marked needs-author-action and may be missing some important information.

  6. janvorli commented on Jun 8, 2026

    @janvorli
    Member

    2. CET: when shadow stacks are enabled, under what conditions can the GC take the hijack suspension path (return-address overwrite) instead of the CET-safe QueueUserAPC2 path?

    The return address hijacking (via the CET safe mechanism exposed by Windows as @jkotas mentioned above) is used when the user APC handler finds that the location where the APC interrupted the thread is in managed code and it is not a GC safe (interruptible) point and it is not in a method epilog. See the HandleSuspensionForInterruptedThread.

  7. removed
    untriaged
    on Jul 10, 2026
  8. added this to the 11.0.0 milestone on Jul 10, 2026
  9. dotnet-policy-service commented on Oct 14, 2026

    @dotnet-policy-service
    Contributor

    This issue has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.

  10. epurdy-ss commented on Oct 14, 2026

    @epurdy-ss

    AI-assisted: the investigation and this write-up were done with Claude (Anthropic) at my direction, and I reviewed it before posting. The repro below was built and run as described.

    We hit what may be the same failure family (0x80131506, access violations, around return-address hijacking) and traced ours to a root cause, with a small repro and a workaround. Posting it here in case it explains this issue; glad to open a separate issue instead if you prefer.

    Summary

    On x64 Windows, a GC return-address hijack can be written into the caller's frame instead of the return-address slot. It happens when the thread is stopped inside a JIT'd epilog that ends in jmp qword ptr [abs32] (FF 24 25 disp32, no REX.W). The unwinder does not recognise that encoding as an epilog, treats the IP as method body, and returns a return-address slot that is too high by whatever the epilog had already popped. The runtime then writes the hijack stub address (OnHijackTripThread) over a live slot in the caller. Depending on what that slot held, we saw a corrupted local (the stub's low 16 bits, 0x3720, read back as data), Internal CLR error (0x80131506), and access violations during marking.

    Two defects that meet

    1. JIT encoding. In src/coreclr/jit/emitxarch.cpp, the IF_METHPTR path emits a tail call through a call cell whose address fits in 32 bits as FF 24 25 disp32 with no REX.W. The other INS_tail_i_jmp forms get AddRexWPrefix ("Tailcall with addressing mode/register needs to be rex.w prefixed to be recognized as part of epilog by unwinder"); this path does not (still the case on main today). A native harness that calls RtlVirtualUnwind on a frame stopped at each instruction of each epilog form the JIT emits: ret, E9, FF 25, 48 FF 25, 48 FF E0, 48 FF 60 18, 49 FF 23 and 48 FF 24 25 all unwind to the right caller; for FF 24 25, after the add rsp, 56 and each of the four pops, the caller's SP comes back 56, 64, 72, 80 and 88 bytes too high.
    2. Why the cells end up below 2 GB. Normally code and call cells are reserved near coreclr.dll and reached RIP-relative (FF 25, which unwinds fine). With W^X enabled, the scan in ReserveDoubleMappedMemory (src/coreclr/minipal/Windows/doublemapping.cpp) can step over a DLL image to the image's end, which is page-aligned but rarely 64 KB-aligned, so the following MapViewOfFileEx attempts at those addresses fail even through free space. ExecutableAllocator::Reserve then drops its hint and reserves bottom-up, below 2 GB, where a cell's address fits in 32 bits and the JIT picks FF 24 25. In our test hosts this happened about 1.3 s after start (around the load of System.Text.RegularExpressions.dll).

    Evidence

    • A crashed test host's stress log (DOTNET_StressLog=1, suspension and hijack records), checked against its full dump: 2,211 hijacks. 2,189 replaced a value preceded by a call instruction (a real return address); 22 replaced something else (zeros, GC heap pointers). All 22, and none of the 2,189, were taken with the thread stopped in an epilog ending in FF 24 25.
    • The same workload with the same forced layout and DOTNET_FastTailCalls=0: 1,845 hijacks, none misplaced, and no such epilog anywhere.

    Repro

    152 lines of safe C# (the two P/Invokes only query and reserve address space), in a dotnet new console project targeting net10.0. Squeeze() reserves (never commits) the free address space within 2 GB of coreclr.dll, so the allocator falls back at once; Burn(2000) compiles 2,000 emitted methods so the next code and precode reservations happen after that; then one thread keeps 256 bytes of known values in its own frame and, in a tight loop, calls a method whose epilog pops every callee-saved register and tail-calls through its callee's precode slot, while another thread allocates so the GC keeps suspending it. The squeeze is only a shortcut: our crashing processes had nothing like it and reached the below-2 GB layout on their own (about 1.3 s after start, as above), and in a run of our real application path on 8 threads, 2 of 4 processes got there within seconds.

    On .NET 10.0.12 (SDK 10.0.401), Windows 11 Pro 24H2 (build 26100), x64, workstation GC, 10 s per run:

    Corrupted slots in the caller's block Calls GCs
    dotnet run -c Release (three runs) 462, 471, 488; each printed value (the first 10 per run) is 0x00007FFBB03E3720 = coreclr.dll + 0x183720, the hijack stub ~1.5 billion ~26,000
    DOTNET_FastTailCalls=0 0 1.44 billion 25,618
    -- --no-squeeze (cells stay near coreclr.dll, FF 25) 0 1.52 billion 26,020

    A longer probe of ours also reproduces it under server GC.

    Program.cs
    // A GC return-address hijack written into the CALLER's frame (x64 Windows). A thread suspended inside a JIT'd epilog
    // that ends in "jmp qword ptr [abs32]" (FF 24 25, no REX.W) is unwound as if it were in the method body, so the
    // hijack goes to a slot too high by what the epilog already popped. The JIT uses that encoding for a tail call
    // through a call cell whose address fits in 32 bits, which happens once the executable allocator reserves below
    // 2 GB. Squeeze() forces that; Burn() makes the runtime reserve fresh code/precode memory after it.
    // Safe C# only: the P/Invokes only query and reserve address space.
    //
    //   dotnet run -c Release                                  corruptions > 0 (the value is the hijack stub's address)
    //   set DOTNET_FastTailCalls=0 && dotnet run -c Release    0
    //   dotnet run -c Release -- --no-squeeze                  0 (call cells stay near coreclr.dll, reached RIP-relative)
    using System;
    using System.Diagnostics;
    using System.Reflection;
    using System.Reflection.Emit;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Threading;
    
    internal static class Program
    {
        private static volatile bool stop;
        private static long calls, corruptions;
    
        private static int Main(string[] args)
        {
            if (Array.IndexOf(args, "--no-squeeze") < 0) Squeeze();
            Burn(2000);
            var caller = new Thread(Caller) { IsBackground = true };
            var allocator = new Thread(Allocator) { IsBackground = true };
            caller.Start();
            allocator.Start();
            var watch = Stopwatch.StartNew();
            while (watch.Elapsed.TotalSeconds < 10) Thread.Sleep(1000);
            stop = true;
            caller.Join();
            allocator.Join();
            Console.WriteLine($".NET {Environment.Version}, DOTNET_FastTailCalls={Environment.GetEnvironmentVariable("DOTNET_FastTailCalls") ?? "unset"}: " +
                              $"{calls:N0} calls, {GC.CollectionCount(0):N0} GCs, {corruptions} corruptions");
            return corruptions == 0 ? 0 : 1;
        }
    
        // Reserves (never commits) every free range within 2 GB of coreclr.dll, so the runtime's next executable
        // reservation near it fails and the allocator reserves bottom-up, below 2 GB, from then on.
        private static void Squeeze()
        {
            ulong coreclr = 0, size = 0;
            foreach (ProcessModule m in Process.GetCurrentProcess().Modules)
                if (string.Equals(m.ModuleName, "coreclr.dll", StringComparison.OrdinalIgnoreCase)) { coreclr = (ulong)m.BaseAddress; size = (ulong)m.ModuleMemorySize; }
            const ulong reach = 0x7FFF0000UL;
            ulong lo = coreclr + size > reach ? coreclr + size - reach : 0x10000UL, hi = coreclr + reach, at = lo, reserved = 0;
            while (at < hi && VirtualQuery((IntPtr)at, out MemoryBasicInformation info, (IntPtr)Marshal.SizeOf<MemoryBasicInformation>()) != IntPtr.Zero)
            {
                ulong start = (ulong)info.BaseAddress, end = Math.Min(start + (ulong)info.RegionSize, hi);
                ulong from = (Math.Max(start, lo) + 0xFFFF) & ~0xFFFFUL, to = end & ~0xFFFFUL;
                if (info.State == 0x10000 /* MEM_FREE */ && to > from &&
                    VirtualAlloc((IntPtr)from, (IntPtr)(to - from), 0x2000 /* MEM_RESERVE */, 0x01 /* PAGE_NOACCESS */) != IntPtr.Zero)
                    reserved += to - from;
                at = start + (ulong)info.RegionSize;
            }
            Console.WriteLine($"squeeze: coreclr.dll at 0x{coreclr:x}, reserved {reserved >> 20} MB near it");
        }
    
        // Compiles n small emitted methods, filling the code and precode heaps reserved before the squeeze.
        private static void Burn(int n)
        {
            TypeBuilder type = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("burn"), AssemblyBuilderAccess.Run)
                .DefineDynamicModule("burn").DefineType("Burn", TypeAttributes.Public | TypeAttributes.Abstract | TypeAttributes.Sealed);
            for (int i = 0; i < n; i++)
            {
                ILGenerator il = type.DefineMethod("M" + i, MethodAttributes.Public | MethodAttributes.Static, typeof(long), new[] { typeof(long) }).GetILGenerator();
                il.Emit(OpCodes.Ldarg_0); il.Emit(OpCodes.Ldc_I8, (long)i * 7919); il.Emit(OpCodes.Xor); il.Emit(OpCodes.Ret);
            }
            foreach (MethodInfo m in type.CreateType().GetMethods(BindingFlags.Public | BindingFlags.Static)) RuntimeHelpers.PrepareMethod(m.MethodHandle);
        }
    
        private static void Allocator()
        {
            var keep = new object[64];
            for (int i = 0; !stop; i++) keep[i & 63] = new byte[(i & 1023) + 24];
            GC.KeepAlive(keep);
        }
    
        private static void Caller()
        {
            long sum = 0;
            while (!stop) { sum += Late.InnerTail(sum); Interlocked.Add(ref calls, 1000); }
            GC.KeepAlive(sum);
        }
    
        private static long Pattern(int i) => unchecked(0x5A5A000000000000L | (uint)(i * 0x01010101));
    
        [InlineArray(32)]
        private struct Block { private long _element; }   // 256 bytes of known values in the caller's own frame
    
        // Loaded only when Caller first runs, after Squeeze and Burn, so its methods' precodes (the call cells the tail
        // jump goes through) are allocated below 2 GB.
        private static class Late
        {
            [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.AggressiveOptimization)]
            internal static long InnerTail(long seed)
            {
                Block block = default;
                for (int i = 0; i < 32; i++) block[i] = Pattern(i);
                long sum = seed;
                for (int i = 0; i < 1000; i++) sum += PopsThenTail(i, sum, i ^ 7, i * 3);
                for (int i = 0; i < 32; i++)
                {
                    if (block[i] == Pattern(i)) continue;
                    if (Interlocked.Increment(ref corruptions) <= 10) Console.WriteLine($"corrupt: block[{i}] = 0x{block[i]:X16}, expected 0x{Pattern(i):X16}");
                    block[i] = Pattern(i);
                }
                return sum;
            }
    
            // Uses every callee-saved register, so its epilog is "add rsp, N; pop x8; jmp [Leaf's precode slot]". Kept too
            // big to inline instead of NoInlining (a NoInlining method is never allowed to tail call).
            internal static long PopsThenTail(long a, long b, long c, long d)
            {
                long e = a * 31 + b, f = b * 17 + c, g = c * 13 + d, h = d * 11 + a;
                if (a == 0x7FFF12345678)
                {
                    for (int i = 0; i < (int)(b & 7); i++) { e = e * 31 + f; f ^= g >> 1; g = g * 13 + h; h ^= e << 1; }
                    e = e * 32 + f; f ^= g >> 2; g = g * 14 + h; h ^= e << 2;
                    e = e * 33 + f; f ^= g >> 3; g = g * 15 + h; h ^= e << 3;
                    e = e * 34 + f; f ^= g >> 4; g = g * 16 + h; h ^= e << 4;
                    e = e * 35 + f; f ^= g >> 5; g = g * 17 + h; h ^= e << 5;
                    e = e * 36 + f; f ^= g >> 6; g = g * 18 + h; h ^= e << 1;
                    e = e * 37 + f; f ^= g >> 7; g = g * 19 + h; h ^= e << 2;
                    e = e * 38 + f; f ^= g >> 1; g = g * 20 + h; h ^= e << 3;
                    e = e * 39 + f; f ^= g >> 2; g = g * 21 + h; h ^= e << 4;
                }
                long k = Leaf(e, f), l = Leaf(g, h);
                return Leaf(e ^ f ^ g ^ h ^ k ^ l, a ^ b ^ c ^ d);   // the tail call
            }
    
            [MethodImpl(MethodImplOptions.NoInlining)]
            internal static long Leaf(long x, long y) => (x << 3) ^ (y >> 2) ^ 0x1234;
        }
    
        [StructLayout(LayoutKind.Sequential)]
        private struct MemoryBasicInformation
        {
            public IntPtr BaseAddress, AllocationBase;
            public uint AllocationProtect;
            public ushort PartitionId;
            public IntPtr RegionSize;
            public uint State, Protect, Type;
        }
    
        [DllImport("kernel32.dll")] private static extern IntPtr VirtualQuery(IntPtr address, out MemoryBasicInformation buffer, IntPtr length);
        [DllImport("kernel32.dll")] private static extern IntPtr VirtualAlloc(IntPtr address, IntPtr size, uint type, uint protect);
    }

    Workaround

    DOTNET_FastTailCalls=0: the JIT emits no fast tail calls, so no JIT'd epilog ends in a jump. No measurable cost in our workloads, and our application's output is byte-identical with it.

    Relation to this issue

    Your trail (Stopped in Jitted code ... fullyInt=0, then Hijacking return address, then the fatal error) has the same shape. We have not checked which suspension path our repro took, or whether CET was active. @janvorli's note says the hijack is used when the interrupted IP "is not in a method epilog"; if that check relies on the same epilog recognition as the unwinder, an FF 24 25 epilog would pass it. Two cheap checks on your side: whether the pc of the fatal Stopped in Jitted code record lies in an epilog ending in FF 24 25 <disp32>, and whether DOTNET_FastTailCalls=0 stops the crash with CET left on.

  11. 6 remaining items

  12. dotnet-policy-service commented on Nov 2, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  13. jkotas commented on Nov 2, 2026

    @jkotas
    Member

    FF 24 25 jmp [0x027F5CF8]

    This is invalid x64 epilog emitted by the JIT.

    https://learn.microsoft.com/cpp/build/prolog-and-epilog says "Only a subset of jmp statements are allowable in the epilog. The subset is exclusively the class of jmp statements with ModRM memory references where ModRM mod field value is 00" though I do not think that's quite right. The unwinder implementation looks for REX prefix:

    } else if (((NextByte[0] & 0xf8) == SIZE64_PREFIX) &&
    (NextByte[1] == 0xff) &&
    (NextByte[2] & 0x38) == 0x20) {
    //
    // This is an indirect jump opcode: 0x48 0xff /4. The 64-bit
    // flag (REX.W) is always redundant here, so its presence is
    // overloaded to indicate a branch out of the function - a tail
    // call.
    //
    // Such an opcode is an unambiguous epilogue indication.
    //
    InEpilogue = TRUE;

  14. added
    untriaged
    and removed
    needs-author-action
    on Nov 2, 2026
  15. removed
    untriaged
    on Nov 2, 2026
  16. removed this from the 11.0.0 milestone on Nov 2, 2026
  17. added
    untriaged
    on Nov 2, 2026
  18. epurdy-ss commented on Nov 2, 2026

    @epurdy-ss

    By the way, I didn't mean to hijack the issue. When I was first looking into it, it seemed likely that it could be related to the OP. Following the ASLR finding, our case is probably separate from the original crash here: ours reproduces with CET on or off, while the original report is cured by false.

    I don't know if you want to split this now or something.

  19. jkotas commented on Nov 2, 2026

    @jkotas
    Member

    We can use this issue to track fixing the invalid epilog. OP did not have enough information to root cause the problem.

  20. changed the title [-]ExecutionEngineException fail-fast in GC thread-suspension / return-address hijack while root-scanning a Win32 message-pump P/Invoke frame (.NET 10.0.8, Windows, Avalonia desktop)[/-] [+]ExecutionEngineException fail-fast in GC thread-suspension / return-address hijack (invalid tailcall epilog)[/+] on Nov 2, 2026
  21. removed
    untriaged
    on Nov 3, 2026
  22. added this to the 12.0.0 milestone on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclr

Type

No type

Projects

  • Status
    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions