beike2001

beike2001

0个粉丝

10

问答

0

专栏

1

资料

beike2001  发布于  2017-01-02 11:08:33
采纳率 0%
10个问答
4123

3516A 程序运行一段时间报错,麻烦大牛帮忙诊断一下。

 
本帖最后由 beike2001 于 2017-1-2 11:10 编辑

先祝福大家新年快乐:P

程序刚开始运行正常,后来感觉越来越慢,最后程序崩溃退出,Log如下:

Main.out invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
Backtrace:
[] (dump_backtrace+0x0/0x110) from [] (dump_stack+0x18/0x1c)
r6:00007a1d r5:0000035a r4:c041fd00 r3:c049ea40
[] (dump_stack+0x0/0x1c) from [] (dump_header.isra.16+0x58/0x150)
[] (dump_header.isra.16+0x0/0x150) from [] (oom_kill_process.part.19.constprop.23+0x4c/0x21c)
r8:00000000 r7:00000000 r6:00007a1d r5:0000035a r4:c041fd00
[] (oom_kill_process.part.19.constprop.23+0x0/0x21c) from [] (out_of_memory+0x310/0x32c)
[] (out_of_memory+0x0/0x32c) from [] (__alloc_pages_nodemask+0x680/0x694)
[] (__alloc_pages_nodemask+0x0/0x694) from [] (filemap_fault+0x21c/0x3f4)
[] (filemap_fault+0x0/0x3f4) from [] (__do_fault+0x70/0x498)
[] (__do_fault+0x0/0x498) from [] (handle_pte_fault+0x74/0x60c)
[] (handle_pte_fault+0x0/0x60c) from [] (handle_mm_fault+0x80/0xb4)
[] (handle_mm_fault+0x0/0xb4) from [] (do_page_fault+0x164/0x27c)
[] (do_page_fault+0x0/0x27c) from [] (do_PrefetchAbort+0x3c/0xa0)
[] (do_PrefetchAbort+0x0/0xa0) from [] (ret_from_exception+0x0/0x10)
Exception stack(0xc7bc3fb0 to 0xc7bc3ff8)
3fa0:                                     b5ae0b14 00c06d40 b5ae0ad0 00000058
3fc0: b5ae0d00 00000000 b5ae0d18 42424000 0000ba50 00000002 b5ae0d18 b5ae1850
3fe0: b6c3dd3c b5ae0a90 b699081c b6989704 60000010 ffffffff
r8:0000ba50 r7:42424000 r6:ffffffff r5:60000010 r4:b6989704
Mem-info:
Normal per-cpu:
CPU    0: hi:   42, btch:   7 usd:  41
active_anon:27624 inactive_anon:0 isolated_anon:0
active_file:172 inactive_file:237 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
free:344 slab_reclaimable:100 slab_unreclaimable:1186
mapped:175 shmem:1 pagetables:88 bounce:0
Normal free:1376kB min:1440kB low:1800kB high:2160kB active_anon:110496kB inactive_anon:0kB active_file:688kB inactive_file:948kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:130048kB mlocked:0kB dirty:0kB writeback:0kB mapped:700kB shmem:4kB slab_reclaimable:400kB slab_unreclaimable:4744kB kernel_stack:296kB pagetables:352kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:2520 all_unreclaimable? yes
lowmem_reserve[]: 0 0
Normal: 16*4kB 14*8kB 1*16kB 1*32kB 6*64kB 2*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1376kB
410 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
32768 pages of RAM
443 free pages
1507 reserved pages
768 slab pages
233 pages shared
0 pages swap cached
[ pid ]   uid  tgid total_vm      rss cpu oom_adj oom_score_adj name
[  603]     0   603      267       28   0     -17         -1000 udevd
[  671]     0   671      267       26   0     -17         -1000 udevd
[  680]     0   680      267       28   0     -17         -1000 udevd
[  860]     0   860      446       25   0       0             0 sh
[ 1082]     0  1082    36017    27692   0       0             0 Main.out
Out of memory: Kill process 1082 (Main.out) score 858 or sacrifice child
Killed process 1082 (Main.out) total-vm:144068kB, anon-rss:110068kB, file-rss:700kB
MMB LEAK(pid=1082): 0x99B76000, 1384448 bytes, ''
mmz_userdev_release: mmb<0x99B76000> mapped to userspace 0xb65cf000 will be force unmaped!
MMB LEAK(pid=1082): 0x99CC8000, 2764800 bytes, ''
mmz_userdev_release: mmb<0x99CC8000> mapped to userspace 0xb632c000 will be force unmaped!
MMB LEAK(pid=1082): 0x9B67E000, 233472 bytes, ''
mmz_userdev_release: mmb<0x9B67E000> mapped to userspace 0xb52aa000 will be force unmaped!
MMB LEAK(pid=1082): 0x9B6B7000, 921600 bytes, ''
mmz_userdev_release: mmb<0x9B6B7000> mapped to userspace 0xb51c9000 will be force unmaped!
MMB LEAK(pid=1082): 0x9B798000, 2764800 bytes, ''
mmz_userdev_release: mmb<0x9B798000> mapped to userspace 0xb4f26000 will be force unmaped!
MMB LEAK(pid=1082): 0x9BA3B000, 692224 bytes, ''
mmz_userdev_release: mmb<0x9BA3B000> mapped to userspace 0xb4e7d000 will be force unmaped!
MMB LEAK(pid=1082): 0x9BAE4000, 233472 bytes, ''
mmz_userdev_release: mmb<0x9BAE4000> mapped to userspace 0xb4e44000 will be force unmaped!
MMB LEAK(pid=1082): 0x9BB1D000, 61440 bytes, ''

