The content of this article is about how to use gdb to view the stack information of the hung program during the operation and maintenance process. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. .
View the stuck process
ps -ef|grep CobotStudio
2. Use gdb to open the process
sudo gdb ./CobotStudio
3. Use attach to attach
attach 22108(这里22108为进程子PID)
4. Use bt to view stack information
bt(直接使用bt查看堆栈信息)
Enter gdb and use common commands in gdb
The above is the detailed content of How to use gdb to view stack information of hung programs during operation and maintenance. For more information, please follow other related articles on the PHP Chinese website!