【求助】curveadm安装后运行就报错

服务器:ubuntu 22.04.1
安装后直接运行curveadm有时会报错,有时是正常

~/curve# curveadm
Usage:  curveadm COMMAND [OPTIONS]

Deploy and manage CurveBS/CurveFS cluster

Management Commands:
  client      Manage client
  cluster     Manage clusters
  config      Manage cluster topology
  hosts       Manage hosts
  pfs         Manage pfs
  playground  Manage playground
  target      Manage SCSI target of CurveBS

Commands:
  audit       Show audit log of operation
  clean       Clean service's environment
  completion  Generate completion script
  deploy      Deploy cluster
  enter       Enter service container
  format      Format chunkfile pool
  map         Map a volume to nbd device
  migrate     Migrate services
  mount       Mount filesystem
  precheck    Precheck environment
  reload      Reload service
  restart     Restart service
  scale-out   Scale out cluster
  ssh         Connect remote host
  start       Start service
  status      Display service status
  stop        Stop service
  support     Get support from Curve team
  umount      Umount filesystem
  unmap       Unmap nbd device
  upgrade     Upgrade service

Options:
  -d, --debug     Print debug information
  -h, --help      Print usage
  -u, --upgrade   Upgrade curveadm itself to the latest version
  -v, --version   Print version information and quit

Examples:
  $ curveadm playground --kind curvebs  # Run a CurveBS playground quickly
  $ curveadm cluster add c1             # Add a cluster named 'c1'
  $ curveadm deploy                     # Deploy current cluster
  $ curveadm stop                       # Stop current cluster service
  $ curveadm clean                      # Clean current cluster
  $ curveadm enter 6ff561598c6f         # Enter specified service container
  $ curveadm -u                         # Upgrade curveadm itself to the latest version

Run 'curveadm COMMAND --help' for more information on a command.
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x2 addr=0x7f9e0ff5d072 pc=0x7f9e0e527a7f]

runtime stack:
runtime.throw({0xe94f77?, 0x0?})
	/root/.local/go1.18.3/src/runtime/panic.go:992 +0x71
runtime.sigpanic()
	/root/.local/go1.18.3/src/runtime/signal_unix.go:802 +0x3a9

goroutine 33 [syscall]:
runtime.cgocall(0xc47ef0, 0xc00046a598)
	/root/.local/go1.18.3/src/runtime/cgocall.go:157 +0x5c fp=0xc00046a570 sp=0xc00046a538 pc=0x4058dc
net._C2func_getaddrinfo(0xc000213d80, 0x0, 0xc0004a32f0, 0xc000011140)
	_cgo_gotypes.go:94 +0x56 fp=0xc00046a598 sp=0xc00046a570 pc=0x6418d6
net.cgoLookupIPCNAME.func1({0xc000213d80, 0x7ffdd4764c30?, 0x7f9e0ff5bb48?}, 0xc000358600?, 0xc00046a680?)
	/root/.local/go1.18.3/src/net/cgo_unix.go:160 +0x9f fp=0xc00046a5f0 sp=0xc00046a598 pc=0x64317f
net.cgoLookupIPCNAME({0xe70b98, 0x3}, {0xc000358600, 0x1f})
	/root/.local/go1.18.3/src/net/cgo_unix.go:160 +0x16d fp=0xc00046a738 sp=0xc00046a5f0 pc=0x6429ed
net.cgoIPLookup(0x51cc25?, {0xe70b98?, 0xc00046a7d0?}, {0xc000358600?, 0xc0002d4870?})
	/root/.local/go1.18.3/src/net/cgo_unix.go:217 +0x3b fp=0xc00046a7a8 sp=0xc00046a738 pc=0x64323b
net.cgoLookupIP.func1()
	/root/.local/go1.18.3/src/net/cgo_unix.go:227 +0x36 fp=0xc00046a7e0 sp=0xc00046a7a8 pc=0x643676
runtime.goexit()
	/root/.local/go1.18.3/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00046a7e8 sp=0xc00046a7e0 pc=0x466701
created by net.cgoLookupIP
	/root/.local/go1.18.3/src/net/cgo_unix.go:227 +0x12a

goroutine 1 [runnable]:
syscall.Syscall(0x1, 0x2, 0xc0000ba900, 0x72b)
	/root/.local/go1.18.3/src/syscall/asm_linux_amd64.s:20 +0x5
syscall.write(0xc000078120?, {0xc0000ba900?, 0xc00036a780?, 0x48a597?})
	/root/.local/go1.18.3/src/syscall/zsyscall_linux_amd64.go:924 +0x4d
syscall.Write(...)
	/root/.local/go1.18.3/src/syscall/syscall_unix.go:216
internal/poll.ignoringEINTRIO(...)
	/root/.local/go1.18.3/src/internal/poll/fd_unix.go:794
internal/poll.(*FD).Write(0xc000078120?, {0xc0000ba900?, 0x72b?, 0x900?})
	/root/.local/go1.18.3/src/internal/poll/fd_unix.go:383 +0x36e
os.(*File).write(...)
	/root/.local/go1.18.3/src/os/file_posix.go:48
os.(*File).Write(0xc000010028, {0xc0000ba900?, 0x72b, 0xdaa8a0?})
	/root/.local/go1.18.3/src/os/file.go:176 +0x65
fmt.Fprint({0xfd1f60, 0xc000010028}, {0xc00051f7c0, 0x1, 0x1})
	/root/.local/go1.18.3/src/fmt/print.go:233 +0x75
text/template.(*state).printValue(0xc00051fbd8, {0xfd9120?, 0xc0004829c0}, {0xd62fa0?, 0xc0004a6410?, 0x2?})
	/root/.local/go1.18.3/src/text/template/exec.go:1018 +0x173
text/template.(*state).walk(0xc00051fbd8, {0xe6ee60?, 0xc00036a780?, 0xd594a0?}, {0xfd9120?, 0xc0004829c0})
	/root/.local/go1.18.3/src/text/template/exec.go:263 +0x25c
text/template.(*state).walk(0xc00051fbd8, {0xe6ee60?, 0xc00036a780?, 0x203000?}, {0xfd9438?, 0xc000482930?})
	/root/.local/go1.18.3/src/text/template/exec.go:274 +0x415
text/template.(*state).walkIfOrWith(0xc0001dfbd8, 0xa, {0xe6ee60?, 0xc00036a780?, 0xc0004829f0?}, 0xe00cc0?, 0xc00037a901?, 0x0)
	/root/.local/go1.18.3/src/text/template/exec.go:304 +0x1f8
text/template.(*state).walk(0xc0001dfbd8, {0xe6ee60?, 0xc00036a780?, 0x54992e?}, {0xfd93f0?, 0xc000271e40?})
	/root/.local/go1.18.3/src/text/template/exec.go:271 +0x1d6
text/template.(*state).walk(0xc00051fbd8, {0xe6ee60?, 0xc00036a780?, 0xc00037a900?}, {0xfd9438?, 0xc000482840?})
	/root/.local/go1.18.3/src/text/template/exec.go:274 +0x415
text/template.(*Template).execute(0xc000271dc0, {0xfd1f60?, 0xc000010028?}, {0xe6ee60?, 0xc00036a780?})
	/root/.local/go1.18.3/src/text/template/exec.go:218 +0x2c5
text/template.(*Template).Execute(...)
	/root/.local/go1.18.3/src/text/template/exec.go:201
github.com/spf13/cobra.tmpl({0xfd1f60, 0xc000010028}, {0xe9db9c, 0x3a}, {0xe6ee60, 0xc00036a780})
	/root/.local/go/pkg/mod/github.com/spf13/cobra@v1.3.0/cobra.go:162 +0x148
github.com/spf13/cobra.(*Command).HelpFunc.func1(0x88c20f?, {0x881a05?, 0xc00010fd00?, 0xfd1f60?})
	/root/.local/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:402 +0x72
github.com/docker/cli/cli/command.ShowHelp.func1(0xc00036a780, {0x158c750, 0x0, 0x0})
	/root/.local/go/pkg/mod/github.com/docker/cli@v20.10.9+incompatible/cli/command/cli.go:121 +0x84
github.com/opencurve/curveadm/cli/command.NewCurveAdmCommand.func1(0xc00036a780?, {0x158c750?, 0x0, 0x0})
	/root/work/curveadm/cli/command/cmd.go:115 +0x8c
github.com/spf13/cobra.(*Command).execute(0xc00036a780, {0xc000032220, 0x0, 0x0})
	/root/.local/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc00036a780)
	/root/.local/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
	/root/.local/go/pkg/mod/github.com/spf13/cobra@v1.3.0/command.go:902
github.com/opencurve/curveadm/cli.Execute()
	/root/work/curveadm/cli/curveadm.go:50 +0xfa
main.main()
	/root/work/curveadm/cmd/curveadm/main.go:30 +0x17

goroutine 8 [select]:
github.com/kpango/fastime.(*fastime).StartTimerD.func1()
	/root/.local/go/pkg/mod/github.com/kpango/fastime@v1.1.4/fastime.go:195 +0x11e
created by github.com/kpango/fastime.(*fastime).StartTimerD
	/root/.local/go/pkg/mod/github.com/kpango/fastime@v1.1.4/fastime.go:188 +0x14a

goroutine 9 [select]:
database/sql.(*DB).connectionOpener(0xc0003748f0, {0xfd7170, 0xc000271800})
	/root/.local/go1.18.3/src/database/sql/sql.go:1226 +0x8d
created by database/sql.OpenDB
	/root/.local/go1.18.3/src/database/sql/sql.go:794 +0x18d

goroutine 32 [select]:
net.cgoLookupIP({0xfd7170, 0xc0004960c0}, {0xe70b98, 0x3}, {0xc000358600, 0x1f})
	/root/.local/go1.18.3/src/net/cgo_unix.go:228 +0x1aa
net.(*Resolver).lookupIP(0x1554320, {0xfd7170, 0xc0004960c0}, {0xe70b98, 0x3}, {0xc000358600, 0x1f})
	/root/.local/go1.18.3/src/net/lookup_unix.go:96 +0x128
net.glob..func1({0xfd7170?, 0xc0004960c0?}, 0x0?, {0xe70b98?, 0xc00046ff84?}, {0xc000358600?, 0x0?})
	/root/.local/go1.18.3/src/net/hook.go:23 +0x3d
net.(*Resolver).lookupIPAddr.func1()
	/root/.local/go1.18.3/src/net/lookup.go:319 +0x9f
internal/singleflight.(*Group).doCall(0x1554330, 0xc0002bfa40, {0xc000358630, 0x23}, 0x0?)
	/root/.local/go1.18.3/src/internal/singleflight/singleflight.go:95 +0x3b
created by internal/singleflight.(*Group).DoChan
	/root/.local/go1.18.3/src/internal/singleflight/singleflight.go:88 +0x2ec

goroutine 31 [select]:
net.(*Resolver).lookupIPAddr(0x1554320, {0xfd71e0?, 0xc000079e60}, {0xe70b98, 0x3}, {0xc000358600, 0x1f})
	/root/.local/go1.18.3/src/net/lookup.go:325 +0x51b
net.(*Resolver).internetAddrList(0xfd71e0?, {0xfd71e0?, 0xc000079e60?}, {0xe70b98, 0x3}, {0xc000358600?, 0x22?})
	/root/.local/go1.18.3/src/net/ipsock.go:288 +0x67a
net.(*Resolver).resolveAddrList(0x158c750?, {0xfd71e0, 0xc000079e60}, {0xe71068, 0x4}, {0xe70b98?, 0xe55be0?}, {0xc000358600, 0x22}, {0x0, ...})
	/root/.local/go1.18.3/src/net/dial.go:221 +0x41b
net.(*Dialer).DialContext(0xc000079c20, {0xfd71a8, 0xc0000340b0}, {0xe70b98, 0x3}, {0xc000358600, 0x22})
	/root/.local/go1.18.3/src/net/dial.go:406 +0x448
net/http.(*Transport).dial(0xae3ad1?, {0xfd71a8?, 0xc0000340b0?}, {0xe70b98?, 0xc000010bf8?}, {0xc000358600?, 0x1?})
	/root/.local/go1.18.3/src/net/http/transport.go:1169 +0xda
net/http.(*Transport).dialConn(0xc000339400, {0xfd71a8, 0xc0000340b0}, {{}, 0x0, {0xc00007d140, 0x4}, {0xc000358600, 0x22}, 0x0})
	/root/.local/go1.18.3/src/net/http/transport.go:1607 +0x83f
net/http.(*Transport).dialConnFor(0xabedad?, 0xc0000b9290)
	/root/.local/go1.18.3/src/net/http/transport.go:1449 +0xb0
created by net/http.(*Transport).queueForDial
	/root/.local/go1.18.3/src/net/http/transport.go:1418 +0x3d2

goroutine 26 [select]:
net/http.(*Transport).getConn(0xc000339400, 0xc000496040, {{}, 0x0, {0xc00007d140, 0x4}, {0xc000358600, 0x22}, 0x0})
	/root/.local/go1.18.3/src/net/http/transport.go:1375 +0x5c6
net/http.(*Transport).roundTrip(0xc000339400, 0xc00048c900)
	/root/.local/go1.18.3/src/net/http/transport.go:581 +0x76f
net/http.(*Transport).RoundTrip(0x40f325?, 0xfd1d20?)
	/root/.local/go1.18.3/src/net/http/roundtrip.go:17 +0x19
net/http.send(0xc00048c900, {0xfd1d20, 0xc000339400}, {0xe55be0?, 0xc000067801?, 0x0?})
	/root/.local/go1.18.3/src/net/http/client.go:252 +0x5d8
net/http.(*Client).send(0xc000483290, 0xc00048c900, {0x0?, 0xe40120?, 0x0?})
	/root/.local/go1.18.3/src/net/http/client.go:176 +0x9b
net/http.(*Client).do(0xc000483290, 0xc00048c900)
	/root/.local/go1.18.3/src/net/http/client.go:725 +0x8f5
net/http.(*Client).Do(...)
	/root/.local/go1.18.3/src/net/http/client.go:593
github.com/go-resty/resty/v2.(*Client).execute(0xc0000003c0, 0xc000469380)
	/root/.local/go/pkg/mod/github.com/go-resty/resty/v2@v2.7.0/client.go:932 +0x40d
github.com/go-resty/resty/v2.(*Request).Execute(0xc000469380, {0xe70e9c?, 0x0?}, {0xe9d008, 0x38})
	/root/.local/go/pkg/mod/github.com/go-resty/resty/v2@v2.7.0/request.go:758 +0x5e9
github.com/go-resty/resty/v2.(*Request).Head(...)
	/root/.local/go/pkg/mod/github.com/go-resty/resty/v2@v2.7.0/request.go:694
github.com/opencurve/curveadm/internal/tools/upgrade.GetLatestVersion({0xe71428, 0x5})
	/root/work/curveadm/internal/tools/upgrade/upgrade.go:78 +0x20d
github.com/opencurve/curveadm/cli/cli.(*CurveAdm).detectVersion(0xc0000d1c20)
	/root/work/curveadm/cli/cli/cli.go:196 +0x33
created by github.com/opencurve/curveadm/cli/cli.NewCurveAdm
	/root/work/curveadm/cli/cli/cli.go:104 +0x39c

看着像是系统库不兼容了,你可以尝试自己把 CurveAdm 克隆到本地,然后运行 make debug 来编译