Main Menu

Search

LINUX: HOW TO MANUALLY FORCE CRASH / KERNEL PANIC LINUX HOST

Following is commands can be used to force crash / kernel panic on Linux hosts

echo 1 > /proc/sys/kernel/sysrq 
echo 'c' > /proc/sysrq-trigger 

Following is sample output of above command.


echo 1 > /proc/sys/kernel/sysrq 
echo 'c' > /proc/sysrq-trigger 
 
 
Below is snippet of crash messages we see when we run above commands. 
Last login: Fri Aug 28 13:22:15 on ttyS0 
[root@test-host ~]# echo 1 > /proc/sys/kernel/sysrq 
[root@test-host ~]# echo 'c' > /proc/sysrq-trigger 
SysRq : Trigger a crash 
BUG: unable to handle kernel NULL pointer dereference at           (null) 
IP: [<ffffffff813183e6>] sysrq_handle_crash+0x16/0x20 
PGD 79bea067 PUD 7a4ca067 PMD 0  
Oops: 0002 [#1] SMP  
CPU 1  
Modules linked in: ovmapi lockd sunrpc bonding be2iscsi iscsi_boot_sysfs iscsi_tcp bnx2i cnic uio cxgb3i libcxgbi cxgb3 mdio libiscsi_tcp libiscsi scsi_transport_iscsi rdma_ucm(U) ib_sdp(U) rdma_cm(U) iw_cm(U) ib_addr(U) ib_ipoib(U) ib_cm(U) ipv6 ib_uverbs(U) ib_umad(U) mlx4_vnic(U) mlx4_vnic_helper(U) mlx4_ib(U) ib_sa(U) ib_mad(U) ib_core(U) mlx4_core(U) video sbs sbshc hed acpi_memhotplug acpi_ipmi ipmi_msghandler lp snd_seq_dummy serio_raw snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd floppy soundcore snd_page_alloc parport_pc parport pata_acpi i2c_piix4 i2c_core pcspkr ata_generic dm_snapshot dm_zero dm_mirror dm_region_hash dm_log dm_mod ata_piix ext3 jbd mbcache xen_netfront xen_blkfront [last unloaded: mperf]

 


Products to which Article Applies

All Linux Operating System 

Search Keywords: linux unix force forcible panic kernel crash reboot manual manually command commands how host hang hanging

Article Author: Tarun Boyella

 

No comments:

Post a Comment