Viewing Exception Information
This topic describes how to view exception information saved in the storage device.
Prerequisites
- The kbox is running properly in the EulerOS.
- The dump medium is working properly.
- Only the user with the root rights can view the kbox-related information.
Exporting Exception Information
Upon system boot, the kbox logs are saved in the path /var/crash (default location, you can change this location by setting the path parameter in the kdump configuration file). Logs for each system exception are saved in the directory named by IP address-time point. The xxx-xxx.img.gz file in this directory is a kbox log.
Currently, the kbox logs are saved in the directory named "127.0.0.1-time point". 127.0.0.1 indicates that the kbox logs are only saved in the current host and will not be sent to other servers.
Run the following command to decompress and parse the logs:
The system displays "export_kbox_img_to_txt: parse kbox data into /tmp/kbox_log.txt success.
The kbox_log.txt file is the parsed kbox log.
You can run the vi command to view the log that records the exception information. The OOM exception information is used as an example. For details, see Providing System OOM Information.
area type: 0-panic 1-reboot 2-emerge 3-intermit 4-oom 5-oops/die 6-rlock 7-message 8-console ---------------area type:4, record num:1, unit_size:64 ------------ ###num:0, record len:34586 ---------KBOX_START---------- oom time:20160310212837-d6cf8 Current Pid: 46, comm: kworker/3:1 Tainted: G O E ---- ------- 3.10.0-229.20.1.42.x86_64 #1 Call Trace: [<ffffffffa036eb4b>] ? kbox_show_cur_stack+0x6b/0x80 [kbox] [<ffffffffa036f4e3>] ? kbox_dump_oom+0x13/0x30 [kbox] [<ffffffffa036e630>] ? kbox_oom_callback+0xe0/0x220 [kbox] [<ffffffff811ddb00>] ? pollwake+0x20/0x90 [<ffffffff810aa700>] ? wake_up_state+0x20/0x20 [<ffffffff810a1958>] ? __wake_up_common+0x58/0x90 [<ffffffff81612b8c>] ? notifier_call_chain+0x4c/0x70 [<ffffffff8109e81d>] ? __blocking_notifier_call_chain+0x4d/0x70 [<ffffffff8109e856>] ? blocking_notifier_call_chain+0x16/0x20 [<ffffffff8115d29e>] ? out_of_memory+0x4e/0x4f0 [<ffffffff813976ac>] ? tty_ldisc_deref+0x3c/0xa0 [<ffffffff8139bb8d>] ? moom_callback+0x4d/0x50 [<ffffffff8109015b>] ? process_one_work+0x17b/0x470 [<ffffffff81090f2b>] ? worker_thread+0x11b/0x400 [<ffffffff81090e10>] ? rescuer_thread+0x400/0x400 [<ffffffff8109830f>] ? kthread+0xcf/0xe0 [<ffffffff81098240>] ? kthread_create_on_node+0x140/0x140 [<ffffffff816170d8>] ? ret_from_fork+0x58/0x90 [<ffffffff81098240>] ? kthread_create_on_node+0x140/0x140 Stack: ffff88013861bba0 ffff880138582e00 0000000000000000 0000000000000000 ffff88013861bdc8 0000000000000000 ffff88013861bc08 ffffffffa0375091 000000042cc68d17 0000000000000000 ffff880138582e00 ffff88013861bbf8 0000000000000014 ffff88013861bc40 ffffffffa036eabd ffff880100000004 ffffffffa036eb4b 000000002cc68d17 0000000000000000 ffff88013861bc64 ffff88013861bc50 ffffffffa036f4e3 ffff88013861bce8 ffffffffa036e630 363130323861bc70 3832313230313330 38666336642d3733 ffffffff811ddb00 0000000000000000 ffff8800362f1700 ffffffff810aa700 0000000000000000 0000000000000000 000000002cc68d17 ffff88013861bcf8 ffffffff810a1958 0000000100000000 000000002cc68d17 00000000ffffffff 0000000000000000 0000000000000000 ffff88013861bd20 ffffffff81612b8c ffffffff8197fd00 0000000000000000 0000000000000000 ffff88013861bdc8 00000000ffffffff ffff88013861bd60 ffffffff8109e81d 0000000000000000 0000000000000000 0000000000000001 ffff88013ed92ec0 ffff88013efd8000 00000000000000d0 ffff88013861bd70 ffffffff8109e856 ffff88013861be08 ffffffff8115d29e ffff88013ed93680 ffff88013ed93680 ffff88013861bde0 0000000000000286 0000000000000282 ffff880036acd980 ffff88013861bdd0 ffffffff813976ac 0000000000000282 0000000000000000 ffff88013861be18 000000002cc68d17 ffffffff819c57e0 ffff8801385ea000 ffff88013ed92ec0 ffff88013ed96f00 00000000000000c0 ffff88013861be18 ffffffff8139bb8d ffff88013861be60 ffffffff8109015b 000000003ed92ed8 0000000000000000 ffff88013ed92ed8 ffff8801385ea030 ffff880138582e00 ffff8801385ea000 ffff88013ed92ec0 ffff88013861bec0 ffffffff81090f2b ffff88013861bfd8 ffff88013861bfd8 ffff880138582e00 ffff880138582e00 ffff880138582e00 ffff880138417d38