Debugging Kernel Crash using Kernel Crash Dump tool
1. Install the kernel crash dump utility with the following command $ sudo apt install linux-crashdump Follow the steps mentioned in this link Kernel Crash Dump 2. Follow the steps to setup linux-crashdump and test a sample crash: # echo c > /proc/sysrq-trigger Every time, there is crash, it saves the dump file, dmesg under /var/crash/<time_stamp> folder. Above test generates/saves the kernel core dump file, dmesg under /var/crash which we can analyze using linux crash tool. linux@linux:/var/crash/201706071402$ sudo crash /home/test/vmlinux /var/crash/201706071402/dump.201706071402 crash 7.0.3 Copyright (C) 2002-2013 Red Hat, Inc. Copyright (C) 2004, 2005, 2006, 2010 IBM Corporation Copyright (C) 1999-2006 Hewlett-Packard Co Copyright (C) 2005, 2006, 2011, 2012 Fujitsu Limited Copyright (C) 2006, 2007 VA Linux Systems Japan K.K. Copyright (C) 2005, 2011 NEC Corporation Copyright (C) 1999,...
Comments
Post a Comment