嵌入式爱好者

查看: 2889|回复: 1

[Ubuntu] 例程运行错误 Segmentation fault

[复制链接]

16

主题

23

帖子

82

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX8MM通行证i.MX8MP通行证RK3568通行证RK3399通行证AM335x通行证AM62x资料下载

扫一扫,手机访问本帖
发表于 2021-12-1 10:37:26 | 显示全部楼层 |阅读模式
运行例子出错误 ,错误信息如下,请问是什么情况?
root@ubuntu:~# fltest_uarttest
[  602.446379] Internal error: Accessing user space memory outside uaccess.h routines: 96000005 [#4] PREEMPT SMP
[  602.457531] Modules linked in: lcd mali_kbase(O)
[  602.462749] CPU: 1 PID: 10917 Comm: bash Tainted: G      D    O    4.9.170 #14
[  602.470867] Hardware name: sun50iw9 (DT)
[  602.475277] task: ffffffc05c7cab80 task.stack: ffffffc05b88c000
[  602.481940] PC is at open_exec+0x50/0x11c
[  602.486450] LR is at open_exec+0x50/0x11c
[  602.490953] pc : [<ffffff800821efbc>] lr : [<ffffff800821efbc>] pstate: 80400145
[  602.499250] sp : ffffffc05b88fc80
[  602.502974] x29: ffffffc05b88fc80 x28: 00000000ab3ce960
[  764.979670] x27: 0000000000000001 x26: ffffffc0637d5700
[  764.985661] x25: ffffff8008f3d000 x24: ffffffc063494880
[  764.991652] x23: ffffff800961d1d0 x22: ffffffc069d83438
[  764.997643] x21: ffffffc0636b9600 x20: fffffffffffffffe
[  765.003633] x19: fffffffffffffffe x18: 0000000000000000
[  765.009624] x17: 0000000000000000 x16: ffffff800821fb74
[  765.015614] x15: 0000000000000000 x14: 0000000000000001
[  765.021604] x13: 0000000000000218 x12: 0000000000000010
[  765.027595] x11: 0101010101010101 x10: ffffffff7f7f7f7f
[  765.033585] x9 : 0000000000000000 x8 : ffffffc0636b9c00
[  765.039576] x7 : 0300ff0001000001 x6 : 0000000000000010
[  765.045566] x5 : ffffffc072365f38 x4 : ffffffffffffffff
[  765.051556] x3 : 0000000000000000 x2 : ffffffc07f3101e0
[  765.057546] x1 : ffffffc0637d5700 x0 : 0000000000400010
[  765.063540]
[  765.063540] SP: 0xffffffc05ba2fc00:
[  765.069129] fc00  69d83438 ffffffc0 0961d1d0 ffffff80 63494880 ffffffc0 08f3d000 ffffff80
[  765.078409] fc20  637d5700 ffffffc0 00000001 00000000 ab97d580 00000000 5ba2fc80 ffffffc0
[  765.087681] fc40  0821efbc ffffff80 5ba2fc80 ffffffc0 0821efbc ffffff80 80400145 00000000
[  765.096952] fc60  5ba2fc80 ffffffc0 0821efbc ffffff80 ffffffff 0000007f 000409aa 00000000
[  765.106224] fc80  5ba2fcb0 ffffffc0 0827e7d4 ffffff80 63494580 ffffffc0 fffffff8 00000000
[  765.115495] fca0  636b9600 ffffffc0 000409aa 00000000 5ba2fdb0 ffffffc0 0821e9f8 ffffff80
[  765.124767] fcc0  fffffff8 00000000 636b9600 ffffffc0 09849c40 ffffff80 09849000 ffffff80
[  765.134039] fce0  0961d1d0 ffffff80 096182a0 ffffff80 00000001 00000000 637d5700 ffffffc0
[  765.143314]
[  765.143314] X1: 0xffffffc0637d5680:
[  765.148903] 5680  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.158174] 56a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.167445] 56c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.176714] 56e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.185984] 5700  00400012 00000000 ffffffff ffffffff a3667000 6ce40000 00000001 00000000
[  765.195256] 5720  00000000 00000000 5ba2c000 ffffffc0 00000002 00404040 00000000 00000000
[  765.204527] 5740  00000000 00000000 00000001 00000000 00000008 00000000 00022030 00000001
[  765.213797] 5760  5c516580 ffffffc0 00000000 00000001 00000078 00000078 00000078 00000000
[  765.223071]
[  765.223071] X2: 0xffffffc07f310160:
[  765.228660] 0160  636b9e00 ffffffc0 0054afa0 00000000 018dae40 ffffffbf 01ae81c0 ffffffbf
[  765.237932] 0180  69d83c00 ffffffc0 0001c8a8 00000000 01a76080 ffffffbf 01e4b000 ffffffbf
[  765.247204] 01a0  6355a400 ffffffc0 000bad10 00000000 018d5600 ffffffbf 01e1fc00 ffffffbf
[  765.256476] 01c0  634bc800 ffffffc0 00003d28 00000000 018d2e00 ffffffbf 01e7ba00 ffffffbf
[  765.265747] 01e0  637a4000 ffffffc0 00596340 00000000 018de800 ffffffbf 00000000 00000000
[  765.275019] 0200  634c2000 ffffffc0 0000014c 00000000 018d3000 ffffffbf 018d2c00 ffffffbf
[  765.284290] 0220  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.293560] 0240  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.302836]
[  765.302836] X5: 0xffffffc072365eb8:
[  765.308425] 5eb8  00000000 00000000 72365b00 ffffffc0 6b073e00 ffffffc0 6b161390 ffffffc0
[  765.317697] 5ed8  6b15f750 ffffffc0 72365ee0 ffffffc0 72365ee0 ffffffc0 00000000 00000000
[  765.326969] 5ef8  00000000 00000000 000800c0 00000000 00000000 00000000 7cf91e58 ffffffc0
[  765.336239] 5f18  780ab0c0 ffffffc0 c8f2e733 00000015 72365f38 ffffffc0 00000000 00000000
[  765.345510] 5f38  6c2d646c 78756e69 7261612d 34366863 2e6f732e 65000031 00000073 00000000
[  765.354783] 5f58  00020002 00000000 00000000 00000000 78779000 ffffffc0 00000000 00000000
[  765.364054] 5f78  00000000 00000000 6b0e2200 ffffffc0 6b072c80 ffffffc0 7203bb10 ffffffc0
[  765.373326] 5f98  6b16fd50 ffffffc0 72365fa0 ffffffc0 72365fa0 ffffffc0 00000000 00000000
[  765.382602]
[  765.382602] X8: 0xffffffc0636b9b80:
[  765.388191] 9b80  00000000 00000000 00000000 00000000 00000000 00000000 6bbe7c00 ffffffc0
[  765.397462] 9ba0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.406732] 9bc0  00000000 00000000 00000000 00000000 00000000 00000000 636b9bd8 ffffffc0
[  765.416003] 9be0  636b9bd8 ffffffc0 636b9be8 ffffffc0 636b9be8 ffffffc0 00000000 00000000
[  765.425274] 9c00  00000000 00000000 00000000 00000000 00000000 00000000 79e48800 ffffffc0
[  765.434544] 9c20  00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000
[  765.443815] 9c40  00000000 00000000 00000001 ffffffff 00000000 00000000 00000000 00000000
[  765.453085] 9c60  08a6d21c ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[  765.462361]
[  765.462361] X10: 0xffffffff7f7f7eff:
[  765.468048] 7efc  ******** ******** ******** ******** ******** ******** ******** ********
[  765.477335] 7f1c  ******** ******** ******** ******** ******** ******** ******** ********
[  765.486610] 7f3c  ******** ******** ******** ******** ******** ******** ******** ********
[  765.495884] 7f5c  ******** ******** ******** ******** ******** ******** ******** ********
[  765.505159] 7f7c  ******** ******** ******** ******** ******** ******** ******** ********
[  765.514433] 7f9c  ******** ******** ******** ******** ******** ******** ******** ********
[  765.523708] 7fbc  ******** ******** ******** ******** ******** ******** ******** ********
[  765.532984] 7fdc  ******** ******** ******** ******** ******** ******** ******** ********
[  765.542258] 7ffc  ******** ******** ******** ******** ******** ******** ******** ********
[  765.551546]
[  765.551546] X21: 0xffffffc0636b9580:
[  765.557233] 9580  00000000 00000000 00000000 00200000 00000000 00000000 00000000 00000000
[  765.566504] 95a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.575775] 95c0  ffff0000 ffff0000 00000082 00000900 5ba4f580 ffffffc0 5ba4f602 ffffffc0
[  765.585047] 95e0  00000b80 00000001 636b95e8 ffffffc0 636b95e8 ffffffc0 78332678 ffffffc0
[  765.594318] 9600  464c457f 00010102 00000000 00000000 00b70002 00000001 00400960 00000000
[  765.603589] 9620  00000040 00000000 00005070 00000000 00000000 00380040 00400008 00230024
[  765.612860] 9640  00000006 00000005 00000040 00000000 00400040 00000000 00400040 00000000
[  765.622130] 9660  000001c0 00000000 000001c0 00000000 00000008 00000000 00000003 00000004
[  765.631404]
[  765.631404] X22: 0xffffffc069d833b8:
[  765.637091] 33b8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.646361] 33d8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.655631] 33f8  00000000 00000000 00000006 00000005 00000040 00000000 00400040 00000000
[  765.664901] 3418  00400040 00000000 000001c0 00000000 000001c0 00000000 00000008 00000000
[  765.674172] 3438  00000003 00000004 00000200 00000000 00400200 00000000 00400200 00000000
[  765.683442] 3458  0000001b 00000000 0000001b 00000000 00000001 00000000 00000001 00000005
[  765.692713] 3478  00000000 00000000 00400000 00000000 00400000 00000000 00001010 00000000
[  765.701985] 3498  00001010 00000000 00010000 00000000 00000001 00000006 00001de8 00000000
[  765.711260]
[  765.711260] X24: 0xffffffc063494800:
[  765.716947] 4800  63494700 ffffffc0 63494808 ffffffc0 63494808 ffffffc0 080bef20 ffffff80
[  765.726219] 4820  00000000 00000000 0965a6e0 ffffff80 637a7000 ffffffc0 637a7018 ffffffc0
[  765.735491] 4840  00000000 fffffffe 00000000 00000000 08522a00 ffffff80 637a7000 ffffffc0
[  765.744762] 4860  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.754032] 4880  62696c2f 2d646c2f 756e696c 61612d78 36686372 6f732e34 0800312e ffffff80
[  765.763305] 48a0  00000000 00000000 0965a6e0 ffffff80 637a0000 ffffffc0 637a0018 ffffffc0
[  765.772577] 48c0  00000000 fffffffe 00000000 00000000 08522a00 ffffff80 637a0000 ffffffc0
[  765.781849] 48e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.791123]
[  765.791123] X26: 0xffffffc0637d5680:
[  765.796810] 5680  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.806081] 56a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.815351] 56c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.824622] 56e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  765.833892] 5700  00400012 00000000 ffffffff ffffffff a3667000 6ce40000 00000001 00000000
[  765.843163] 5720  00000000 00000000 5ba2c000 ffffffc0 00000002 00404040 00000000 00000000
[  765.852435] 5740  00000000 00000000 00000001 00000000 00000008 00000000 00022030 00000001
[  765.861705] 5760  5c516580 ffffffc0 00000000 00000001 00000078 00000078 00000078 00000000
[  765.870981]
[  765.870981] X29: 0xffffffc05ba2fc00:
[  765.876668] fc00  69d83438 ffffffc0 0961d1d0 ffffff80 63494880 ffffffc0 08f3d000 ffffff80
[  765.885939] fc20  637d5700 ffffffc0 00000001 00000000 ab97d580 00000000 5ba2fc80 ffffffc0
[  765.895211] fc40  0821efbc ffffff80 5ba2fc80 ffffffc0 0821efbc ffffff80 80400145 00000000
[  765.904483] fc60  5ba2fc80 ffffffc0 0821efbc ffffff80 ffffffff 0000007f 000409aa 00000000
[  765.913755] fc80  5ba2fcb0 ffffffc0 0827e7d4 ffffff80 63494580 ffffffc0 fffffff8 00000000
[  765.923026] fca0  636b9600 ffffffc0 000409aa 00000000 5ba2fdb0 ffffffc0 0821e9f8 ffffff80
[  765.932298] fcc0  fffffff8 00000000 636b9600 ffffffc0 09849c40 ffffff80 09849000 ffffff80
[  765.941570] fce0  0961d1d0 ffffff80 096182a0 ffffff80 00000001 00000000 637d5700 ffffffc0
[  765.950842]
[  765.952524] Process bash (pid: 30657, stack limit = 0xffffffc05ba2c000)
[  765.959971] Stack: (0xffffffc05ba2fc80 to 0xffffffc05ba30000)
[  765.966448] fc80: ffffffc05ba2fcb0 ffffff800827e7d4 ffffffc063494580 00000000fffffff8
[  765.975270] fca0: ffffffc0636b9600 00000000000409aa ffffffc05ba2fdb0 ffffff800821e9f8
[  765.984094] fcc0: 00000000fffffff8 ffffffc0636b9600 ffffff8009849c40 ffffff8009849000
[  765.992915] fce0: ffffff800961d1d0 ffffff80096182a0 0000000000000001 ffffffc0637d5700
[  766.001736] fd00: 0000000000000001 00000000ab97d580 ffffffc05ba2fd70 ffffff80080d3330
[  766.010558] fd20: ffffff8008c5a1f4 ffffff8008222c98 ffffff80095dd000 ffffff8000000000
[  766.019380] fd40: ffffffc05ba2c000 ffffffc05ba2fdb0 ffffffc05ba2fda0 ffffff800821ea04
[  766.028201] fd60: ffffffc0ffffffff 00000000000409aa ffffffc05ba2fd90 ffffff8008c5a624
[  766.037024] fd80: ffffffc069d83400 ffffff800821e9d0 ffffffc05ba2fdb0 ffffff800821e9e0
[  766.045845] fda0: 00000000fffffff8 00000000000409aa ffffffc05ba2fe00 ffffff800821f664
[  766.054666] fdc0: ffffffc0636b9600 0000000000000000 00000000000077c1 ffffffc0637a0000
[  766.063488] fde0: 0000000000000000 ffffffc06367b370 00000000000077c1 ffffffc0637a0000
[  766.072309] fe00: ffffffc05ba2fe90 ffffff800821fbc0 00000000ab969fd8 00000000ab97d580
[  766.081130] fe20: 00000000ab972f58 00000000f7471978 0000000060070030 0000000000000011
[  766.089951] fe40: 000000000000018a 000000000000000b ffffff8008c76000 ffffffc0637d5700
[  766.098773] fe60: 000000000000018a ffffff8009810000 ffffff80095dd000 000000010821fba0
[  766.107594] fe80: 0000000000000000 00000000000409aa 0000000000000000 ffffff8008083540
[  766.116416] fea0: fffffffffffffe80 0000004076157000 ffffffffffffffff ffffff8008083420
[  766.125237] fec0: 00000000ab972f58 00000000ab969fd8 00000000ab97d580 00000000f7d0d600
[  766.134057] fee0: 00000000ab1153f0 00000000ab972f58 00000000ab972f58 000000000000000b
[  766.142878] ff00: 00000000ab969ed8 00000000ab969fd8 00000000ab97d580 00000000f7576968
[  766.151699] ff20: 00000000ab115628 00000000ffee8dac 00000000ab089769 0000000000000000
[  766.160518] ff40: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  766.169339] ff60: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  766.178159] ff80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  766.186979] ffa0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  766.195799] ffc0: 00000000f7471978 0000000060070030 00000000ab972f58 000000000000000b
[  766.204619] ffe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  766.213433] Call trace:
[  766.216189] Exception stack(0xffffffc05ba2fa90 to 0xffffffc05ba2fbc0)
[  766.223444] fa80:                                   fffffffffffffffe 0000007fffffffff
[  766.232265] faa0: 000000004189b000 ffffff800821efbc 0000000080400145 ffffff80082283a0
[  766.241087] fac0: ffffff80095dd000 ffffffc05ba2fc60 ffffffc05ba2fae0 ffffff80082283ec
[  766.249908] fae0: ffffffc05ba2fc10 ffffff800821edf8 0000000000000000 00000000ffffff9c
[  766.258729] fb00: ffffff80095dd000 ffffffc069d83438 ffffff800961d1d0 ffffffc072394030
[  766.267550] fb20: 0000000000000001 fffffffffffffffe ffffffc07caceaa0 ffffffc0780ab0c0
[  766.276371] fb40: 00000015c8f2e733 00000000000409aa 0000000000400010 ffffffc0637d5700
[  766.285192] fb60: ffffffc07f3101e0 0000000000000000 ffffffffffffffff ffffffc072365f38
[  766.294014] fb80: 0000000000000010 0300ff0001000001 ffffffc0636b9c00 0000000000000000
[  766.302835] fba0: ffffffff7f7f7f7f 0101010101010101 0000000000000010 0000000000000218
[  766.311663] [<ffffff800821efbc>] open_exec+0x50/0x11c
[  766.317359] [<ffffff800827e7d4>] load_elf_binary+0x188/0x127c
[  766.323833] [<ffffff800821e9f8>] search_binary_handler+0x98/0x1d4
[  766.330699] [<ffffff800821f664>] do_execveat_common.isra.15+0x46c/0x660
[  766.338151] [<ffffff800821fbc0>] compat_SyS_execve+0x4c/0x60
[  766.344529] [<ffffff8008083540>] el0_svc_naked+0x34/0x38
[  766.350519] Code: aa0003f4 aa1303e0 aa1403f3 94001cf9 (f9400e60)
[  766.357386] ---[ end trace 3c6ada907b9a8460 ]---
[  766.374446] BUG: Bad rss-counter state mm:ffffffc079703740 idx:1 val:1



回复

使用道具 举报

0

主题

1173

帖子

2202

积分

发表于 2021-12-1 16:43:59 | 显示全部楼层
您看看我们手册,您执行命令后边没有参数,命令不全
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 13:11

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表