coredump的捕获

| No Comments

RHEL5系统

[cnangel@localhost ~]$sysctl kernel.core_pattern
kernel.core_pattern = core

此时文件在当前目录,文件名称以core.{pid}的形式存在

RHEL6系统

[cnangel@localhost ~]$sysctl kernel.core_pattern
kernel.core_pattern = |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e

此时文件在当前目录,文件名称也是以core.{pid}的形式存在

Fedora26系统

[cnangel@localhost ~]$sysctl kernel.core_pattern
kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e

此时内核转储使用了systemd,需要coredumpctl命令查看

coredumpctl

列出所有的core信息

coredumpctl list {执行程序名称}

查看执行程序名称的所有core信息

coredumpctl -o core dump {PID}

直接下载该PID的core文件,名称为core,放入当前目录下。

Leave a comment

Archives

Pages

Powered by Movable Type 6.2.4

November 2017

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Recent Assets

  • 2016-07-06 09-13-22 的屏幕截图.png
  • 2016-07-06 09-13-56 的屏幕截图.png
  • 2016-07-06 09-12-39 的屏幕截图.png
  • ClusterNodeAndManager.jpg
  • SampleNode.jpg
  • ClusterNode.jpg
  • SM.jpg
  • SKIPLIST.PNG
  • bitcask.jpg
  • bitcask-2.jpg
Creative Commons License
This blog is licensed under a Creative Commons License.

About this Entry

This page contains a single entry by Cnangel published on August 30, 2017 1:17 PM.

fedora26 几轮跳票,终于尝鲜啦 was the previous entry in this blog.

Fedora27 Workstation发布了 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.