Commit graph RynthCore/native/SehTrampoline
Author SHA1 Message Date
BlankenshipG
ab18df2ee3 fix(seh): log CoreCLR-hosted engine AVs immediately in the native crash logger
Since the engine moved to the CoreCLR shim host, its code is JIT'd into
private executable memory (no module), so CrashVeh's NativeAOT-module test
never matched and every engine AV went to the deferred ring. CoreCLR treats a
non-null AV in managed code as uncatchable and fail-fasts (HandleFatalError,
WER signature coreclr.dll+0x2c1c6e c0000005), which skips both the
unhandled-exception filter and DllMain detach, so the ring was never flushed
and native-crash.log stayed empty for every Kelpie crash since 2026-10-05.

CrashVeh now writes immediately any AV whose faulting address is JIT'd code
(committed MEM_PRIVATE executable memory), coreclr.dll, clrjit.dll or a
System.* / Microsoft.* framework image, when the data address is >= 64K
(lower addresses become a catchable NullReferenceException). Bumps the
trampoline to v3. Requires rebuilding RynthCore.SehTrampoline.dll with
Build-SehTrampoline.ps1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019zqH4e21Ceruc5ussksSjy
2026-10-06 16:19:06 +00:00
BlankenshipG
a7cdbee135 fix(engine): seed object name/type at create; fatal-only native crash logger
CreateObject hook reads _name/_type from the PublicWeenieDesc so off-thread lookups work before the 500 ms identity snapshot resolves names (empty for ~10 s after login).

SehTrampoline v2: stack sweep bounded by StackBase, per-thread guards for self-faults and SEH_* wrapper AVs, unhandled-exception filter for fatal crashes, NativeAOT-module AVs logged immediately, other first-chance AVs deferred to a ring flushed only if the process dies.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 17:58:22 -04:00
Cursor Agent
4ddbb52eb2
feat: port aelrynth 2026.9.27.2 snapshot onto GitHub history
Overlay upstream/main (9b5e276) onto BlankenshipG main without rewriting
history. Keep origin-only Decal/plugin/docs trees. Re-apply aelrynth.com
and sibling-fork URL fixes that aelrynth git still has as tombohar links.

Co-authored-by: BlankenshipG <BlankenshipG@users.noreply.github.com>
2026-10-04 15:43:50 +00:00