Unable to handle kernel NULL pointer dereference at virtual address 00000000

Anthony_Tang 2016-07-11 02:09:11
本人利用arm9开发平台,想实现USB摄像头的图片采集功能,但是运行后出现以下错误,不知道该如何解决?

[root@FriendlyARM /mjpg-streamer]# ./start.sh
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video2
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 15
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = cd560000
[00000000] *pgd=5d540831, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT
last sysfs file: /sys/devices/virtual/vc/vcs5/dev
Modules linked in: snd_soc_tiny6410_wm8960 snd_soc_wm8960 fa_cpu_pfn(P)
CPU: 0 Tainted: P (2.6.38-FriendlyARM #1)
PC is at __mutex_lock_slowpath+0xf8/0x2ac
LR is at __mutex_lock_slowpath+0xe0/0x2ac
pc : [<c05162b0>] lr : [<c0516298>] psr: 40000093
sp : cd53bde8 ip : 11111111 fp : cd58b000
r10: cd11c700 r9 : c01e4e10 r8 : cd53bde8
r7 : c078eef8 r6 : cd42bc20 r5 : 60000013 r4 : c078eee4
r3 : 00000000 r2 : cd53a000 r1 : cd53bde8 r0 : c078eee4
Flags: nZcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Control: 00c5387d Table: 5d560008 DAC: 00000015
Process mjpg_streamer (pid: 1026, stack limit = 0xcd53a268)
Stack: (0xcd53bde8 to 0xcd53c000)
bde0: c078eef8 00000000 11111111 cd53bde8 ffffffff c078eee4
be00: c078eee4 00000458 c078ea74 cd7fc500 c01e4e10 cd11c700 cd58b000 c0516484
be20: c0752008 c0441210 c0752008 c04411d8 c0752010 cd7fc500 c055da08 c03c4108
be40: c03c406c cd11c700 cd7fc500 cc8ff180 00000000 c01e4f78 cd11c700 00000000
be60: c051c7f4 00000000 cd6af280 cd11d000 cd7fc500 c01e0384 cd53bee4 00000000
be80: 00000000 00000002 00000026 cd53a000 00000000 c01ed1fc cd53bee4 00000002
bea0: 00000002 00000101 cd53bee4 00000026 00000000 c01ed678 00000200 cd555ab4
bec0: 00000001 00000001 cd53bedc ffffff9c 00000000 400c1350 400583b8 c05174fc
bee0: cd42bc20 cd6af280 cd11d000 80000007 00000007 c071b57c 00000000 cd016360
bf00: 00000000 cd11c700 00000101 00000004 00000001 00000000 0000001a 00000000
bf20: cd477e68 00000000 00000001 00000000 cd7f90e4 00000000 00000001 00000003
bf40: 00000000 00000000 cd7f90c8 cd7f90c0 400583b8 c051752c cd7f90c8 00000004
bf60: ffffff9c cd58b000 00000000 00000002 cd53a000 00000000 400583b8 c01e11ac
bf80: 00000000 00013858 000001e0 00000280 00013648 00000005 c0172788 cd53a000
bfa0: 00000000 c01725e0 000001e0 00000280 00013858 00000002 00000000 00000001
bfc0: 000001e0 00000280 00013648 00000005 40060b4c 00000000 00000000 400583b8
bfe0: 00013638 be9c92c8 40057290 400c136c 60000010 00013858 5fffe821 5fffec21
[<c05162b0>] (__mutex_lock_slowpath+0xf8/0x2ac) from [<c0516484>] (mutex_lock+0x20/0x38)
[<c0516484>] (mutex_lock+0x20/0x38) from [<c0441210>] (s3c_fimc_open+0x38/0xa8)
[<c0441210>] (s3c_fimc_open+0x38/0xa8) from [<c03c4108>] (v4l2_open+0x9c/0xd0)
[<c03c4108>] (v4l2_open+0x9c/0xd0) from [<c01e4f78>] (chrdev_open+0x168/0x190)
[<c01e4f78>] (chrdev_open+0x168/0x190) from [<c01e0384>] (__dentry_open.clone.12+0x164/0x26c)
[<c01e0384>] (__dentry_open.clone.12+0x164/0x26c) from [<c01ed1fc>] (finish_open+0x80/0x158)
[<c01ed1fc>] (finish_open+0x80/0x158) from [<c01ed678>] (do_filp_open+0x11c/0x520)
[<c01ed678>] (do_filp_open+0x11c/0x520) from [<c01e11ac>] (do_sys_open+0x58/0xe4)
[<c01e11ac>] (do_sys_open+0x58/0xe4) from [<c01725e0>] (ret_fast_syscall+0x0/0x30)
Code: e584d018 e58d7000 e58d3004 e1a0800d (e583d000)
---[ end trace 2111f2487210d69c ]---
...全文
471 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
LubinLew 2016-07-25
  • 打赏
  • 举报
回复
内核不匹配吧,直接都crash了
Anthony_Tang 2016-07-11
  • 打赏
  • 举报
回复
紧接着错误:
note: mjpg_streamer[1026] exited with preempt_count 1 BUG: scheduling while atomic: mjpg_streamer/1026/0x40000002 Modules linked in: snd_soc_tiny6410_wm8960 snd_soc_wm8960 fa_cpu_pfn(P) [<c0177c44>] (unwind_backtrace+0x0/0xe4) from [<c0514e58>] (schedule+0x68/0x370) one_wire_status: 2 [<c0514e58>] (schedule+0x68/0x370) from [<c0183398>] (__cond_resched+0x14/0x20) [<c0183398>] (__cond_resched+0x14/0x20) from [<c05152c8>] (_cond_resched+0x34/0x44) one_wire_status: 3 [<c05152c8>] (_cond_resched+0x34/0x44) from [<c01cf990>] (unmap_vmas+0x600/0x6d8) [<c01cf990>] (unmap_vmas+0x600/0x6d8) from [<c01d4234>] (exit_mmap+0x100/0x274) [<c01d4234>] (exit_mmap+0x100/0x274) from [<c0184e94>] (mmput+0x48/0xe4) one_wire_status: 4 [<c0184e94>] (mmput+0x48/0xe4) from [<c0188bdc>] (exit_mm+0x12c/0x138) [<c0188bdc>] (exit_mm+0x12c/0x138) from [<c0189fe8>] (do_exit+0x1a0/0x5e4) [<c0189fe8>] (do_exit+0x1a0/0x5e4) from [<c0176284>] (die+0x190/0x1c0) one_wire_status: 4 [<c0176284>] (die+0x190/0x1c0) from [<c0178bc8>] (__do_kernel_fault+0x64/0x84) [<c0178bc8>] (__do_kernel_fault+0x64/0x84) from [<c0178dc0>] (do_page_fault+0x1d8/0x1f4) one_wire_status: 4 [<c0178dc0>] (do_page_fault+0x1d8/0x1f4) from [<c0168218>] (do_DataAbort+0x30/0x98) [<c0168218>] (do_DataAbort+0x30/0x98) from [<c01721cc>] (__dabt_svc+0x4c/0x60) Exception stack(0xcd53bda0 to 0xcd53bde8) one_wire_status: 4 bda0: c078eee4 cd53bde8 cd53a000 00000000 c078eee4 60000013 cd42bc20 c078eef8 bdc0: cd53bde8 c01e4e10 cd11c700 cd58b000 11111111 cd53bde8 c0516298 c05162b0 bde0: 40000093 ffffffff [<c01721cc>] (__dabt_svc+0x4c/0x60) from [<c05162b0>] (__mutex_lock_slowpath+0xf8/0x2ac) one_wire_status: 4 [<c05162b0>] (__mutex_lock_slowpath+0xf8/0x2ac) from [<c0516484>] (mutex_lock+0x20/0x38) [<c0516484>] (mutex_lock+0x20/0x38) from [<c0441210>] (s3c_fimc_open+0x38/0xa8) one_wire_status: 5 [<c0441210>] (s3c_fimc_open+0x38/0xa8) from [<c03c4108>] (v4l2_open+0x9c/0xd0) [<c03c4108>] (v4l2_open+0x9c/0xd0) from [<c01e4f78>] (chrdev_open+0x168/0x190) [<c01e4f78>] (chrdev_open+0x168/0x190) from [<c01e0384>] (__dentry_open.clone.12+0x164/0x26c) [<c01e0384>] (__dentry_open.clone.12+0x164/0x26c) from [<c01ed1fc>] (finish_open+0x80/0x158) [<c01ed1fc>] (finish_open+0x80/0x158) from [<c01ed678>] (do_filp_open+0x11c/0x520) one_wire_status: 2 [<c01ed678>] (do_filp_open+0x11c/0x520) from [<c01e11ac>] (do_sys_open+0x58/0xe4) [<c01e11ac>] (do_sys_open+0x58/0xe4) from [<c01725e0>] (ret_fast_syscall+0x0/0x30) one_wire_status: 2 i: Format............: MJPEG BUG: scheduling while atomic: mjpg_streamer/1026/0x40000002 Modules linked in: snd_soc_tiny6410_wm8960 snd_soc_wm8960 fa_cpu_pfn(P) [<c0177c44>] (unwind_backtrace+0x0/0xe4) from [<c0514e58>] (schedule+0x68/0x370) [<c0514e58>] (schedule+0x68/0x370) from [<c0183398>] (__cond_resched+0x14/0x20) one_wire_status: 2 [<c0183398>] (__cond_resched+0x14/0x20) from [<c05152c8>] (_cond_resched+0x34/0x44) [<c05152c8>] (_cond_resched+0x34/0x44) from [<c0189d6c>] (put_files_struct+0x9c/0xfc) [<c0189d6c>] (put_files_struct+0x9c/0xfc) from [<c0189ff8>] (do_exit+0x1b0/0x5e4) one_wire_status: 4 [<c0189ff8>] (do_exit+0x1b0/0x5e4) from [<c0176284>] (die+0x190/0x1c0) [<c0176284>] (die+0x190/0x1c0) from [<c0178bc8>] (__do_kernel_fault+0x64/0x84) [<c0178bc8>] (__do_kernel_fault+0x64/0x84) from [<c0178dc0>] (do_page_fault+0x1d8/0x1f4) one_wire_status: 4 [<c0178dc0>] (do_page_fault+0x1d8/0x1f4) from [<c0168218>] (do_DataAbort+0x30/0x98) [<c0168218>] (do_DataAbort+0x30/0x98) from [<c01721cc>] (__dabt_svc+0x4c/0x60) one_wire_status: 4 Exception stack(0xcd53bda0 to 0xcd53bde8) bda0: c078eee4 cd53bde8 cd53a000 00000000 c078eee4 60000013 cd42bc20 c078eef8 bdc0: cd53bde8 c01e4e10 cd11c700 cd58b000 11111111 cd53bde8 c0516298 c05162b0 one_wire_status: 4 bde0: 40000093 ffffffff [<c01721cc>] (__dabt_svc+0x4c/0x60) from [<c05162b0>] (__mutex_lock_slowpath+0xf8/0x2ac) [<c05162b0>] (__mutex_lock_slowpath+0xf8/0x2ac) from [<c0516484>] (mutex_lock+0x20/0x38) one_wire_status: 4 [<c0516484>] (mutex_lock+0x20/0x38) from [<c0441210>] (s3c_fimc_open+0x38/0xa8) [<c0441210>] (s3c_fimc_open+0x38/0xa8) from [<c03c4108>] (v4l2_open+0x9c/0xd0) [<c03c4108>] (v4l2_open+0x9c/0xd0) from [<c01e4f78>] (chrdev_open+0x168/0x190) one_wire_status: 5 [<c01e4f78>] (chrdev_open+0x168/0x190) from [<c01e0384>] (__dentry_open.clone.12+0x164/0x26c) [<c01e0384>] (__dentry_open.clone.12+0x164/0x26c) from [<c01ed1fc>] (finish_open+0x80/0x158) [<c01ed1fc>] (finish_open+0x80/0x158) from [<c01ed678>] (do_filp_open+0x11c/0x520) [<c01ed678>] (do_filp_open+0x11c/0x520) from [<c01e11ac>] (do_sys_open+0x58/0xe4) [<c01e11ac>] (do_sys_open+0x58/0xe4) from [<c01725e0>] (ret_fast_syscall+0x0/0x30) one_wire_status: 2 BUG: scheduling while atomic: mjpg_streamer/1026/0x40000002 Modules linked in: snd_soc_tiny6410_wm8960 snd_soc_wm8960 fa_cpu_pfn(P) [<c0177c44>] (unwind_backtrace+0x0/0xe4) from [<c0514e58>] (schedule+0x68/0x370) [<c0514e58>] (schedule+0x68/0x370) from [<c0183398>] (__cond_resched+0x14/0x20) one_wire_status: 2 [<c0183398>] (__cond_resched+0x14/0x20) from [<c05152c8>] (_cond_resched+0x34/0x44) [<c05152c8>] (_cond_resched+0x34/0x44) from [<c0189d6c>] (put_files_struct+0x9c/0xfc) [<c0189d6c>] (put_files_struct+0x9c/0xfc) from [<c0189ff8>] (do_exit+0x1b0/0x5e4) one_wire_status: 3 [<c0189ff8>] (do_exit+0x1b0/0x5e4) from [<c0176284>] (die+0x190/0x1c0) [<c0176284>] (die+0x190/0x1c0) from [<c0178bc8>] (__do_kernel_fault+0x64/0x84) [<c0178bc8>] (__do_kernel_fault+0x64/0x84) from [<c0178dc0>] (do_page_fault+0x1d8/0x1f4) one_wire_status: 4 [<c0178dc0>] (do_page_fault+0x1d8/0x1f4) from [<c0168218>] (do_DataAbort+0x30/0x98) [<c0168218>] (do_DataAbort+0x30/0x98) from [<c01721cc>] (__dabt_svc+0x4c/0x60) one_wire_status: 4 Exception stack(0xcd53bda0 to 0xcd53bde8) bda0: c078eee4 cd53bde8 cd53a000 00000000 c078eee4 60000013 cd42bc20 c078eef8 bdc0: cd53bde8 c01e4e10 cd11c700 cd58b000 11111111 cd53bde8 c0516298 c05162b0 one_wire_status: 4 bde0: 40000093 ffffffff [<c01721cc>] (__dabt_svc+0x4c/0x60) from [<c05162b0>] (__mutex_lock_slowpath+0xf8/0x2ac) [<c05162b0>] (__mutex_lock_slowpath+0xf8/0x2ac) from [<c0516484>] (mutex_lock+0x20/0x38) one_wire_status: 4 [<c0516484>] (mutex_lock+0x20/0x38) from [<c0441210>] (s3c_fimc_open+0x38/0xa8) [<c0441210>] (s3c_fimc_open+0x38/0xa8) from [<c03c4108>] (v4l2_open+0x9c/0xd0) [<c03c4108>] (v4l2_open+0x9c/0xd0) from [<c01e4f78>] (chrdev_open+0x168/0x190) one_wire_status: 4 [<c01e4f78>] (chrdev_open+0x168/0x190) from [<c01e0384>] (__dentry_open.clone.12+0x164/0x26c) [<c01e0384>] (__dentry_open.clone.12+0x164/0x26c) from [<c01ed1fc>] (finish_open+0x80/0x158) one_wire_status: 5 [<c01ed1fc>] (finish_open+0x80/0x158) from [<c01ed678>] (do_filp_open+0x11c/0x520) [<c01ed678>] (do_filp_open+0x11c/0x520) from [<c01e11ac>] (do_sys_open+0x58/0xe4) [<c01e11ac>] (do_sys_open+0x58/0xe4) from [<c01725e0>] (ret_fast_syscall+0x0/0x30) Segmentation fault

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