【问题标题】:Cannot find new threads: generic error找不到新线程:一般错误
【发布时间】:2011-09-27 05:08:35
【问题描述】:

当我尝试使用 gdb 调试我的 C++ 应用程序时,我收到以下错误: [Thread debugging using libthread_db enabled] Cannot find new threads: generic error

如果我尝试退出 gdb,我会收到 A debugging session is active. Inferior 1 [process 17785] will be killed.

我自己没有使用任何线程库。

我尝试了gdb: Cannot find new threads: generic error 中建议的解决方案,但没有帮助。

我的操作系统:Ubuntu 10.04

$ gcc -v 
(Ubuntu 4.4.3-4ubuntu5)
$ uname -a
Linux rskDesktop 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 UTC 2011 x86_64 GNU/Linux

有什么建议吗?

【问题讨论】:

    标签: c++ debugging gdb


    【解决方案1】:

    我自己没有使用任何线程库

    看看这个答案:reverse-step multithread error 应该适用于您的情况:如果您不希望 GDB 知道线程,则强制 GDB 不激活线程调试。

    (EDIT 也适用,但也许它是您使用的需要libpthread.so 的库之一)

    【讨论】:

      猜你喜欢
      • 2020-05-07
      • 1970-01-01
      • 1970-01-01
      • 2016-07-25
      • 1970-01-01
      • 2014-05-19
      • 2012-11-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多