As Daniel alluded to, there have been a variety of bugs in gdb relating to this, but also in libthread_db and libpthread. So you should make sure you have the latest versions of both gdb and glibc installed before fretting.