Is there a good place to lookup failure codes while debugging c programs? For example: I am getting "Abort trap: 6" while running one of my programs and I don't know what that means.
Edit: This was on a mac, and I'm looking for a reference to lookup any error code that comes up, not just the example I gave.
I misunderstood the error message. SIGABRT is defined as 6, 6 does not give any information about what caused abort() to be called.
The signal codes and brief descriptions are defined in <signal.h> which is located at /usr/include/sys/signal.h on my machine. More detailed descriptions can be found at https://en.wikipedia.org/wiki/Signal_(IPC)