摘要: man strace: strace - trace system calls and signals DESCRIPTIONIn the simplest case strace runs the specified command until it exits. It intercepts an 阅读全文
posted @ 2020-06-11 11:57 insistYuan 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 在linux下开发时,如果程序突然崩溃了,也没有任何日志。这时可以查看core文件。从core文件中分析原因,通过gdb看出程序挂在哪里,分析前后的变量,找出问题的原因。 Core Dump 当程序运行的过程中异常终止或崩溃,操作系统会将程序当时的内存状态记录下来,保存在一个文件中,这种行为就叫做C 阅读全文
posted @ 2020-06-11 10:57 insistYuan 阅读(775) 评论(0) 推荐(0) 编辑
摘要: Linux dmesg命令用于显示开机信息。 kernel会将开机信息存储在ring buffer中。您若是开机时来不及查看信息,可利用dmesg来查看。开机信息亦保存在/var/log目录中,名称为dmesg的文件里。 语法 dmesg [-cn][-s <缓冲区大小>] 参数说明: -c 显示信 阅读全文
posted @ 2020-06-11 10:47 insistYuan 阅读(972) 评论(0) 推荐(0) 编辑