ipfs swarm peering ls
crashes if daemon isn't running
#8699
Labels
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
status/ready
Ready to be worked
Checklist
Installation method
third-party binary
Version
Config
Description
$ ipfs swarm peering ls
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x1d1d966]
goroutine 1 [running]:
github.com/ipfs/go-ipfs/peering.(*PeeringService).ListPeers(0x0, 0x0, 0x0, 0x0)
github.com/ipfs/go-ipfs@v0.11.0/peering/peering.go:247 +0x66
github.com/ipfs/go-ipfs/core/commands.glob..func167(0xc000266000, 0x2a1f870, 0xc000339260, 0x240f740, 0xc000339200, 0x1, 0xc000339260)
github.com/ipfs/go-ipfs@v0.11.0/core/commands/swarm.go:149 +0x77
github.com/ipfs/go-ipfs-cmds.(*executor).Execute(0xc00000e730, 0xc000266000, 0x2a1f870, 0xc000339260, 0x240f740, 0xc000339200, 0xc000339260, 0x0)
github.com/ipfs/go-ipfs-cmds@v0.6.0/executor.go:77 +0x16b
github.com/ipfs/go-ipfs-cmds/cli.Run(0x2a1f3d8, 0xc00020dc00, 0x3766920, 0xc0000d4040, 0x4, 0x4, 0xc0000d0000, 0xc0000d0008, 0xc0000d0010, 0x2857768, ...)
github.com/ipfs/go-ipfs-cmds@v0.6.0/cli/run.go:137 +0xab8
main.mainRet(0x0)
github.com/ipfs/go-ipfs@v0.11.0/cmd/ipfs/main.go:168 +0x45e
main.main()
github.com/ipfs/go-ipfs@v0.11.0/cmd/ipfs/main.go:71 +0x25
The text was updated successfully, but these errors were encountered: