$RodHat_/search
signal reference

SIGSEGV

Invalid memory reference.

Linux number
11
FreeBSD number
11
Default action
Terminate and dump core
Catch, block or ignore
Allowed
Standard
POSIX.1-1990

A load, store or jump to an address that is not mapped, or is mapped without the needed permission. The handler receives the faulting address in si_addr, which is what userspace page-fault tricks hang off. Returning from a SIGSEGV handler without fixing the cause just faults again, forever.

Compare it

Related syscalls

  • userfaultfd(2)Linux · Memory

    Create an fd that lets userspace resolve page faults on registered memory ranges.

  • Allocate a memory protection key and use it to gate access to a memory region via a per-thread register, without a syscall per permission switch.

  • mseal(2)Linux · Memory

    Permanently seal a virtual memory area against mprotect, munmap, and MAP_FIXED remapping.

Sources

  1. signal(7), Linux man-pages
  2. signal(3), FreeBSD manual

Numbers are Linux on x86 and arm64; alpha, mips, sparc and parisc number some signals differently. Spot one that's wrong? Tell Rod.