Skip to content

[1.10] cgroup panic #19329

Closed
Closed

Description

@ibuildthecloud
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

Activity

  1. added
    kind/bug
    on Jan 14, 2016
  2. cpuguy83 commented on Jan 14, 2016

    @cpuguy83
    Member

    ping @LK4D4 @crosbymichael issue with libcontainer cgroup manager.

  3. added this to the 1.10.0 milestone on Jan 14, 2016
  4. mlaventure commented on Jan 14, 2016

    @mlaventure
    Contributor

    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.

  5. added
    priority/P1
    on Jan 15, 2016
  6. hqhq commented on Jan 15, 2016

    @hqhq
    Contributor

    @ibuildthecloud Can you check if opencontainers/runc#476 fixes the panic?

  7. added a commit that references this issue on Jan 19, 2016
    f048eaf
  8. thaJeztah commented on Jan 19, 2016

    @thaJeztah
    Member

    @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 ?

  9. thaJeztah commented on Jan 19, 2016

    @thaJeztah
    Member

    Just discussed with @crosbymichael and if might be cherry-picked into the release branch in RunC

  10. added a commit that references this issue on Jan 19, 2016
    bef07f4
  11. thaJeztah commented on Jan 19, 2016

    @thaJeztah
    Member

    Reopening, because GitHub was a bit trigger-happy

  12. jessfraz commented on Jan 20, 2016

    @jessfraz
    Contributor

    that was weird it closed it from my fork

  13. thaJeztah commented on Jan 20, 2016

    @thaJeztah
    Member

    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

  14. thaJeztah commented on Jan 20, 2016

    @thaJeztah
    Member

    That doesn't make sense, because you're a different "org" as well, haha

  15. added 3 commits that reference this issue on Oct 19, 2024
    b797015
    f505f80
    e954b8b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugpriority/P1

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions