I tried with weedfs 0.63 and 0.65 on several volumes, I always get this error:
$ ../weedfs/weed compact -dir=/data/weedfs_volume -volumeId=184
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x4c31c0]
goroutine 16 [running]:
runtime.panic(0x9ca580, 0xd7c6d3)
/home/chris/apps/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/chrislusf/weed-fs/go/storage.(*Volume).readSuperBlock(0xc208028230, 0x7fd7efc6c1b0, 0xc2080380d0)
/home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/storage/volume_super_block.go:60 +0x90
github.com/chrislusf/weed-fs/go/storage.(*Volume).load(0xc208028230, 0xc208020101, 0x0, 0x0)
/home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/storage/volume.go:81 +0x41b
github.com/chrislusf/weed-fs/go/storage.NewVolume(0x7fffbe817761, 0x13, 0xa413b0, 0x0, 0xc2000000b8, 0x0, 0x0, 0xc208028230, 0x0, 0x0)
/home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/storage/volume.go:33 +0xeb
main.runCompact(0xd7a7e0, 0xc20800e040, 0x0, 0x0, 0x0)
/home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/weed/compact.go:36 +0xa5
main.main()
/home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/weed/weed.go:77 +0x612
goroutine 19 [finalizer wait]:
runtime.park(0x428bd0, 0xd81240, 0xd7f449)
/home/chris/apps/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0xd81240, 0xd7f449)
/home/chris/apps/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/home/chris/apps/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/home/chris/apps/go/src/pkg/runtime/proc.c:1445
goroutine 20 [syscall]:
os/signal.loop()
/home/chris/apps/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/home/chris/apps/go/src/pkg/os/signal/signal_unix.go:27 +0x32
goroutine 21 [chan receive]:
github.com/chrislusf/weed-fs/go/glog.(*loggingT).flushDaemon(0xd84140) /home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/glog/glog.go:833 +0x75
created by github.com/chrislusf/weed-fs/go/glog.init·1
/home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/glog/glog.go:402 +0x2b2
goroutine 17 [syscall]:
runtime.goexit()
/home/chris/apps/go/src/pkg/runtime/proc.c:1445
goroutine 23 [runnable]:
github.com/chrislusf/weed-fs/go/stats.(*ServerStats).Start(0xc20800f180) /home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/stats/stats.go:90created by github.com/chrislusf/weed-fs/go/weed/weed_server.init·1
/home/chris/dev/workspace/home/gopath/src/
github.com/chrislusf/weed-fs/go/weed/weed_server/common.go:24 +0x43