rakyll / drive

Pull or push Google Drive files
471 stars 506 forks source link

init command generates panic #22

Closed BobBurrow closed 9 years ago

BobBurrow commented 9 years ago

With the latest version of drive (download 2014/11/12), the init command generated the following error:

./drive init panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x13 pc=0x4545f7]

goroutine 16 [running]: runtime.panic(0x737260, 0x946113) /usr/lib64/go/src/pkg/runtime/panic.c:279 +0xf5 github.com/rakyll/drive.New(0xc20801a8c0, 0x0, 0x0) /home/bob/go/src/github.com/rakyll/drive/commands.go:49 +0x47 main.(*initCmd).Run(0x94b590, 0xc20800e020, 0x0, 0x0) /home/bob/go/src/github.com/rakyll/drive/cmd/drive/main.go:55 +0x52 github.com/rakyll/command.Run() /home/bob/go/src/github.com/rakyll/command/command.go:155 +0xa1 github.com/rakyll/command.ParseAndRun() /home/bob/go/src/github.com/rakyll/command/command.go:162 +0x1f main.main() /home/bob/go/src/github.com/rakyll/drive/cmd/drive/main.go:45 +0x8b2

goroutine 17 [runnable]: runtime.MHeap_Scavenger() /usr/lib64/go/src/pkg/runtime/mheap.c:507 runtime.goexit() /usr/lib64/go/src/pkg/runtime/proc.c:1445

goroutine 18 [runnable]: bgsweep() /usr/lib64/go/src/pkg/runtime/mgc0.c:1976 runtime.goexit() /usr/lib64/go/src/pkg/runtime/proc.c:1445

goroutine 19 [runnable]: runfinq() /usr/lib64/go/src/pkg/runtime/mgc0.c:2606 runtime.goexit() /usr/lib64/go/src/pkg/runtime/proc.c:1445

I'm using go 1.3.3 on opensuse 12.3 from "The Go Programming Language (openSUSE_12.3)" repository (http://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_12.3/). The build and compile appeared to go without any problems.

offthewoll commented 9 years ago

I installed drive today (11.12.14) and also got a panic with init. I'm using Go as packaged with Ubuntu 14.04.

panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x13 pc=0x449491]

goroutine 1 [running]: runtime.panic(0x6b3420, 0xa36c88) /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6 github.com/rakyll/drive.New(0xc21001f6e0, 0x0, 0x0) /home/ubuntu/go/src/github.com/rakyll/drive/commands.go:49 +0x41 main.(*initCmd).Run(0xa449d8, 0xc21000a020, 0x0, 0x0) /home/ubuntu/go/src/github.com/rakyll/drive/cmd/drive/main.go:55 +0x52 github.com/rakyll/command.Run() /home/ubuntu/go/src/github.com/rakyll/command/command.go:155 +0x81 github.com/rakyll/command.ParseAndRun() /home/ubuntu/go/src/github.com/rakyll/command/command.go:162 +0x1f main.main() /home/ubuntu/go/src/github.com/rakyll/drive/cmd/drive/main.go:45 +0x83c

odeke-em commented 9 years ago

I am going to try to reproduce this later on tonight. As this points to a change that just got in. Am just installing 14.04, and will see what's up.

rakyll commented 9 years ago

3ef6932050bc77e05d6f684796b4af42360868a9 should have fixed it.