Subj : pthread_mutex_lock throws an exception on receiving signal 15 To : comp.programming.threads From : pankaj-startup Date : Wed Sep 21 2005 03:08 am When my C++ multithreaded application receives a signal 15, it results into a core dump. When application receives signal 15, some thread/code throws exception (i could not find exact location of this code, even using gdb). This exception is catched in main thread. On catch, when application tries to log a message in log file, it tries to acquire a mutex by callling pthread_mutex_lock. But this call (pthread_mutex_lock(m_mutex)) throws another exception which is never being catched & results into core dump. What are thr possible causes to make pthread_mutex_lock throw exception? As per my knowledge, gdb doesn't show status of all threds, am i rt? I tried using 'info threads'. following is gdb backtrace: #0 0xd0059790 in pthread_kill () from /usr/lib/libpthreads.a(shr_xpg5.o) #1 0xd0058da0 in _p_raise () from /usr/lib/libpthreads.a(shr_xpg5.o) #2 0xd01d8e88 in raise () from /usr/lib/libc.a(shr.o) #3 0xd01e7854 in abort () from /usr/lib/libc.a(shr.o) #4 0xd09c192c in std::myabort () from /usr/lib/libC.a(ansi_32.o) #5 0xd09bfe48 in std::terminate () from /usr/lib/libC.a(ansi_32.o) #6 0xd09c1120 in terminate () from /usr/lib/libC.a(ansi_32.o) #7 0x100c4e60 in __Invoke__Destructor () #8 0x100c49c4 in __DoThrow () #9 0x10135710 in PthreadMutex::lock () Note: PthreadMutex is a wrapper aroung pthread_mutex_t .