abrt参数Linux,ABRT

66b52468c121889b900d4956032f1009.png

8种机械键盘轴体对比

本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?

ABRT (Automated Bug Reporting Tool) Daemon:ABRT is an application, included in Fedora Linux Distribution, that is used to report bugs in the software packages whenever crash occurs. Due to this, ABRT also helps in creation of core dump files. Multiple packages may be needed to run various features of ABRT daemon, and their listing is as follows.

在linux调试程序,程序异常宕掉,没有core文件,很难定位问题。但是有了core文件就容易定位多了, 一般是可以通过在环境变量中设置ulimit -c unlimited。

但是现场实施人员有时会忘记设置这条命令, 因此可以通过设置linux的abrt服务来实现。

系统:CentOS7

配置1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19# Product Signing (GPG) Keys:

# https://access.redhat.com/security/team/key

#

OpenGPGCheck = no #捕获所有程序的崩溃信息

# Blacklisted packages

#

BlackList = nspluginwrapper, valgrind, strace, mono-core

# Process crashes in executables which do not belong to any package?

#

ProcessUnpackaged = yes #

# Blacklisted executable paths (shell patterns)

#

BlackListedPaths = /usr/share/doc/*, */example*, /usr/bin/nspluginviewer, /usr/lib/xulrunner-*/plugin-container

# interpreters names

Interpreters = python2, python2.7, python, python3, python3.3, perl, perl5.16.2配置文件: /etc/abrt/abrt-action-save-package-data.conf配置文件:/etc/abrt/abrt.conf配置参数解析

重启服务1service abrtd restart

查看状态1service abrtd status1sysctl -a | grep core_pattern

操作命令

查看文件的包1abrt-cli list1

2

3

4

5

6

7

8

9

10# abrt-cli list

id 3c0df29571be38a595b2034cfa631d3e6b569d34

reason: Unable to handle kernel NULL pointer dereference at virtual address 00000000

time: 2019年09月11日 星期三 20时26分26秒

uid: 0 (root)

count: 1

Directory: /var/spool/abrt/vmcore-127.0.0.1-2019-09-05-10:31:32

The Autoreporting feature is disabled. Please consider enabling it by issuing

'abrt-auto-reporting enabled' as a user with root privileges1

2

3# ls /var/spool/abrt/ccpp-2019-09-21-16:26:32-16439

abrt_version architecture cmdline coredump dso_list event_log exploitable hostname last_occurrence machineid open_fds os_release proc_pid_status reason time uid uuid

analyzer cgroup core_backtrace count environ executable global_pid kernel limits maps os_info pid pwd runlevel type username var_log_messages

删除文件包1abrt-cli rm 1

2# abrt-cli rm /var/spool/abrt/vmcore-127.0.0.1-2019-09-05-10:31:32

rm '/var/spool/abrt/vmcore-127.0.0.1-2019-09-05-10:31:32'

参考

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值