机顶盒死机抓堆栈

来源:互联网 发布:淘宝的链接怎么发微信 编辑:程序博客网 时间:2024/04/27 14:25
标清:
 ulimit  -c unlimited
   ./skapp
   ./gdb  -c core.1800  ./skapp

高清:
因为生成的堆栈文件比较大,所以建议在U盘下运行。

1、拷贝一个没有strip的skyapp 、gdb-arm-hisiv200-linux到U盘。没有strip是没有压缩的意思。
2、按e退出skyapp,ulimit -c unlimited,打开core限制,运行skyapp 挂机后会生成一个core的文件。
3、挂载U盘,在U盘里执行skyapp
4、死机后运行./gdb-arm-hisiv200-linux ./skyapp ./core  
5、运行bt指令


e
#Exit skapp ...
[12:39:14.973][IPC] GOODBYE! A client (ORG: sky, MODULE: app) has left.
App Return Code:0 Restart Count:0
App Exit
# mount /dev/sda1 /tmp
# ulimit -c unlimited
# cd /tmp
# ls
core                                   skyapp
gdb-arm-hisiv200-linux                 zz个人资æ–
ipanel_print.log                       
resolv.conf                           
# ./skyapp   -->到死机
# ./gdb-arm-hisiv200-linux ./skyapp ./core
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-hisiv200-linux"...

