您尚未登录。

楼主 #1 2020-06-17 10:40:19

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

v3s 内自己写的一个程序(scan)异常停止,请问 为啥

[60601.075449] scan invoked oom-killer: gfp_mask=0x6200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0
[60601.086312] CPU: 0 PID: 292 Comm: scan Not tainted 4.18.8-licheepi-zero #15
[60601.093266] Hardware name: Allwinner sun8i Family
[60601.097968] Function entered at [<c010f248>] from [<c010bc78>]
[60601.103794] Function entered at [<c010bc78>] from [<c0587680>]
[60601.109620] Function entered at [<c0587680>] from [<c01b2b24>]
[60601.115446] Function entered at [<c01b2b24>] from [<c01b1ea4>]
[60601.121270] Function entered at [<c01b1ea4>] from [<c01b26e8>]
[60601.127093] Function entered at [<c01b26e8>] from [<c01b7018>]
[60601.132919] Function entered at [<c01b7018>] from [<c01afc40>]
[60601.138743] Function entered at [<c01afc40>] from [<c01cf264>]
[60601.144568] Function entered at [<c01cf264>] from [<c01d3410>]
[60601.150392] Function entered at [<c01d3410>] from [<c01135e8>]
[60601.156217] Function entered at [<c01135e8>] from [<c0113938>]
[60601.162041] Function entered at [<c0113938>] from [<c0102008>]
[60601.167866] Exception stack(0xc32c9fb0 to 0xc32c9ff8)
[60601.172912] 9fa0:                                     00039e40 00000000 ffffffff 00000002
[60601.181080] 9fc0: b6f8acb8 00029534 00000000 bed13330 00000000 00000000 b6fb6000 00000000
[60601.189247] 9fe0: 000291a8 bed13328 00014547 b6f48730 00030030 ffffffff
[60601.195905] Mem-Info:
[60601.198194] active_anon:10792 inactive_anon:0 isolated_anon:0
[60601.198194]  active_file:2 inactive_file:2 isolated_file:0
[60601.198194]  unevictable:8 dirty:0 writeback:0 unstable:0
[60601.198194]  slab_reclaimable:330 slab_unreclaimable:1023
[60601.198194]  mapped:5 shmem:0 pagetables:41 bounce:0
[60601.198194]  free:233 free_pcp:17 free_cma:0
[60601.229370] Node 0 active_anon:43168kB inactive_anon:0kB active_file:8kB inactive_file:8kB unevictable:32kB isolated(anon):0kB isolated(file):0kB mapped:20kB dirty:0kB writeback:0kB shmem:0kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
[60601.251083] Normal free:932kB min:932kB low:1164kB high:1396kB active_anon:43168kB inactive_anon:0kB active_file:8kB inactive_file:8kB unevictable:32kB writepending:0kB present:64036kB managed:55688kB mlocked:0kB kernel_stack:264kB pagetables:164kB bounce:0kB free_pcp:68kB local_pcp:68kB free_cma:0kB
[60601.277633] lowmem_reserve[]: 0 0 0
[60601.281124] Normal: 7*4kB (UM) 11*8kB (UME) 11*16kB (U) 4*32kB (U) 0*64kB 0*128kB 2*256kB (M) 0*512kB 0*1024kB 0*2048kB 0*4096kB = 932kB
[60601.293409] 11 total pagecache pages
[60601.296988] 0 pages in swap cache
[60601.300298] Swap cache stats: add 0, delete 0, find 0/0
[60601.305524] Free swap  = 0kB
[60601.308400] Total swap = 0kB
[60601.311276] 16009 pages RAM
[60601.314075] 0 pages HighMem/MovableOnly
[60601.317903] 2087 pages reserved
[60601.321039] [ pid ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[60601.329485] [  214]     0   214      465       12     6144        0             0 watchdog
[60601.337753] [  235]     0   235      470       19     8192        0             0 dropbear
[60601.346020] [  236]     0   236      529       28     6144        0             0 sh
[60601.353765] [  292]     0   292    11012    10702    49152        0             0 scan
[60601.361674] [  450]     0   450      498       12     6144        0             0 udhcpc
[60601.369765] Out of memory: Kill process 292 (scan) score 769 or sacrifice child
[60601.377093] Killed process 292 (scan) total-vm:44048kB, anon-rss:42808kB, file-rss:0kB, shmem-rss:0kB
[60601.402881] oom_reaper: reaped process 292 (scan), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

离线

#2 2020-06-17 10:59:04

shaoxi2010
会员
注册时间: 2019-06-13
已发帖子: 392
积分: 336

Re: v3s 内自己写的一个程序(scan)异常停止,请问 为啥

内存满了

离线

楼主 #3 2020-06-22 13:13:16

dml1048147924
会员
所在地: 江苏无锡
注册时间: 2019-11-08
已发帖子: 119
积分: 115.5

Re: v3s 内自己写的一个程序(scan)异常停止,请问 为啥

请问是不是由于内存泄漏造成的

离线

#4 2020-06-22 13:38:53

真的是很烦
会员
注册时间: 2018-10-08
已发帖子: 156
积分: 148.5

Re: v3s 内自己写的一个程序(scan)异常停止,请问 为啥

显然是的, 而且就是scan

离线

#5 2020-06-24 14:18:09

坑底之蛙
会员
注册时间: 2019-05-13
已发帖子: 11
积分: 11

Re: v3s 内自己写的一个程序(scan)异常停止,请问 为啥

Killed process 292 (scan) total-vm:11012KB
内存吃不消,总共才64MB.
内存泄漏:看看野指针(未初始化的指针),数组越界等

最近编辑记录 坑底之蛙 (2020-06-24 14:20:32)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn