Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctrl-d on ipfs block stat causes a panic #3047

Closed
daviddias opened this issue Aug 6, 2016 · 1 comment · Fixed by #3050
Closed

ctrl-d on ipfs block stat causes a panic #3047

daviddias opened this issue Aug 6, 2016 · 1 comment · Fixed by #3050
Labels
kind/bug A bug in existing code (including security flaws) panic

Comments

@daviddias
Copy link
Member

Version/Platform/Processor information (from ipfs version --all):

» ipfs version --all
go-ipfs version: 0.4.3-dev-d742fb1
Repo version: 4
System version: amd64/darwin
Golang version: go1.6.2

Type (bug, feature, meta, test failure, question): bug
Area (api, commands, daemon, fuse, etc): cli
Priority (from P0: functioning, to P4: operations on fire): P1

Description:

» ipfs block stat
ipfs: Reading from /dev/stdin; send Ctrl-d to stop.
panic: runtime error: index out of range

goroutine 1 [running]:
panic(0xa7b560, 0xc82000e090)
        /usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/ipfs/go-ipfs/core/commands.glob.func12(0x2149848, 0xc82015e600, 0x2149ae0, 0xc82025d810)
        /Users/david/code/go-projects/src/github.com/ipfs/go-ipfs/core/commands/block.go:61 +0x224
github.com/ipfs/go-ipfs/commands.(*Command).Call(0x125ffe0, 0x2149848, 0xc82015e600, 0x0, 0x0)
        /Users/david/code/go-projects/src/github.com/ipfs/go-ipfs/commands/command.go:111 +0x472
main.callCommand(0x2149a50, 0xc82032a0c0, 0x2149848, 0xc82015e600, 0x125ffe0, 0x123d7c0, 0x0, 0x0, 0x0, 0x0)
        /Users/david/code/go-projects/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:346 +0xa84
main.(*cmdInvocation).Run(0xc82032a000, 0x2149a50, 0xc82032a0c0, 0x0, 0x0, 0x0, 0x0)
        /Users/david/code/go-projects/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:189 +0x1e7
main.main()
        /Users/david/code/go-projects/src/github.com/ipfs/go-ipfs/cmd/ipfs/main.go:154 +0x660
@daviddias daviddias added the kind/bug A bug in existing code (including security flaws) label Aug 6, 2016
@daviddias daviddias changed the title ctrl-d on ipfs block stat causes a panic ctrl-d on ipfs block stat causes a panic Aug 6, 2016
@daviddias
Copy link
Member Author

Thank you @whyrusleeping ❤️

@aschmahmann aschmahmann mentioned this issue May 14, 2021
71 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) panic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants