error while loading shared libraries:
cannot open shared object file: No such file or directory
Segmentation fault
Bus error
Common causes include:
malloc
, free
and related functions
scanf
with invalid arguments
There is a subtle difference between segmentation faults and bus errors.
A segmentation fault occurs when a process tries to access memory
protected by the operating system. A bus error occurs when valid memory
is accessed in an incorrect way (for example, trying to read an
unaligned value on architectures where values must be aligned with
4-byte offsets).
floating point exception
feenableexcept
and fedisableexcept
can be used to trap or
mask each type of exception.
Illegal instruction