Signal 6 is usually SIGABRT.
One thing that calls this is the abort () system call.
It looks like your program also has a signal handler that captures SIGABRT and displays a message, perhaps for example:
void handler(int signum)
{
fprintf(stderr, "Terminating because of %d signal\n", signum);
exit(1);
}
"kill()" "raise()" SIGABRT ( 6) . .