[CRITICAL BUG] GDB broken with last stable update

I’ve got no exact fix right now, but it should be resolved ASAP.

according to the sourceware wiki:

9. GDB reports “Cannot find user-level thread for LWP 23957: generic error”, how do I fix this?

  • There are several common causes:
    • You have a mismatch between libthread_db.so.1 and libpthread.so.0 (this most often happens when you have multiple installations of glibc, or when you debug a program on remote target, and host and target have different glibc versions).
    • You are using 64-bit debugger to debug 32-bit program, and your kernel has a 32-bit ptrace emulation bug. FIXME: add reference to specific kernel fix.This has also been known to happen when one of DOSEMU’s signal handlers is invoked from DPMI context, where the $gs register has a value different from what GDB and/or libthread_db.so.0 expect; found running the program under gdbserver to alleviate the problem, at least with version 6.8.50.20090620-cvs on i386.