gdb: не Может найти новые потоки: универсальная ошибка

Когда я выполняю GDB против программы, которая загружает .so, который связан с pthreads, ошибка отчетов GDB "Не может найти новые потоки: универсальная ошибка".

Обратите внимание, что исполняемый файл, который я выполняю, не связан с pthreads.

Какие-либо подсказки?

$ gdb --args lua -lluarocks.require
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/bin/lua...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/lua -lluarocks.require
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> require 'ev'
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
(gdb) q
A debugging session is active.

    Inferior 1 [process 4986] will be killed.

Quit anyway? (y or n) y

К этой функции обращаются require 'ev':

http://github.com/brimworks/lua-ev/blob/master/lua_ev.c#L25-65

Дополнительная информация о моей системе:

$ uname -a
Linux localhost 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.10
Release:    9.10
Codename:   karmic

28
задан Alexander Gladysh 24 April 2010 в 00:27
поделиться

1 ответ

Похоже, GDB не любит, когда приложение "внезапно" становится зависимым от pthreads.

Единственный обходной путь, который я нашел, - это связать хост-приложение с потоками pthreads.

Что довольно печально ...

6
ответ дан 28 November 2019 в 02:32
поделиться
Другие вопросы по тегам:

Похожие вопросы: