简体   繁体   中英

GDB strange behavior - Linux

Yeasterday I made quite big update of my archlinux (after two months). I updated GCC, GDB and QtCreator which I use for development.

gcc -v
gcc version 4.9.1 (GCC) 

gdb -v
GNU gdb (GDB) 7.8

qtcreator -version
Qt Creator 3.2.0 based on Qt 5.3.1

Today I noticed strange behavior of gdb. If I launch debugger for first time (after fresh restart of computer), it works. But after debugger is stopped, or just debugged application is stopped, It won't run again...and if I start debugging again, it is extremely slow (but CPU shows normal load), it takes minutes to start debugged application again. After while debugging is completely frozen and it has to be killed through "killall gdb".

Only output I get from GDB is:

"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n"
Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

I tried to search here, but this post Could not load shared library symbols for linux-vdso.so.1. while debugging tells that "could not load shared library..." is nothing special.

I am too using archlinux.

gdb -v
GNU gdb (GDB) 7.8

qtcreator -version
Qt Creator 3.2.0 based on Qt 5.3.1`

Faced this behavior and solved the problem downgrading gdb to version 7.7

And yes the gdb warining you mention has nothing to do with the issue at hand.

But did not find why does this happen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM