Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Groups
    • Search
    • 官网
    1. Home
    2. gaoxr
    G
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    gaoxr

    @gaoxr

    0
    Reputation
    4
    Posts
    192
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    gaoxr Follow

    Posts made by gaoxr

    • 尝试使用swgdb调试失败,gdbtui中报错Connection timed out.

      尝试使用swgdb工具,执行到最后一步无法连上计算节点端口。
      操作步骤按照使用说明做的

      从服务节点执行交叉调试的使用方法:
      
      1:编译选项: -g,
              其作用是支持局部变量的打印
      
      2:作业运行:
              sn007 ] bsub -debug ...
      
      3:做一次调试使能:
              sn007 ] bdebug 作业号
      
      4:执行调试:
              sn007 ] swgdb  可执行程序文件名 节点号
      
      5:在swgdb提示符下输入:
              (swgdb) attach 进程号,选择被调试的进程
              (swgdb) detach 进程号,结束当前进程的调试
              (swgdb) where, 列出函数调用关系
      
      

      第2步

      bsub -I -debug -p -q q_sw_expr -N 1 -cgsp 64 ./nested 4 1
      

      第3步

      Job <51755710> is being debuged
      

      第4步
      swgdb(/usr/sw-mpp/bin/swgdb)脚本中gdbtui的路径不对,复制后将online1改成了online3。
      第5步,gdb报错

      gdbinit:4: Error in sourced command file:
      172.0.0.1:11111: Connection timed out.
      (swgdb) 
      

      我猜想交叉调试的原理应该是通过tcp连接到计算节点,我看报Connection timed out.又用telnet测了一下发现计算节点的11111端口确实没开。

      请问是系统问题还是我操作有误?(不想再用printf调段错误了)

      posted in 运行环境
      G
      gaoxr
    • RE: 调试工具所在目录(online1)无法访问问题

      @westfalen09 查看了一下,没有,online3/swperfstat和online3/debug都没有,是不是工作人员忘了转移文件了

      posted in 运行环境
      G
      gaoxr
    • RE: 调试工具所在目录(online1)无法访问问题

      又发现/usr/sw-mpp/lib/libswperf.a符号链接指向了online1中的路径。导致ld找不到库文件。

      $ ls /usr/sw-mpp/lib/libswperf.a -l
      lrwxrwxrwx 1 root root 47 Nov 29  2019 /usr/sw-mpp/lib/libswperf.a -> /home/export/online1/swperfstat/lib/libswperf.a
      
      posted in 运行环境
      G
      gaoxr
    • 调试工具所在目录(online1)无法访问问题
      $ swgdb a.out 1
      /usr/sw-mpp/bin/swgdb: line 56: /home/export/online1/debug/cross-gdb: No such file or directory
      /usr/sw-mpp/bin/swgdb: line 72: /home/export/online1/debug/cross-gdbtui: No such file or directory
      

      online1似乎访问不到了,调试工具应该是在里面,现在无法调试。

      posted in 运行环境
      G
      gaoxr
    • 1 / 1