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
- SIGSEGV vs SIGBUS · Why did this memory access fail?
Related syscalls
- userfaultfd(2)Linux · Memory
Create an fd that lets userspace resolve page faults on registered memory ranges.
- pkey_alloc / pkey_mprotect(2)Linux · Memory
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
Numbers are Linux on x86 and arm64; alpha, mips, sparc and parisc number some signals differently. Spot one that's wrong? Tell Rod.