Skip to content

并发数默认或设置成1,运行后都报错无效的内存地址或... #1

Description

报错如下:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x45cd54]

goroutine 148 [running]:
sshpro/utils/root.Connection.OutPut.func3(0xc000212190, 0x52f0028, 0xc0003523a0,
0xc000356330)
/usr/local/go/src/sshpro/utils/root/connect.go:92 +0xc6
created by sshpro/utils/root.Connection.OutPut
/usr/local/go/src/sshpro/utils/root/connect.go:88 +0x3b1

Activity

  1. pythonzm commented on Aug 4, 2020

    @pythonzm
    Owner

    我试了没问题,你执行的是什么命令,方便贴一下吗

  2. pythonzm commented on Aug 10, 2020

    @pythonzm
    Owner

    这个现象好像是随机性的,我先用--host-range参数执行了100多台机器,没有报错,然后用配置文件执行也没报错,之后又试了几次,出现过一次这个报错,我稍微修改了connect.go,把session.Stdout = &stdout放在后边了,我试了几次没有报错了,你重新拉代码编译试下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions