当前位置:  技术问答>linux和unix

如何从dmesg的信息看出程序错误啊??

    来源: 互联网  发布时间:2017-01-06

    本文导语:    我的程序放在设备里面跑,跑个几小时程序就在进程中不见了,也就是程序跑飞掉了。我dmesg,打印,异常信息显示如下所示,以前没有碰到这种错误,能不能告诉我下面这段话告诉我 我的程序是在哪里出现问题的...

  我的程序放在设备里面跑,跑个几小时程序就在进程中不见了,也就是程序跑飞掉了。我dmesg,打印,异常信息显示如下所示,以前没有碰到这种错误,能不能告诉我下面这段话告诉我 我的程序是在哪里出现问题的啊 ??我知道大体是内存泄露引起的,能不能有高手解读得更详细一点啊??

ai_send invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0
[] (dump_stack+0x0/0x14) from [] (oom_kill_process+0xec/0xfc)
[] (oom_kill_process+0x0/0xfc) from [] (out_of_memory+0x104/0x214)
 r7:c3261da0 r6:c0294ed8 r5:c31726a0 r4:c0294ed8
[] (out_of_memory+0x0/0x214) from [] (__alloc_pages+0x2ac/0x32c)
[] (__alloc_pages+0x0/0x32c) from [] (__do_page_cache_readahead+0xe4/0x230)
[] (__do_page_cache_readahead+0x0/0x230) from [] (do_page_cache_readahead+0x60/0x7c)
[] (do_page_cache_readahead+0x0/0x7c) from [] (filemap_fault+0x2d8/0x420)
 r7:00000000 r6:c2c0a90c r5:00000fff r4:0000000d
[] (filemap_fault+0x0/0x420) from [] (__do_fault+0x70/0x3f0)
[] (__do_fault+0x0/0x3f0) from [] (handle_mm_fault+0xec/0x3e0)
[] (handle_mm_fault+0x0/0x3e0) from [] (do_page_fault+0xe8/0x230)
[] (do_page_fault+0x0/0x230) from [] (do_translation_fault+0x64/0x78)
[] (do_translation_fault+0x0/0x78) from [] (do_PrefetchAbort+0x18/0x1c)
 r5:00000280 r4:ffffffff
[] (do_PrefetchAbort+0x0/0x1c) from [] (ret_from_exception+0x0/0x10)
Exception stack(0xc3261fb0 to 0xc3261ff8)
1fa0:                                     001aa998 be5fbd4c 00000280 be5efa94
1fc0: be5fbd4c 00000280 001aa998 00000000 00183400 be5efac4 0017c9b4 be5fbd4c
1fe0: 0017ca34 be5eba8c 40091558 4006418c 60000010 ffffffff
Mem-info:
DMA per-cpu:
CPU    0: Hot: hi:   18, btch:   3 usd:  15   Cold: hi:    6, btch:   1 usd:   1
Active:11340 inactive:1 dirty:0 writeback:0 unstable:0
 free:234 slab:490 mapped:0 pagetables:41 bounce:0
DMA free:936kB min:936kB low:1168kB high:1404kB active:45360kB inactive:4kB present:54864kB pages_scanned:124902 all_unreclaimable? yes
lowmem_reserve[]: 0 0 0                                                                                                                
DMA: 0*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 936kB                       
Free swap:            0kB                                                                                              
13824 pages of RAM                                                                                                                     
290 free pages                                                                                                         
834 reserved pages                                                                                                                     
490 slab pages                                                                                                                         
0 pages shared                                                                                                         
0 pages swap cached                                                                                                                    
Out of memory: kill process 436 (boxs) score 801 or a child                                                                            
Killed process 436 (boxs)                                                                                              
ai_send invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0                                                                   
[] (dump_stack+0x0/0x14) from [] (oom_kill_process+0xec/0xfc)                                                      
[] (oom_kill_process+0x0/0xfc) from [] (out_of_memory+0x104/0x214)                                 
 r7:c3261da0 r6:c0294ed8 r5:c307abc0 r4:c0294ed8                                                                                       
[] (out_of_memory+0x0/0x214) from [] (__alloc_pages+0x2ac/0x32c)                    
[] (__alloc_pages+0x0/0x32c) from [] (__do_page_cache_readahead+0xe4/0x230) 
[] (__do_page_cache_readahead+0x0/0x230) from [] (do_page_cache_readahead+0x60/0x7c)                               
[] (do_page_cache_readahead+0x0/0x7c) from [] (filemap_fault+0x2d8/0x420)           
 r7:00000000 r6:c2c0a90c r5:00000fff r4:0000000d                                                                                       
[] (filemap_fault+0x0/0x420) from [] (__do_fault+0x70/0x3f0)                                                       
[] (__do_fault+0x0/0x3f0) from [] (handle_mm_fault+0xec/0x3e0)                      
[] (handle_mm_fault+0x0/0x3e0) from [] (do_page_fault+0xe8/0x230)                                                  
[] (do_page_fault+0x0/0x230) from [] (do_translation_fault+0x64/0x78)                                              
[] (do_translation_fault+0x0/0x78) from [] (do_PrefetchAbort+0x18/0x1c)             
 r5:00000280 r4:ffffffff                                                                                
[] (do_PrefetchAbort+0x0/0x1c) from [] (ret_from_exception+0x0/0x10)                                               
Exception stack(0xc3261fb0 to 0xc3261ff8)                                                               
1fa0:                                     001aa998 be5fbd4c 00000280 be5efa94                                                          
1fc0: be5fbd4c 00000280 001aa998 00000000 00183400 be5efac4 0017c9b4 be5fbd4c                           
1fe0: 0017ca34 be5eba8c 40091558 4006418c 60000010 ffffffff                                                                            
Mem-info:                                                                                                                              
DMA per-cpu:                                                                                            
CPU    0: Hot: hi:   18, btch:   3 usd:  15   Cold: hi:    6, btch:   1 usd:   1                                                       
Active:11340 inactive:29 dirty:0 writeback:0 unstable:0                                                                                
 free:232 slab:490 mapped:2 pagetables:41 bounce:0                                                      
DMA free:928kB min:936kB low:1168kB high:1404kB active:45360kB inactive:116kB present:54864kB pages_scanned:124902 all_unreclaimable? yes
lowmem_reserve[]: 0 0 0                                                                                                                  
DMA: 0*4kB 0*8kB 0*16kB 1*32kB 0*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 928kB        
Free swap:            0kB                                                                                                              
13824 pages of RAM                                                                                                                       
288 free pages                                                                                                                         
834 reserved pages                                                                                                                       
490 slab pages                                                                                                                           
2 pages shared                                                                                                                         
0 pages swap cached   
Out of memory: kill process 453 (ai_send) score 801 or a child                                                                           
Killed process 453 (ai_send)                                                                                                        。。。。下面还有454也被killed掉了。     
- error.txt 134/134 100%

|
dmesg只是显示开机信息吧?

    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • linux dmesg命令后加&,命令立即结束?
  • minicom终端 dmesg
  • Linux下shell对(dmesg)出来的信息作一个处理
  • 为什么我卸载一个模块后再次加载会不成功呢,dmesg里是 Unknown parameter `1'
  • LINUX: dmesg看到的是开机自检信息吗?
  • dmesg 显示的结果
  • 求助为何dmesg里面一直在打印unmapping pfn信息
  • 用telit UM20 3g网卡,插上后dmesg sr1: CDROM (ioctl) error, com,如何解决?


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3