I've found a workaround in linking my app with libpthread, now i can run it inside gdb without the error "Cannot find new threads: generic error " There must be some mismatch between glibc and pthread. Regards,