abort(3) Library Functions Manual abort(3) abort - C (libc, -lc) #include [[noreturn]] void abort(void); The abort() function first unblocks the SIGABRT signal, and then raises that signal for the calling process (as though raise(3) was called). This results in the abnormal termination of the process unless the SIGABRT signal is caught and the signal handler does not return (see longjmp(3)). SIGABRT , , abort() . SIGABRT , . As with other cases of abnormal termination the functions registered with atexit(3) and on_exit(3) are not called. abort() . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |abort() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. SVr4, POSIX.1-2001, 4.3BSD, C89. glibc 2.26, abort() , ( fclose(3)). , . , glibc 2.27, abort() . POSIX.1 , , abort() << fclose() >>. gdb(1), sigaction(2), assert(3), exit(3), longjmp(3), raise(3) () Dmitry Bolkhovskikh Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . abort(3)