gops stopped listing my running go programs
prithsharma opened this issue · 8 comments
A few days ago, gops
stopped listing my running go program (found this when I couldn't attach to my program for debugging in GoLand)
Any ideas on how to debug this?
Is it possible for you to see if https://godoc.org/rsc.io/goversion is working with your binary?
Right, goversion
doesn't list my binary either. I can confirm that some other binaries lying in my directory from before are being listed with goversion
but the binary in question (which I recently generated) is not. May be something changed on my system? what should I check?
@prithsharma could you check whether you still see the issue with the latest gops
version? If you do, could you check with which Go version your binary was compiled using both goversion <binary>
(using the latest version of goversion
) and go version <binary>
?
I ran into this same issue today. Here's the output from both go version
and goversion
:
$ go version ~/go/bin/pulumi-resource-kubernetes
/Users/levi/go/bin/pulumi-resource-kubernetes: go1.15.7
$ goversion ~/go/bin/pulumi-resource-kubernetes
/Users/levi/go/bin/pulumi-resource-kubernetes: implausible string size 13678730008574592512 for runtime.buildVersion
This is with gops v0.3.14
and goversion v1.2
I also grabbed the runtime.buildVersion
using dlv like this post shows:
dlv exec ~/go/bin/pulumi-resource-kubernetes
Type 'help' for list of commands.
(dlv) b main.main
Breakpoint 1 set at 0x588b6cf for main.main() /Users/levi/go/src/github.com/pulumi/pulumi-kubernetes/provider/cmd/pulumi-resource-kubernetes/main.go:26
(dlv) p runtime.buildVersion
"go1.15.7"
This open issue with goversion
looks like the culprit: rsc/goversion#12
rsc/goversion#13 fixes the issue:
$ goversion ~/go/bin/pulumi-resource-kubernetes
/Users/levi/go/bin/pulumi-resource-kubernetes go1.15.7
I think #166 should fix this issues, at least when building gops
using Go 1.18.
@prithsharma @lblackstone could you please check whether gops
built from latest master
branch using Go 1.18 works as expected for you?
@lblackstone could you please check whether
gops
built from latestmaster
branch using Go 1.18 works as expected for you?
Yes, this appears to be working as expected now. Thanks!
@lblackstone Thanks for confirming!