warning: exec file is newer than core file.
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libhi_common.so...done.
Loaded symbols for /usr/lib/libhi_common.so
Reading symbols from /usr/lib/libhi_mpi.so...done.
Loaded symbols for /usr/lib/libhi_mpi.so
Reading symbols from /usr/lib/libhi_ecs.so...done.
Loaded symbols for /usr/lib/libhi_ecs.so
Reading symbols from /usr/lib/libtde.so...done.
Loaded symbols for /usr/lib/libtde.so
Reading symbols from /usr/lib/libhipng.so.14...done.
Loaded symbols for /usr/lib/libhipng.so.14
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libjpeg.so...done.
Loaded symbols for /usr/lib/libjpeg.so
Reading symbols from /usr/lib/libjpge.so...done.
Loaded symbols for /usr/lib/libjpge.so
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libhiflash.so...done.
Loaded symbols for /usr/lib/libhiflash.so
Reading symbols from /usr/lib/libhimount_gcc-4.4.1-vfp_glibc.so...done.
Loaded symbols for /usr/lib/libhimount_gcc-4.4.1-vfp_glibc.so
Reading symbols from /usr/lib/libplayer.so...done.
Loaded symbols for /usr/lib/libplayer.so
Reading symbols from /usr/lib/libsubdec.so...done.
Loaded symbols for /usr/lib/libsubdec.so
Reading symbols from /lib/libstdc++.so.6...done.
Loaded symbols for /lib/libstdc++.so.6
Reading symbols from /skyiptv/skyapp/lib/libskfec.so...done.
Loaded symbols for /skyiptv/skyapp/lib/libskfec.so
Reading symbols from /skyiptv/skyapp/lib/libevent-2.0.so.5...done.
Loaded symbols for /skyiptv/skyapp/lib/libevent-2.0.so.5
Reading symbols from /skyiptv/skyapp/lib/libsktr069.so...done.
Loaded symbols for /skyiptv/skyapp/lib/libsktr069.so
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.3...done.
Loaded symbols for /lib/ld-linux.so.3
Reading symbols from /usr/lib/libHA.AUDIO.MP3.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.MP3.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.MP2.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.MP2.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.AAC.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.AAC.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.AMRNB.codec.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.AMRNB.codec.so
Reading symbols from /usr/lib/libHA.AUDIO.COOK.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.COOK.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.WMA.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.WMA.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.DOLBYPLUS.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.DOLBYPLUS.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.AC3.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.AC3.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.DTS.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.DTS.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.DRA.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.DRA.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.TRUEHD.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.TRUEHD.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.EAC3.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.EAC3.decode.so
Reading symbols from /usr/lib/libHA.AUDIO.PCM.decode.so...done.
Loaded symbols for /usr/lib/libHA.AUDIO.PCM.decode.so
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Core was generated by `./skyapp'.
Program terminated with signal 11, Segmentation fault.
[New process 1195]
[New process 1196]
[New process 1197]
[New process 1198]
[New process 1199]
[New process 1200]
[New process 1201]
[New process 1202]
[New process 1133]
[New process 1137]
[New process 1138]
[New process 1142]
[New process 1145]
[New process 1146]
[New process 1148]
[New process 1149]
[New process 1150]
[New process 1151]
[New process 1152]
[New process 1153]
[New process 1154]
[New process 1156]
[New process 1157]
[New process 1158]
[New process 1159]
[New process 1160]
[New process 1161]
[New process 1162]
[New process 1163]
[New process 1164]
[New process 1168]
[New process 1184]
[New process 1185]
#0  0x00096a40 in ImageStruct_dispStorageScale_Dst4Sub0 (
    mgr=<value optimized out>, you=0x47d3d45c)
    at ../../src/image/huawei_release/proj-image/include/../lib_img/image_struct.c:656
656     ../../src/image/huawei_release/proj-image/include/../lib_img/image_struct.c: No such file or directory.
        in ../../src/image/huawei_release/proj-image/include/../lib_img/image_struct.c
(gdb) bt
#0  0x00096a40 in ImageStruct_dispStorageScale_Dst4Sub0 (
    mgr=<value optimized out>, you=0x47d3d45c)
    at ../../src/image/huawei_release/proj-image/include/../lib_img/image_struct.c:656
#1  0x0009d550 in ImageManager_displayNow (mgr=0x4a62f120)
    at ../../src/image/huawei_release/proj-image/include/../lib_img/image_struct.c:1635
#2  0x0009e5c0 in ImageStruct_displayX (mgr=0x4a62f120, imginfo=0x47d3d6c8)
    at ../../src/image/huawei_release/proj-image/include/../lib_img/image_struct.c:3636
#3  0x001f2e00 in HtmlImageManager_display (me=0x4b09b300, info=0x47d3d6c8)
    at ../../src/htmlengine/huawei_release/proj-htmlengine/include/../lib_html/ht_img2.c:1753
#4  0x002b9e94 in HtmlDisplay_dispImage (me=0x4b089160, pNode=0x4b06c0e0, 
    image_id=9, alt=0x4b064f20)
    at ../../src/htmlengine/huawei_release/proj-htmlengine/include/../lib_html/disp_image.c:304
#5  0x002bfddc in HtmlDisplay_display_element (me=0x4b089160, 
    pNode=0x4b06c0e0)
    at ../../src/htmlengine/huawei_release/proj-htmlengine/include/../lib_html/ht_disp2.c:3417
#6  0x00298b88 in html_walkTree_checkFlag (me=<value optimized out>, 
    mgr=0x4b089160, pTopNode=0x4b070f00, cbf1=<value optimized out>, 
    cbf2=0x2c2ad8 <HtmlDisplay_display_element_closeNode>, bits=16)
    at ../../src/htmlengine/huawei_release/proj-htmlengine/include/../lib_html/ht_node.c:847
#7  0x002c26c0 in HtmlDisplay_display (me=0x4b089160, topNode=0x4b06cbc0, 
    dispMode=<value optimized out>)
    at ../../src/htmlengine/huawei_release/proj-htmlengine/include/../lib_html/ht_disp2.c:548
#8  0x0020bcdc in HtmlDocManager_onRestoreRegion (me=0x4b6f7f40, x=310, 
    y=113, w=<value optimized out>, h=423)
    at ../../src/htmlengine/huawei_release/proj-htmlengine/include/../lib_html/ht_doc2.c:5123
#9  0x002302fc in BrowserDocument_xwndProc (me=0x4b04be80, 
    msg=<value optimized out>, p1=423, p2=<value optimized out>)
    at ../../src/htmlengine/huawei_release/proj-htmlengine/include/../lib_html/ht_frame2.c:4533
#10 0x002e42bc in WindowRegistry_paint_rect_1 (reg=0x4a4c8ab8, x=310, y=113, 
    w=334, h=423)
    at ../../src/gfx/huawei_release/proj-gfx/include/../lib_gfx/wnd_reg.c:131
#11 0x002e4464 in WindowRegistry_procPaintEvent (me=0x4a4c8620, 
    reg=0x4a4c8ab8)
    at ../../src/gfx/huawei_release/proj-gfx/include/../lib_gfx/wnd_mgr.c:1499
#12 0x002e44f4 in WindowManager_procPaintEvent2 (me=0x0, 
    parentWindow=<value optimized out>, reg=0x4a4c8ab8)
    at ../../src/gfx/huawei_release/proj-gfx/include/../lib_gfx/wnd_mgr.c:1549
#13 0x002e4558 in WindowManager_procPaintEvent2 (me=0x4a4c8620, 
    parentWindow=<value optimized out>, reg=0x4a4c87d8)
    at ../../src/gfx/huawei_release/proj-gfx/include/../lib_gfx/wnd_mgr.c:1558
#14 0x002ec190 in WindowManager_paint (me=0x4a4c8620)
    at ../../src/gfx/huawei_release/proj-gfx/include/../lib_gfx/wnd_mgr.c:1594
#15 0x002ec73c in WindowManager_xwnd_proc (me=0x4a4c8620, message=3, 
    wParam=0, lParam=0)
    at ../../src/gfx/huawei_release/proj-gfx/include/../lib_gfx/wnd_mgr.c:1974
#16 0x00036e10 in iPanelRuntime_procEvent (me=0x4a4c64a0, msg=0, p1=0, p2=0)
    at ../../src/ipanel/huawei_release/proj-ipanel/include/../lib_web/web_runtime.c:878
#17 0x00025490 in GeneralControl_procEvent (me=0x4a4c62c0, msg=0, p1=0, p2=0)
    at ../../src/ipanel/huawei_release/proj-ipanel/workspace/src0/../inc/../../lib_ipanel/src/ipanel_control.c:1462
#18 0x0002598c in ipanel_proc (handle=0x4a4c62c0, msg=0, p1=0, p2=0)
    at ../../src/ipanel/huawei_release/proj-ipanel/workspace/src0/../inc/../../lib_ipanel/src/ipanel_interface2.0_layer.c:278
#19 0x0032c9b0 in sky_ipanel_task (para=0x108ddb8)
    at /home/MainCode_HN/code/src/apps/ipanel/ver3/skyinterface/src/ipaneldtv_task.c:251
#20 0x003b731c in wrap_task_fun ()
#21 0x400a4a8c in ?? () from /lib/libpthread.so.0
(gdb) 

0 1