colorjun

colorjun

0个粉丝

40

问答

0

专栏

1

资料

colorjun  发布于  2018-01-02 10:06:49
采纳率 0%
40个问答
2349

求对linux熟悉的大虾指路!!!

 
我用一个QT程序画视频窗的边框实现文字显示以及网络接收等。在3531A上跑,功能正常但就是跑一会儿打印窗口就会报错exited with preempt_count 2。我对linux一窍不通,请问大虾此问题从哪些方面下手?
下面是打印的错误情况:

Unable to handle kernel paging request at virtual address d6355001
pgd = c7f6c000
[d6355001] *pgd=00000000
Internal error: Oops: 805 [#1] SMP ARM
Modules linked in: hi3531a_adec(PO) hi3531a_aenc(PO) hi3531a_ao(PO) hi3531a_ai(PO) hi3531a_aio(PO) asix(O) exfat(O) Keyboard(O) gpio_i2c0(O) hi3531a_ive(PO) hi3531a_vda(PO) hi3531a_jpege(PO) hi3531a_h264e(PO) hi3531a_chnl(PO) hi3531a_venc(PO) hi3531a_rc(PO) hi3531a_hdmi(PO) hifb(PO) hi3531a_vou(PO) hi3531a_vpss(PO) hi3531a_viu(PO) hi3531a_vgs(PO) hi3531a_region(PO) hi3531a_tde(PO) hi3531a_jpegd(O) hi3531a_vfmw(PO) hi3531a_vdec(PO) hi3531a_sys(PO) hi3531a_base(PO) hi_media(O) hiuser(O) mmz(O)
CPU: 0 PID: 1332 Comm: ZynqView Tainted: P           O 3.10.0 #1
task: cbbfad80 ti: c7f3c000 task.ti: c7f3c000
PC is at memcpy+0xcc/0x330
LR is at copy_to_iter_bvec+0x64/0x12c
pc : []    lr : []    psr: 80000013
sp : c7f3de04  ip : 00000000  fp : 00000001
r10: 00000001  r9 : c7f3de94  r8 : c7f3ded8
r7 : 00000000  r6 : c7f76001  r5 : d6355000  r4 : 00000001
r3 : 00000000  r2 : 80000000  r1 : c7f76001  r0 : d6355001
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c53c7d  Table: 47f6c04a  DAC: 00000015

PC: 0xc025902c:
902c  e2522020 e8a051f8 aafffffa e3720060 aafffff9 e212c01c e26cc020 108ff00c
904c  ea000011 e320f000 e4913004 e4914004 e4915004 e4916004 e4917004 e4918004
906c  e491e004 e08ff00c e320f000 e320f000 e4803004 e4804004 e4805004 e4806004
908c  e4807004 e4808004 e480e004 e8bd01e0 e1b02f82 14d13001 24d14001 24d1c001
90ac  14c03001 24c04001 24c0c001 e8bd8011 e26cc004 e35c0002 c4d13001 a4d14001
90cc  e4d1e001 c4c03001 a4c04001 e052200c e4c0e001 baffffed e211c003 0affffc4
90ec  e3c11003 e35c0002 e491e004 0a00002c ca000057 e252201c ba00001f e92d03e0
910c  f5d1f000 e2522060 f5d1f01c ba000002 f5d1f03c f5d1f05c f5d1f07c e8b100f0

LR: 0xc00a4b4c:
4b4c  13a00000 02030001 e3500000 0affffd8 eaffffeb e1a00005 e8bd87f0 e92d4ff0
4b6c  e24dd00c e592a008 e1a09002 e151000a 31a0a001 e35a0000 e58da004 0a00003e
4b8c  e592800c e1a06000 e5927004 e9980810 e5980000 e0674004 e087b00b e15a0004
4bac  31a0400a ebfdf135 e1a02004 e1a01006 e0866004 e1a05000 e080000b eb06d104
4bcc  e1a00005 ebfdf10a e59da004 e05a5004 00844007 0a000013 e1a03008 e5934010
4bec  e283700c e593000c e1550004 e593a014 e1a08007 31a04005 ebfdf120 e1a01006
4c0c  e1a02004 e0866004 e1a0b000 e080000a eb06d0ef e1a0000b ebfdf0f5 e0555004
4c2c  e1a03007 1affffec e5983004 e5992008 e1530004 e599300c 0288800c e59d0004

SP: 0xc7f3dd84:
dd84  c0234ee0 c7f3ddd4 00000450 c7f22b00 bf240be0 c7f3c000 00000000 c02590ac
dda4  80000013 ffffffff c7f3ddec c7f3ded8 c0012ad8 d6355001 c7f76001 80000000
ddc4  00000000 00000001 d6355000 c7f76001 00000000 c7f3ded8 c7f3de94 00000001
dde4  00000001 00000000 c7f3de04 c00a4bcc c02590ac 80000013 ffffffff c7f76000
de04  d6355001 00000001 c00a4bcc 019a9228 00000001 019a9440 c7f3de94 00000001
de24  c7f76000 00000010 00000001 00000007 00000000 c0447240 c00a4e44 c7f3de58
de44  c7f3de5c 00000c88 cb1b72a8 cb8ac400 00000001 00000010 00000001 00000007
de64  00000000 c0447240 c00c5b08 ffffffff cb1b7200 00000000 00000000 c7f3c000

R0: 0xd6354f81:
4f80  ******** ******** ******** ******** ******** ******** ******** ********
4fa0  ******** ******** ******** ******** ******** ******** ******** ********
4fc0  ******** ******** ******** ******** ******** ******** ******** ********
4fe0  ******** ******** ******** ******** ******** ******** ******** ********
5000  ******** ******** ******** ******** ******** ******** ******** ********
5020  ******** ******** ******** ******** ******** ******** ******** ********
5040  ******** ******** ******** ******** ******** ******** ******** ********
5060  ******** ******** ******** ******** ******** ******** ******** ********
5080  ******** ******** ******** ******** ******** ******** ******** ********

R1: 0xc7f75f81:
5f80  4e03be37 4e03ce37 4e03de37 4e03ee37 4e03fe37 4e040e37 4e041e37 4e042e37
5fa0  4e043e37 4e044e37 4e045e37 4e046e37 4e047e37 4e048e37 4e049e37 4e04ae37
5fc0  4e04be37 4e04ce37 4e04de37 4e04ee37 4e04fe37 4e050e37 4e051e37 4e052e37
5fe0  4e053e37 4e054e37 4e055e37 4e056e37 4e057e37 4e058e37 4e059e37 4e05ae37
6000  00000000 00000780 00000438 00000017 00000000 00000000 00000001 00000000
6020  00000000 00000000 00000000 00000000 00000000 00000002 00000002 00000002
6040  00000002 0000ff00 00000000 00000000 00000000 00000002 00000002 00000002
6060  00000002 0000ff00 00000000 00000000 00000000 00000002 00000002 00000002
6080  00000002 0000ff00 00000000 00000000 00000000 00000002 00000002 00000002

R5: 0xd6354f80:
4f80  ******** ******** ******** ******** ******** ******** ******** ********
4fa0  ******** ******** ******** ******** ******** ******** ******** ********
4fc0  ******** ******** ******** ******** ******** ******** ******** ********
4fe0  ******** ******** ******** ******** ******** ******** ******** ********
5000  ******** ******** ******** ******** ******** ******** ******** ********
5020  ******** ******** ******** ******** ******** ******** ******** ********
5040  ******** ******** ******** ******** ******** ******** ******** ********
5060  ******** ******** ******** ******** ******** ******** ******** ********

R6: 0xc7f75f81:
5f80  4e03be37 4e03ce37 4e03de37 4e03ee37 4e03fe37 4e040e37 4e041e37 4e042e37
5fa0  4e043e37 4e044e37 4e045e37 4e046e37 4e047e37 4e048e37 4e049e37 4e04ae37
5fc0  4e04be37 4e04ce37 4e04de37 4e04ee37 4e04fe37 4e050e37 4e051e37 4e052e37
5fe0  4e053e37 4e054e37 4e055e37 4e056e37 4e057e37 4e058e37 4e059e37 4e05ae37
6000  00000000 00000780 00000438 00000017 00000000 00000000 00000001 00000000
6020  00000000 00000000 00000000 00000000 00000000 00000002 00000002 00000002
6040  00000002 0000ff00 00000000 00000000 00000000 00000002 00000002 00000002
6060  00000002 0000ff00 00000000 00000000 00000000 00000002 00000002 00000002
6080  00000002 0000ff00 00000000 00000000 00000000 00000002 00000002 00000002

R8: 0xc7f3de58:
de58  00000010 00000001 00000007 00000000 c0447240 c00c5b08 ffffffff cb1b7200
de78  00000000 00000000 c7f3c000 cb0e9180 cb8ac418 cb8ac450 a0000113 bf01c1d4
de98  00000000 00000010 c7f3ded8 00000001 c0629d54 00000000 00000000 00000010
deb8  c7f3df80 cb0e9180 cbbfad80 00000000 be911b84 c00bdc78 00000000 00000000
ded8  be911ab0 00000010 00000001 cb0e9180 00000000 00000000 00000000 cbbfad80
def8  00000000 00000000 00000000 00000000 00000000 00000000 00000010 00000000
df18  00000010 00000000 00000000 00000000 00000000 00000000 00000000 00000000
df38  00000000 00000000 ffffbed5 cb0e9180 be911ab0 c7f3df80 be911ab0 00000001

R9: 0xc7f3de14:
de14  00000001 019a9440 c7f3de94 00000001 c7f76000 00000010 00000001 00000007
de34  00000000 c0447240 c00a4e44 c7f3de58 c7f3de5c 00000c88 cb1b72a8 cb8ac400
de54  00000001 00000010 00000001 00000007 00000000 c0447240 c00c5b08 ffffffff
de74  cb1b7200 00000000 00000000 c7f3c000 cb0e9180 cb8ac418 cb8ac450 a0000113
de94  bf01c1d4 00000000 00000010 c7f3ded8 00000001 c0629d54 00000000 00000000
deb4  00000010 c7f3df80 cb0e9180 cbbfad80 00000000 be911b84 c00bdc78 00000000
ded4  00000000 be911ab0 00000010 00000001 cb0e9180 00000000 00000000 00000000
def4  cbbfad80 00000000 00000000 00000000 00000000 00000000 00000000 00000010
Process ZynqView (pid: 1332, stack limit = 0xc7f3c238)
Stack: (0xc7f3de04 to 0xc7f3e000)
de00:          d6355001 00000001 c00a4bcc 019a9228 00000001 019a9440 c7f3de94
de20: 00000001 c7f76000 00000010 00000001 00000007 00000000 c0447240 c00a4e44
de40: c7f3de58 c7f3de5c 00000c88 cb1b72a8 cb8ac400 00000001 00000010 00000001
de60: 00000007 00000000 c0447240 c00c5b08 ffffffff cb1b7200 00000000 00000000
de80: c7f3c000 cb0e9180 cb8ac418 cb8ac450 a0000113 bf01c1d4 00000000 00000010
dea0: c7f3ded8 00000001 c0629d54 00000000 00000000 00000010 c7f3df80 cb0e9180
dec0: cbbfad80 00000000 be911b84 c00bdc78 00000000 00000000 be911ab0 00000010
dee0: 00000001 cb0e9180 00000000 00000000 00000000 cbbfad80 00000000 00000000
df00: 00000000 00000000 00000000 00000000 00000010 00000000 00000010 00000000
df20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
df40: ffffbed5 cb0e9180 be911ab0 c7f3df80 be911ab0 00000001 00000010 c00be2cc
df60: 019a9440 019a9228 00000000 00000000 cb0e9180 be911ab0 00000001 c00be92c
df80: 00000000 00000000 be911a40 be911ab0 009f5a20 019a9440 00000003 c00130a8
dfa0: c7f3c000 c0012f00 be911ab0 009f5a20 00000003 be911ab0 00000010 00000001
dfc0: be911ab0 009f5a20 019a9440 00000003 019a9658 009fb864 00000000 be911b84
dfe0: 00000000 be911a70 b6f53330 b6dc03a4 80000010 00000003 00000000 00000000
Code: e1b02f82 14d13001 24d14001 24d1c001 (14c03001)
---[ end trace 1cc03772efad7950 ]---
note: ZynqView[1332] exited with preempt_count 2
我来回答
回答6个
时间排序
认可量排序

Kernel_Lover

0个粉丝

17

问答

0

专栏

0

资料

Kernel_Lover 2018-01-02 10:58:04
认可0
Unable to handle kernel paging request at virtual address d6355001 这个是错误原因吧,exited with preempt_count 2 应该只是说明程序发生错误时的抢占信息而已。

colorjun

0个粉丝

40

问答

0

专栏

1

资料

colorjun 2018-01-02 11:02:12
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=82767&ptid=38580]Kernel_Lover 发表于 2018-1-2 10:58[/url]
Unable to handle kernel paging request at virtual address d6355001 这个是错误原因吧,exited with pr ...[/quote]

谢谢,我发现每次出错时 virtual address都在变,这个怎么才能定位到问题呢?

Kernel_Lover

0个粉丝

17

问答

0

专栏

0

资料

Kernel_Lover 2018-01-02 11:42:30
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=82768&ptid=38580]colorjun 发表于 2018-1-2 11:02[/url]
谢谢,我发现每次出错时 virtual address都在变,这个怎么才能定位到问题呢?[/quote]

gdb 或者 printf

cowboy

0个粉丝

9

问答

0

专栏

5

资料

cowboy 2018-01-02 16:01:12
认可0
gdb调试下,字节对齐,非法地址访问都可能报错

colorjun

0个粉丝

40

问答

0

专栏

1

资料

colorjun 2018-01-03 09:59:38
认可0
网上查了一下说可能是海思的内核有漏洞,在使用memcpy时会出错,我的代码用memcpy比较多,报错现象和网上说的一模一样。我不知道使用3531A SDK是Hi3531A V100R001C01SPC030的同学遇到过没?
[url]https://erwinchang.github.io/2017/01/09/oops-memcpy/#sdk050[/url]新增下例造成問題

hero

0个粉丝

1

问答

0

专栏

0

资料

hero 2018-01-02 14:08:57
认可0
:):):):):):):):)
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区