Repository navigation
Closed
Labels
kind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.priority/P1Important: P1 issues are a top priority and a must-have for the next release.
Milestone
Description
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0xb1a82f]
goroutine 1 [running]:
github.com/opencontainers/runc/libcontainer/cgroups/fs.(*Manager).Freeze(0xc820c418e0, 0x16cdfd8, 0x6, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/opencontainers/runc/libcontainer/cgroups/fs/apply_raw.go:205 +0x2bf
github.com/opencontainers/runc/libcontainer.killCgroupProcesses(0x7f5fe456fc30, 0xc820c418e0, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/opencontainers/runc/libcontainer/init_linux.go:309 +0x8c
github.com/opencontainers/runc/libcontainer.(*linuxContainer).Destroy(0xc820d88ea0, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/opencontainers/runc/libcontainer/container_linux.go:331 +0x238
github.com/docker/docker/daemon/execdriver/native.(*Driver).Terminate(0xc820717840, 0xc8207e5c00, 0x0, 0x0)
/go/src/github.com/docker/docker/daemon/execdriver/native/driver.go:346 +0x2dd
github.com/docker/docker/daemon.(*Daemon).Register(0xc82000c840, 0xc820bfcfc0, 0x0, 0x0)
/go/src/github.com/docker/docker/daemon/daemon.go:276 +0x4df
github.com/docker/docker/daemon.(*Daemon).restore(0xc82000c840, 0x0, 0x0)
/go/src/github.com/docker/docker/daemon/daemon.go:343 +0x11c5
github.com/docker/docker/daemon.NewDaemon(0xc820134c80, 0xc820028118, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/daemon/daemon.go:835 +0x335f
main.(*DaemonCli).CmdDaemon(0xc820648a30, 0xc82000a070, 0x3, 0x3, 0x0, 0x0)
/go/src/github.com/docker/docker/docker/daemon.go:227 +0x136a
reflect.callMethod(0xc820646d80, 0xc820d43c68)
/usr/local/go/src/reflect/value.go:628 +0x1fc
reflect.methodValueCall(0xc82000a070, 0x3, 0x3, 0x1, 0xc820646d80, 0x0, 0x0, 0xc820646d80, 0x0, 0x473375, ...)
/usr/local/go/src/reflect/asm_amd64.s:29 +0x36
github.com/docker/docker/cli.(*Cli).Run(0xc820646cf0, 0xc82000a060, 0x4, 0x4, 0x0, 0x0)
/go/src/github.com/docker/docker/cli/cli.go:89 +0x383
main.main()
/go/src/github.com/docker/docker/docker/docker.go:63 +0x43c
I had just upgraded a 1.9.1 environment to 1.10 and this panic was thrown on the first daemon start. This is running off of 63525a6
Metadata
Metadata
Assignees
Labels
kind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.priority/P1Important: P1 issues are a top priority and a must-have for the next release.
Activity
cpuguy83 commentedon Jan 14, 2016
ping @LK4D4 @crosbymichael issue with libcontainer cgroup manager.
mlaventure commentedon Jan 14, 2016
root cause: libcontainer moved the cgroups settings inside an inner Resources type opencontainers/runc@55a49f2 . Hence when loading the old state.json the Resources pointer was set to nil as it isn't present in the previous format.
Embed Resources for backward compatibility
hqhq commentedon Jan 15, 2016
@ibuildthecloud Can you check if opencontainers/runc#476 fixes the panic?
Embed Resources for backward compatibility
thaJeztah commentedon Jan 19, 2016
@hqhq opencontainers/runc#476 is merged, so I think we need a vendor update now. Not sure if that's currently possible, pending opencontainers/runc#470 ?
thaJeztah commentedon Jan 19, 2016
Just discussed with @crosbymichael and if might be cherry-picked into the release branch in RunC
Embed Resources for backward compatibility
thaJeztah commentedon Jan 19, 2016
Reopening, because GitHub was a bit trigger-happy
jessfraz commentedon Jan 20, 2016
that was weird it closed it from my fork
thaJeztah commentedon Jan 20, 2016
Yah, that works because you have write access to both. Surprised me actually that that didn't happen from the RunC repo, possibly because it's a different organization
thaJeztah commentedon Jan 20, 2016
That doesn't make sense, because you're a different "org" as well, haha
Embed Resources for backward compatibility
Embed Resources for backward compatibility
Embed Resources for backward compatibility