Bundled GDB unstable


I've encountered strange behavior of the bundled GDB.

Sometimes while debugging the debugging session just terminates, without any error or notification. From the IDE the application seems to have exited with the code 0.

I checked the GDB trace and it contains the following:

warning: File "/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
    add-auto-load-safe-path /lib64/libthread_db-1.0.so
line to your configuration file "/home/myusername/.gdbinit".
To completely disable this security protection add
    set auto-load safe-path /
line to your configuration file "/home/myusername/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
    info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.

I suspect it could be related. I don't have any .gdbinit file.

I have also seen the "command timedout" error message once or twice as described here (https://devnet.jetbrains.com/message/5523623).

My OS GDB version is 7.2 and when trying to switch to it, IDE tells me it is not compatible ("unsupported version").

Any idea what could be cause it?

Martin Vavra

1 comment
Comment actions Permalink


Have you tried creating ~/.gdbinit and adding something like "set auto-load safe-path /", as the warning suggests?


Please sign in to leave a comment.