GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from deepin-system-monitor...Reading symbols from /usr/lib/debug/.build-id/36/c92a2df10b29323b1bd5b7141b78b132f54313.debug...done.
done.
(gdb)
输入 'run' 回车,开始运行 deepin-system-monitor:
Starting program: /usr/bin/deepin-system-monitor
如果再次出现了 CPU 占用 100% ,在 gdb 里面按 ctrl+C 使其暂停,然后输入 ‘backtrace’,得到类似这样的调用栈:
#0 0x00007f2cebe7363d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f2ce92b0a56 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f2ce92b0b5c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f2ced11dc3f in QEventDispatcherGlib::processEvents(QFlagsrocessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4 0x00007f2ced0c953a in QEventLoop::exec(QFlagsrocessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5 0x00007f2ced0d15ed in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6 0x0000563abeb692d5 in main(int, char**) (argc=, argv=) at src/main.cpp:78
我的网络环境