https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109074
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Murugesan Nagarajan from comment #10) > Hence sigabrt signal needs to be handler at libc.so.6 Library Stop trying to "handle" the error and FIX IT. The error is that you didn't link to libpthread. Build your program with -pthread and there will be no error, so you don't need to handle it.