Log query after a process is suddenly interrupted under linux

Original address: https://blog.csdn.net/weixin_30338497/article/details/97729399

related articles

1. Open the core file under Linux and locate segfault ---- http://blog.chinaunix.net/uid-24774106-id-344195.html

2. The linux command dmesg to view the reason why the process was killed---- https ://blog.csdn.net/weixin_33868027/article/details/85969882?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control&depth_1 -utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control

3. Analysis of the reasons for the disappearance of the application process under Linux- https ://blog.csdn.net/green1893/article/details/78192017? utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&depth_1-utm_source =distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control

4. The Linux program is Killed, how to accurately view the log---- https://blog.csdn.net/shuihupo/article/details/80905641?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.control&depth_1 -utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.control

5、dmesg排查消失的进程----https://blog.csdn.net/tterminator/article/details/78177945?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control

 

I recently wrote a service that implements monitoring, but when I went to see it one day, the process suddenly disappeared. This is anxious. What is the reason? No one will accidentally turn off the even process!

Later found a linux log file: /var/log/messages

 

Open the file to find the process flag (libRTICServer) to find:

May 28 10:11:12 mysql-slave kernel: libRTICServer[14135]: segfault at 7fb75e303000 ip 0000003a3a489d13 sp 00007fb7812beac8 error 6 in libc-2.12.so[3a3a400000+18a000]

 

So the question is coming? Segmentation fault, what is the cause of it?

The following article seems to be able to do it, I haven't tried it, use it with caution!

http://blog.chinaunix.net/uid-24774106-id-344195.html

 

Reprinted at: https://www.cnblogs.com/cnjy/p/4536195.html

 

Guess you like

Origin blog.csdn.net/xqhrs232/article/details/113551996