sigabrt

Hey guys, I'm in first year varsity, and am programming in C, so no UI or anything of the sort.


Compile my file, like I had until then, and all of a sudden I get a Sigabrt signal. Please, i would appreciate some help. I didn't get any notifications or anything of the sort. It just opens as if it were in the debugger, doesn't show anything and goes straight to the signal.


Thanks a million

Replies

Step 1 is probably to look at the backtrace at the time of the crash. That should give you a line number where your app crashed.


Also, you can start setting breakpoints so that you can step through interesting sections of your code.


Note that SIGABRT is just the way an app crashes, generally not the error itself. If you're writing pure C, it likely means that some library function has called abort (). In that case, there should be a log message that the function printed to say what was wrong.