Description
It would be nice if the group commit threads had pthread names in GDB. Right now they inherit the same name as the main thread:
(gdb) info threads Id Target Id Frame 33 Thread 0x7fffda26a700 (LWP 3799) "alter_table-tes" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 32 Thread 0x7fffdad81700 (LWP 3798) "allocation exec" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 31 Thread 0x7fffdba4e700 (LWP 3797) "apply exec [wor" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 ... (gdb) t 33 [Switching to thread 33 (Thread 0x7fffda26a700 (LWP 3799))] #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 185 in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S (gdb) bt #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x0000000000ac2dd6 in __interceptor_pthread_cond_wait () at /home/ben/development/llvm/3.4/final/llvm.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:2215 #2 0x0000000000b9926b in boost::condition_variable::wait (this=<optimized out>, m=...) at /usr/include/boost/thread/pthread/condition_variable.hpp:73 #3 0x0000000000f4a415 in kudu::BlockingQueue<kudu::log::LogEntryBatch*>::BlockingDrainTo (this=0x61800000e650, out=<optimized out>) at /home/mpercy/src/kudu/src/util/blocking_queue.h:86 #4 0x0000000000f3cbfd in kudu::log::Log::AppendThread::RunThread (this=0x61100001d3c0) at /home/mpercy/src/kudu/src/consensus/log.cc:85 #5 0x0000000000f5768b in boost::_bi::bind_t<void, boost::_mfi::mf0<void, kudu::log::Log::AppendThread>, boost::_bi::list1<boost::_bi::value<kudu::log::Log::AppendThread*> > >::operator() (this=0x615000007a38) at /usr/include/boost/bind/bind_template.hpp:20 #6 0x0000000001398cba in thread_proxy () #7 0x00007ffff6aebf6e in start_thread (arg=0x7fffda26a700) at pthread_create.c:311 #8 0x00007ffff5ff89cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113