编译不成功

dongguatou · 2016-09-02 09:38:07 · 3554 次点击 · 大约8小时之前 开始浏览    置顶
这是一个创建于 2016-09-02 09:38:07 的主题,其中的信息可能已经有所发展或是发生改变。

在Centos7环境下编译Go1.4.3,在os/exec的测试阶段出现以下Pipe问题,请大虾帮忙解释一下问题原因,谢谢。

ok os 1.528s --- FAIL: TestPipeLookPathLeak (0.45s) exec_test.go:253: leaked 4 fds; want ~0; have: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME exec.test 64225 root cwd DIR 8,3 4096 204974345 /home /dev/training/go/src/os/exec exec.test 64225 root rtd DIR 8,3 4096 128 / exec.test 64225 root txt REG 8,3 4795687 205262100 /tmp/ go-build674695459/os/exec/_test/exec.test exec.test 64225 root mem REG 8,3 2107760 135059827 /usr/ lib64/libc-2.17.so exec.test 64225 root mem REG 8,3 141616 135076269 /usr/ lib64/libpthread-2.17.so exec.test 64225 root mem REG 8,3 164336 135059820 /usr/ lib64/ld-2.17.so exec.test 64225 root 0r CHR 1,3 0t0 5701 /dev/ null exec.test 64225 root 1w FIFO 0,8 0t0 429830 pipe exec.test 64225 root 2w FIFO 0,8 0t0 429830 pipe exec.test 64225 root 3r CHR 1,3 0t0 5701 /dev/ null exec.test 64225 root 4r FIFO 0,8 0t0 430372 pipe exec.test 64225 root 5w FIFO 0,8 0t0 430372 pipe exec.test 64225 root 6r FIFO 0,8 0t0 430373 pipe exec.test 64225 root 7w FIFO 0,8 0t0 430373 pipe exec.test 64225 root 8r FIFO 0,8 0t0 430374 pipe

            originally:
            COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF      NODE NAME
            exec.test 64225 root  cwd    DIR    8,3     4096 204974345 /home                                                                                                                                   /dev/training/go/src/os/exec
            exec.test 64225 root  rtd    DIR    8,3     4096       128 /
            exec.test 64225 root  txt    REG    8,3  4795687 205262100 /tmp/                                                                                                                                   go-build674695459/os/exec/_test/exec.test
            exec.test 64225 root  mem    REG    8,3  2107760 135059827 /usr/                                                                                                                                   lib64/libc-2.17.so
            exec.test 64225 root  mem    REG    8,3   141616 135076269 /usr/                                                                                                                                   lib64/libpthread-2.17.so
            exec.test 64225 root  mem    REG    8,3   164336 135059820 /usr/                                                                                                                                   lib64/ld-2.17.so
            exec.test 64225 root    0r   CHR    1,3      0t0      5701 /dev/                                                                                                                                   null
            exec.test 64225 root    1w  FIFO    0,8      0t0    429830 pipe
            exec.test 64225 root    2w  FIFO    0,8      0t0    429830 pipe
            exec.test 64225 root    4r  FIFO    0,8      0t0    429876 pipe
            exec.test 64225 root    6r  FIFO    0,8      0t0    429877 pipe

FAIL FAIL os/exec 0.738s ok os/signal 4.332s ok os/user 0.004s


有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

3554 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传