3ofcoins / jetpack

**PROTOTYPE** FreeBSD Jail/ZFS based implementation of the Application Container Specification
Other
529 stars 38 forks source link

stack trace on FreeBSD 10.1 during `jetpack init` #10

Closed dch closed 9 years ago

dch commented 9 years ago

git checkout today using 9c88b57d8e502c8706b50229120257493398486c crashes during jetpack init.

wintermute# jetpack init
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x488385]

goroutine 1 [running]:
lib/jetpack.(*Host).Initialize(0x0, 0x0, 0x0)
    /usr/home/dch/src/jetpack/src/lib/jetpack/host.go:108 +0x45
lib/jetpack.*Host.Initialize·fm(0x0, 0x0)
    /usr/home/dch/src/jetpack/src/bin/jetpack/host.go:10 +0x39
main.func·002(0xc20800a010, 0x0, 0x0, 0x0, 0x0)
    /usr/home/dch/src/jetpack/src/bin/jetpack/command.go:81 +0x38
main.(*Command).Run(0xc2080823c0, 0xc20800a010, 0x0, 0x0, 0x0, 0x0)
    /usr/home/dch/src/jetpack/src/bin/jetpack/command.go:69 +0xe1
main.main()
    /usr/home/dch/src/jetpack/src/bin/jetpack/main.go:47 +0x274
wintermute#
mpasternacki commented 9 years ago

Should be fixed now. Please note that jetpack init tries to create the datasets, based on settings in jetpack.conf, so if the dataset already exists, it may still fail because of that.

dch commented 9 years ago

🚀 works for me thanks!