风声 发表于 2020-6-5 21:53:42

内核报错

版主帮看看,谢谢;
应用程序用到串口485通信,看这个报错和串口有关系,帮分析下问题,谢谢!

06/05/20[   32.084134] imx-uart 21f4000.serial: cannot alloc DMA buffer.
21:27:37.877:[ INFO ]:[   32.092611] ------------[ cut here ]------------
[   32.099823] Kernel BUG at 800bb4fc
[   32.106132] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[   32.112002] Modules linked in: 8723bu evbug
[   32.116327] CPU: 0 PID: 1056 Comm: app Not tainted 3.14.38-6UL_ga-00001-g4ea478b #1
[   32.124028] task: 8a1cad00 ti: 8ba40000 task.ti: 8ba40000
[   32.129494] PC is at apply_to_page_range+0x1d0/0x1f4
[   32.134512] LR is at __dma_remap+0x40/0x54
[   32.138659] pc : [<800bb4fc>]    lr : [<80018334>]    psr: a0000013
[   32.138659] sp : 8ba41c60ip : 80afdb84fp : 8ba41cac
[   32.150185] r10: 8c000000r9 : 800181b4r8 : 80aff780
[   32.155453] r7 : 00014000r6 : 00013000r5 : 8ba41cacr4 : fffff000
[   32.162023] r3 : 800181b4r2 : 00013000r1 : fffff000r0 : 80b09188
[   32.168594] Flags: NzCvIRQs onFIQs onMode SVC_32ISA ARMSegment user
[   32.175774] Control: 10c53c7dTable: 8ba4c06aDAC: 00000015
[   32.181561] Process app (pid: 1056, stack limit = 0x8ba40238)
[   32.187349] Stack: (0x8ba41c60 to 0x8ba42000)
[   32.191771] 1c60: 2e303030 69726573 00006c61 00013000 80b09188 00014000 8a1e0530 fffff000
[   32.200011] 1c80: 8ba41cac 00013000 00014000 80aff780 00000000 8c000000 00000000 80018334
[   32.208253] 1ca0: 8ba41cac 00000000 00001f44 0000065f 8a48e200 8cdd6fe0 8bdd7000 00014000
[   32.216493] 1cc0: 0007ffff 80018b90 00001f48 8a01e4e4 8bd84e00 8a0bcc10 00001f48 00000000
[   32.224732] 1ce0: 8a48e200 8a1e0410 00000000 8a0bcc10 00000000 8a48e350 8a48e200 00000000
[   32.232974] 1d00: 8a48e200 80331c10 00000000 8ba41d18 8033251c 8a1e0410 80af44c0 803324ec
[   32.241212] 1d20: 00000000 8a1e0410 90c05240 00000002 021f4000 00000000 00000001 00000000
[   32.249452] 1d40: 00000010 00000000 00000000 00000000 8a1e0410 8a1e0410 8a11dbd0 8a48e200
[   32.257692] 1d60: 00000000 8032ede4 00000000 8a11dbd0 8a48e200 8a11dc6c 8ba30b40 8ba40000
[   32.265933] 1d80: 00020982 8032f918 8ba30b40 00000100 8a1ceb80 0cf00014 8ba40000 803156c8
[   32.274173] 1da0: 8ba41dfc 8a467958 75cc5c64 00000004 840052a8 8a467958 8ba30b40 807c8b48
[   32.282413] 1dc0: 8bc13ef0 8bc13ef0 850825d8 00000000 00000000 800da6d0 8ba41ef0 8ba41e60
[   32.290653] 1de0: 8ba30b40 8a467958 8ba30b48 800da628 8ba41ea8 800d5204 00000000 8ba41ebc
[   32.298893] 1e00: 8ba41f74 00020982 00000000 8ba41ea8 00000000 800d5298 8ba41ef0 800e3444
[   32.307133] 1e20: 8ba40000 8b855446 00000000 800e07b4 00000100 8ba30b40 00000026 00000000
[   32.315373] 1e40: 00000000 00000007 8b855445 8ba40000 5edab8ca 8a459850 8a459850 850825d8
[   32.323613] 1e60: 8a467958 8bcf7958 8ba40000 8ba41ef0 8ba30b40 8ba41f74 8ba40000 8ba41f08
[   32.331854] 1e80: 8ba41ea8 00000000 00000041 800e3c68 8ba41ebc 00000002 90bfd270 8ba41eb0
[   32.340095] 1ea0: 00000000 8b855440 8a459850 8510ebb0 8a459850 840f8660 00000000 00000000
[   32.348334] 1ec0: 8a2be288 8ba41f74 00000001 8b824000 ffffff9c 8000e5e4 8ba40000 00000000
[   32.356575] 1ee0: 75cc5f9c 800e41ac 00000041 800703c0 8a459850 8510ebb0 d9797b8c 00000007
[   32.364815] 1f00: 8b855445 8ba40000 8a2b3250 84079880 8a467958 00000101 00000004 00000042
[   32.373053] 1f20: 00000000 00000000 8b855440 00000000 00000006 8078b2bc 00000000 800ef904
[   32.381294] 1f40: 000a0982 000a0982 8b824000 ffffff9c 00000005 00000006 8b824000 ffffff9c
[   32.389535] 1f60: 00000005 800d6310 8a2b3001 0000002e 76f5c000 00020982 8a2b0000 00000026
[   32.397777] 1f80: 00000100 00000001 00054c12 0047d658 00476ef0 00066398 00000005 8000e5e4
[   32.406017] 1fa0: 00000000 8000e460 0047d658 00476ef0 0047d658 000a0982 00000000 00000000
[   32.414257] 1fc0: 0047d658 00476ef0 00066398 00000005 76f2f718 75cc5fa0 75cc6694 75cc5f9c
[   32.422498] 1fe0: 75cc6460 75cc5c88 76f2d224 76f2d240 80000010 0047d658 8bfd8811 8bfd8c11
[   32.430769] [<800bb4fc>] (apply_to_page_range) from [<80018334>] (__dma_remap+0x40/0x54)
[   32.438946] [<80018334>] (__dma_remap) from [<80018b90>] (__arm_dma_free.isra.18+0x170/0x208)
[   32.447547] [<80018b90>] (__arm_dma_free.isra.18) from [<80331c10>] (imx_uart_dma_exit+0x44/0x78)
[   32.456488] [<80331c10>] (imx_uart_dma_exit) from [<803324ec>] (imx_startup+0x570/0x5e0)
[   32.464654] [<803324ec>] (imx_startup) from [<8032ede4>] (uart_startup.part.13+0x4c/0x194)
[   32.473000] [<8032ede4>] (uart_startup.part.13) from [<8032f918>] (uart_open+0xe4/0x158)
[   32.481162] [<8032f918>] (uart_open) from [<803156c8>] (tty_open+0x1a8/0x560)
[   32.488366] [<803156c8>] (tty_open) from [<800da6d0>] (chrdev_open+0xa8/0x160)
[   32.495661] [<800da6d0>] (chrdev_open) from [<800d5204>] (do_dentry_open.isra.16+0x210/0x284)
[   32.504259] [<800d5204>] (do_dentry_open.isra.16) from [<800d5298>] (finish_open+0x20/0x38)
[   32.512688] [<800d5298>] (finish_open) from [<800e3444>] (do_last.isra.58+0x698/0xb40)
[   32.520683] [<800e3444>] (do_last.isra.58) from [<800e3c68>] (path_openat+0x37c/0x5c0)
[   32.528674] [<800e3c68>] (path_openat) from [<800e41ac>] (do_filp_open+0x2c/0x80)
[   32.536233] [<800e41ac>] (do_filp_open) from [<800d6310>] (do_sys_open+0x120/0x1d0)
[   32.543965] [<800d6310>] (do_sys_open) from [<8000e460>] (ret_fast_syscall+0x0/0x30)
[   32.551771] Code: e3500000 1affffea e59a1000 eaffffaf (e7f001f2)
[   32.557915] ---[ end trace afda1f67a198f5f2 ]---

zhichao 发表于 2020-6-6 08:53:23

问题在:
[   32.099823] Kernel BUG at 800bb4fc
[   32.106132] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
即:
800bb4fc的内核错误[详细调试信息不可用]      内部错误:Oops-错误:0[#1]抢占SMP ARM
没有详细调试信息,不好判断哪的问题

风声 发表于 2020-6-6 18:28:02

zhichao 发表于 2020-6-6 08:53
问题在:
[   32.099823] Kernel BUG at 800bb4fc
[   32.106132] Int ...

谢谢您!
我这边现在不出现了,原来有个类型错误,把string类型当成int类型处理,报错;这个修改后就没有再出现这个个问题。不知道为啥应用程序的一个类型处理错误,会导致内核崩溃。按说不应该
页: [1]
查看完整版本: 内核报错