EMZETT.
Login

Segmentation Fault

In short: A program accessed an illegal memory area (exit code 139).

In more detail: Typical in C and C++.

In Depth

Possible causes

  • Null pointer or freed memory.
  • Buffer overflow.
  • Faulty library.

Solutions

  1. Find the spot with a debugger (gdb) and core dump.
  2. Recompile with AddressSanitizer.
  3. Check pointers and array bounds.

See also: C, C++, Library