嵌入式linux内核崩溃,用sysrq-trigger实现ARM Linux一键内核崩溃、一键关机、一键dump信息等...

# cd /proc/

# echo c > sysrq-trigger

[  372.703889] sysrq: SysRq : Trigger a crash

[  372.705883] Unable to handle kernel NULL pointer dereference at virtual address 00000000

[  372.707831] pgd = 9ed5c000

[  372.708459] [00000000] *pgd=7f661831, *pte=00000000, *ppte=00000000

[  372.710189] Internal error: Oops: 817 [#1] SMP ARM

[  372.711290] Modules linked in:

[  372.712699] CPU: 0 PID: 705 Comm: sh Not tainted 4.0.0-rc1+ #46

[  372.715446] Hardware name: ARM-Versatile Express

[  372.722231] task: 9ec9b700 ti: 9ed5a000 task.ti: 9ed5a000

[  372.725480] PC is at sysrq_handle_crash+0x30/0x40

[  372.727546] LR is at sysrq_handle_crash+0x28/0x40

[  372.728286] pc : [<802903d8>]    lr : [<802903d0>]    psr: a0000013

[  372.728286] sp : 9ed5bf18  ip : 00000000  fp : 0016d22c

[  372.729548] r10: 76f55000  r9 : 9ed5a000  r8 : 00000007

[  372.729788] r7 : 00000000  r6 : 00000063  r5 : 80650494  r4 : 80658ea8

[  372.730066] r3 : 00000000  r2 : 00000001  r1 : 00000000  r0 : 00000063

[  372.730394] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user

[  372.730716] Control: 10c5387d  Table: 7ed5c06a  DAC: 00000015

[  372.730970] Process sh (pid: 705, stack limit = 0x9ed5a210)

[  372.731239] Stack: (0x9ed5bf18 to 0x9ed5c000)

[  372.731549] bf00:                                                       802903a8 80290ba4

[  372.731887] bf20: 00000002 00000001 00000000 00000000 9eff0d80 80290cb0 00000000 80122bd8

[  372.732299] bf40: 9f5f5000 00000002 76f55000 9ed5bf80 00000002 800da168 0016d22c 800240f0

[  372.732618] bf60: 00000003 00000000 00000000 9f5f5000 9f5f5000 00000002 76f55000 800da488

[  372.732954] bf80: 00000000 00000000 00000000 00000002 76f55000 00166cd8 00000004 8000e7a8

[  372.733286] bfa0: 00000000 8000e5e0 00000002 76f55000 00000001 76f55000 00000002 00000000

[  372.733592] bfc0: 00000002 76f55000 00166cd8 00000004 000c49ae 0016c4c0 00000002 0016d22c

[  372.733928] bfe0: 00000002 7eb2f8c0 000a2235 00008e7c 60000010 00000001 00000000 00000000

[  372.735094] [<802903d8>] (sysrq_handle_crash) from [<80290ba4>] (__handle_sysrq+0x90/0x164)

[  372.735580] [<80290ba4>] (__handle_sysrq) from [<80290cb0>] (write_sysrq_trigger+0x38/0x48)

[  372.736221] [<80290cb0>] (write_sysrq_trigger) from [<80122bd8>] (proc_reg_write+0x5c/0x84)

[  372.738252] [<80122bd8>] (proc_reg_write) from [<800da168>] (vfs_write+0xa0/0x1a8)

[  372.740445] [<800da168>] (vfs_write) from [<800da488>] (SyS_write+0x40/0x8c)

[  372.742670] [<800da488>] (SyS_write) from [<8000e5e0>] (ret_fast_syscall+0x0/0x40)

[  372.745287] Code: 0a000000 e12fff33 e3a03000 e3a02001 (e5c32000)

[  372.748107] ---[ end trace 22610ffc8a0b80b3 ]---

[  372.749418] Kernel panic - not syncing: Fatal exception

[  372.751070] CPU1: stopping

[  372.752136] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D         4.0.0-rc1+ #46

[  372.752457] Hardware name: ARM-Versatile Express

[  372.753464] [<80015790>] (unwind_backtrace) from [<80011a10>] (show_stack+0x10/0x14)

[  372.753854] [<80011a10>] (show_stack) from [<804842bc>] (dump_stack+0x74/0x90)

[  372.754240] [<804842bc>] (dump_stack) from [<80013b2c>] (handle_IPI+0x134/0x170)

[  372.754632] [<80013b2c>] (handle_IPI) from [<800086a4>] (gic_handle_irq+0x54/0x5c)

[  372.755039] [<800086a4>] (gic_handle_irq) from [<80012500>] (__irq_svc+0x40/0x54)

[  372.755458] Exception stack(0x9f487f90 to 0x9f487fd8)

[  372.755872] 7f80:                                     ffffffed 9f487fe0 ffffffed 8001c020

[  372.756322] 7fa0: 8064a454 00000000 00000000 80647540 80646c08 8064a4a8 00000000 8064a4a0

[  372.756753] 7fc0: 00000000 9f487fd8 8000f7d8 8000f7dc 60000013 ffffffff

[  372.757150] [<80012500>] (__irq_svc) from [<8000f7dc>] (arch_cpu_idle+0x30/0x3c)

[  372.757581] [<8000f7dc>] (arch_cpu_idle) from [<8004f0cc>] (cpu_startup_entry+0x1e4/0x2c4)

[  372.758187] [<8004f0cc>] (cpu_startup_entry) from [<60008744>] (0x60008744)

[  372.778966] CPU2: stopping

[  372.779266] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D         4.0.0-rc1+ #46

你可能感兴趣的:(嵌入式linux内核崩溃)