When a program is executed from the command line (terminal) and there is a runtime error causing the program to seg-fault/coredump where is the runtime error message come from? Is there documentation for this list of runtime error messages? What is "running" the program? Thanks.
P.S. If the answer to the last question is just "The OS", please elaborate if you can.
SIGSEGV
. It has a specific meaning and while potential root causes could be broken into categories, they all result in the same thing. This is a signal delivered to the process by the OS kernel. This can be caught by the process such that it might additionally throw a message of its own, but I don't think that is a common practice.