大牛帮忙诊断一下
我来回答
回答4个
时间排序
认可量排序

victor

0个粉丝

2

问答

0

专栏

0

资料

victor 2017-01-02 12:56:20
认可0
你这个是内核崩溃,原因的话是内存泄露,所以你运行一段时间后,设备就会崩溃。你定位一下后面这段信息:
Out of memory: Kill process 1082 (Main.out) score 858 or sacrifice child
Killed process 1082 (Main.out) total-vm:144068kB, anon-rss:110068kB, file-rss:700kB
MMB LEAK(pid=1082): 0x99B76000, 1384448 bytes, ''
mmz_userdev_release: mmb<0x99B76000> mapped to userspace 0xb65cf000 will be force unmaped!
MMB LEAK(pid=1082): 0x99CC8000, 2764800 bytes, ''
mmz_userdev_release: mmb<0x99CC8000> mapped to userspace 0xb632c000 will be force unmaped!
MMB LEAK(pid=1082): 0x9B67E000, 233472 bytes, ''
mmz_userdev_release: mmb<0x9B67E000> mapped to userspace 0xb52aa000 will be force unmaped!
MMB LEAK(pid=1082): 0x9B6B7000, 921600 bytes, ''
mmz_userdev_release: mmb<0x9B6B7000> mapped to userspace 0xb51c9000 will be force unmaped!
MMB LEAK(pid=1082): 0x9B798000, 2764800 bytes, ''
mmz_userdev_release: mmb<0x9B798000> mapped to userspace 0xb4f26000 will be force unmaped!
MMB LEAK(pid=1082): 0x9BA3B000, 692224 bytes, ''
mmz_userdev_release: mmb<0x9BA3B000> mapped to userspace 0xb4e7d000 will be force unmaped!
MMB LEAK(pid=1082): 0x9BAE4000, 233472 bytes, ''
mmz_userdev_release: mmb<0x9BAE4000> mapped to userspace 0xb4e44000 will be force unmaped!
MMB LEAK(pid=1082): 0x9BB1D000, 61440 bytes, ''

上面注明了是内存泄露,然后也给出了进程的pid,你根据这个pid查一下代码,看看有没有导致内存泄露的地方,比如动态分配内存没有回收之类的

beike2001

0个粉丝

10

问答

0

专栏

1

资料

beike2001 2017-01-02 13:14:25
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=43604&ptid=13840]victor 发表于 2017-1-2 12:56[/url]
你这个是内核崩溃,原因的话是内存泄露,所以你运行一段时间后,设备就会崩溃。你定位一下后面这段信息:
...[/quote]

3ks
这个是程序异常退出后,没有来得及正常执行完释放内存部分代码导致的。
关键是前面log信息,有没有在海思平台遇到同样问题的?寻求解决办法。

qn1550212348

0个粉丝

0

问答

0

专栏

0

资料

qn1550212348 2019-02-15 17:36:15
认可0
第一行 Main.out invoked oom-killer
系統判定內存不夠所以把一些進程給砍了
換個有大一點的內存的硬件
或是插個tf卡用swap分配一些空間也行
swap可參考這篇
https://segmentfault.com/a/1190000008125116

tango_zhu

14个粉丝

14

问答

0

专栏

3

资料

tango_zhu 2019-02-15 23:51:20
认可0
oom 一般是内存泄漏
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区