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

Nil Pointer panic , on clean install + add -r folder #233

Closed
zignig opened this issue Oct 29, 2014 · 2 comments
Closed

Nil Pointer panic , on clean install + add -r folder #233

zignig opened this issue Oct 29, 2014 · 2 comments

Comments

@zignig
Copy link

zignig commented Oct 29, 2014

ipfs ls QmVyRrPEvAtTEDLKyEZWVMUwN9w3iJJxkN4uiCNNWoSyUQ
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x5ee913]

goroutine 16 [running]:
runtime.panic(0x9615c0, 0xd18533)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/jbenet/go-ipfs/path.(_Resolver).ResolvePath(0x0, 0x7fff8d318e81, 0x2e, 0x2b127b0f0da8, 0x0, 0x0)
/usr/local/golang/src/github.com/jbenet/go-ipfs/path/path.go:48 +0x5d3
github.com/jbenet/go-ipfs/core/commands.Ls(0xc208050000, 0xc20800e020, 0x1, 0x1, 0xc208058120, 0x2b127b0f0418, 0xc208038008, 0x0, 0x0)
/usr/local/golang/src/github.com/jbenet/go-ipfs/core/commands/ls.go:12 +0xea
main.func·006(0xd15780, 0xc20800e020, 0x1, 0x1, 0x0, 0x0)
/usr/local/golang/src/github.com/jbenet/go-ipfs/cmd/ipfs/gen.go:68 +0x7fb
github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander.(_Command).Dispatch(0xd15780, 0xc20800e020, 0x1, 0x1, 0x0, 0x0)
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander/commands.go:221 +0x75c
github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander.(*Command).Dispatch(0xd174c0, 0xc20800e010, 0x2, 0x2, 0x0, 0x0)
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander/commands.go:187 +0x228
main.main()
/usr/local/golang/src/github.com/jbenet/go-ipfs/cmd/ipfs/ipfs.go:111 +0x1f0

goroutine 19 [finalizer wait]:
runtime.park(0x41dc70, 0xd1d250, 0xd1b4a9)
/usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0xd1d250, 0xd1b4a9)
/usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 20 [syscall]:
os/signal.loop()
/usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x32

goroutine 21 [chan receive]:
github.com/jbenet/go-ipfs/util/ctxcloser.(*contextCloser).closeOnContextDone(0xc208004060)
/usr/local/golang/src/github.com/jbenet/go-ipfs/util/ctxcloser/closer.go:180 +0x8e
created by github.com/jbenet/go-ipfs/util/ctxcloser.NewContextCloser
/usr/local/golang/src/github.com/jbenet/go-ipfs/util/ctxcloser/closer.go:123 +0x103

goroutine 22 [select]:
github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc208084000)
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:173 +0x1b4
created by github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:203 +0x202

goroutine 24 [runnable]:
github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc208036b40)
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:109
created by github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.openDB
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:123 +0x4d6

goroutine 25 [runnable]:
github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc208036b40)
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:629
created by github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.openDB
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:126 +0x518

goroutine 26 [runnable]:
github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc208036b40)
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:600
created by github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.openDB
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:127 +0x530

goroutine 27 [runnable]:
github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc208036b40)
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:34
created by github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.openDB
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:128 +0x548

goroutine 28 [runnable]:
github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc208036b40)
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go:70
created by github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb.openDB
/usr/local/golang/src/github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:129 +0x560

@zignig zignig changed the title Nil Ponter panic , on clean install + add -r folder Nil Pointer panic , on clean install + add -r folder Oct 29, 2014
btc pushed a commit that referenced this issue Oct 29, 2014
discovered by @mappum and applied at 414e20b

fixing here to address #233

#233
@btc
Copy link
Contributor

btc commented Oct 29, 2014

Thank you for reporting this. Fixed the issue in 79866d3. Please pull master and try again.

@btc btc closed this as completed Oct 29, 2014
@zignig
Copy link
Author

zignig commented Oct 29, 2014

:) Welcome , my golang foo is still weak , but I can sub-alpha test ... I have great plans for IPFS once the base is stable(ish).

@aschmahmann aschmahmann mentioned this issue May 14, 2021
71 tasks
@aschmahmann aschmahmann mentioned this issue Dec 1, 2021
80 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants