net: golang.org/x/crypto/ssh panic error #46544
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes, currently I use the latest release
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I create 3 project
the main project is the starting point of the program with a cli interface. The main purpose of this project is to parse command line args, load the plugin, and run a function inside the plugin by passing all the parsed args.
the second project is just a lib that wraps the ssh client and provide a easy way to run ssh commands.
the third project is the plugin that use the ssh lib.
it just call the
GetSshClient
function defined in the above lib and run some commands by using theSshRunCommand
function defined in the same lib.it has two functions:
all three projects are located in a different git repository
the main cli and the lib ones have their own go.mod file.
the lib is loaded the main cli project with the go get command
the plugin project is loaded in the main cli project as a git submodule and it doesn't have a go.mod file.
I create a plugin_test.go file to test the plugin "entry-point" function and all works great!
but when i build with the command
go build -buildmode=plugin -o build/ssh.so
the plugin and use it with the cli compiled command I get the strange error reported below (I run it by passing only one hostname in the cli command).the code below rappresent the functions defined in the lib
What did you expect to see?
no error
What did you see instead?
here the mentioned error
The text was updated successfully, but these errors were encountered: