Skip to main content

Module segv_trace

Module segv_trace 

Source
Expand description

Diagnostic SIGSEGV/SIGBUS tracer for root-causing faults inside JIT’d code.

Installed only when LOGOS_SEGV_TRAP is set. On a fault it writes the faulting data address (si_addr) and the instruction pointer (RIP) to stderr, then restores the default handler and re-raises so the process still dies with the original signal. The faulting address value is the tell: a small/odd value or a recognizable float bit-pattern (e.g. 0x3ff0000000000000 = 1.0) means a non-pointer was dereferenced.

Functions§

install