当前位置:网站首页>关于core文件
关于core文件
2022-07-24 18:38:00 【我要精通C++】
core文件存储位置和命名
1.检查coredump是否打开
ulimit -c
如果输出为unlimited,则表示core文件的size无限制,如果为0表示不记录core文件,如果为非零数字表示最大coredump文件大小。
2.查看core文件保存的位置
cat /proc/sys/kernel/core_pattern
3.如果需要修改,可以参考:
sysctl -w kernel.core_pattern=/corefile/core.%e.%p.%s.%E
可以将core文件统一生成到/corefile目录下,产生的文件名为core-命令名-pid-时间戳
以下是参数列表:
%p - insert pid into filename 添加pid(进程id)
%u - insert current uid into filename 添加当前uid(用户id)
%g - insert current gid into filename 添加当前gid(用户组id)
%s - insert signal that caused the coredump into the filename 添加导致产生core的信号
%t - insert UNIX time that the coredump occurred into filename 添加core文件生成时的unix时间
%h - insert hostname where the coredump happened into filename 添加主机名
%e - insert coredumping executable name into filename 添加导致产生core的命令名
边栏推荐
- Pytorch的旅程一:线性模型
- Latex数学公式
- Simulation implementation vector
- Date function format conversion
- Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag
- Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it
- CF lomsat gelral (heuristic merge)
- vim相关介绍
- 【TkInter】布局管理和事件系统
- Template inheritance and import
猜你喜欢
![[wechat applet development] custom tabbar case (custom message 99 + little hearts)](/img/49/354ecb448e91d9e15aaec4922a62e1.png)
[wechat applet development] custom tabbar case (custom message 99 + little hearts)

Get familiar with pytoch and pytoch environment configuration

轻松学Pytorch-迁移学习实现表面缺陷检查

Vsftpd2.3.4 port penetration 6200 IRC_ 3281_ backdoor
![[record of question brushing] 20. Valid brackets](/img/81/7edc2ff0003373fe0ab2868b1a872f.png)
[record of question brushing] 20. Valid brackets

Type-C PD protocol chip while charging and listening

Ionic4 learning notes 10 rotation map of an East Project

QT—动画框架

Missing value processing

全国职业院校技能大赛网络安全竞赛——Apache安全配置详解
随机推荐
永恒之蓝MS17-010exp复现
Is the validity period of the root certificate as long as the server SSL certificate?
Go小白实现一个简易的go mock server
Ionic4 learning notes 5-- custom public module
epoch,batch_ size
Go Xiaobai implements a simple go mock server
Variable and immutable data types
开窗函数(1)-部门工资前三员工
Latex mathematical formula
Zip compression and decompression
Ionic4 learning notes 1
7. Character coding?
Sqoop
MySQL -- implicit conversion of data type
QT - animation frame
Ionic4 learning notes 11 - popular goods display of an East Project
MySQL - bufferpool related information
Sword finger offer 21. adjust the array order so that odd numbers precede even numbers
ORM student management system
4. Basic type and reference type?