Skip to content

containerd sometimes crashes with panic: runtime error: invalid memory address or nil pointer dereference #7468

@sli720

Description

@sli720

Description

When starting jenkins/inbound-agent/3063.v26e24490f041-2-jdk11 the container sometimes crash with a memory error

Steps to reproduce the issue

No response

Describe the results you received and expected

ct 03 22:42:24 gpunode22 containerd[31501]: panic: runtime error: invalid memory address or nil pointer dereference
ct 03 22:42:24 gpunode22 containerd[31501]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x846859]
ct 03 22:42:24 gpunode22 containerd[31501]: goroutine 40 [running]:
ct 03 22:42:24 gpunode22 containerd[31501]: github.com/containerd/containerd/runtime/v2/runc.(*Container).Cgroup(0x50)
ct 03 22:42:24 gpunode22 containerd[31501]:         /go/src/github.com/containerd/containerd/runtime/v2/runc/container.go:285 +0x39
ct 03 22:42:24 gpunode22 containerd[31501]: github.com/containerd/containerd/runtime/v2/runc/v1.(*service).Stats(0x90dc40, {0xc0001bb680, 0x10}, 0xc0000>
ct 03 22:42:24 gpunode22 containerd[31501]:         /go/src/github.com/containerd/containerd/runtime/v2/runc/v1/service.go:600 +0x25
ct 03 22:42:24 gpunode22 containerd[31501]: github.com/containerd/containerd/runtime/v2/task.RegisterTaskService.func15({0x9d3080, 0xc0001bb650}, 0xc000>
ct 03 22:42:24 gpunode22 containerd[31501]:         /go/src/github.com/containerd/containerd/runtime/v2/task/shim.pb.go:3554 +0x9b
ct 03 22:42:24 gpunode22 containerd[31501]: github.com/containerd/ttrpc.defaultServerInterceptor({0x9d3080, 0xc0001bb650}, 0x17, 0xc000124e80, 0x5)
ct 03 22:42:24 gpunode22 containerd[31501]:         /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/interceptor.go:45 +0x26
ct 03 22:42:24 gpunode22 containerd[31501]: github.com/containerd/ttrpc.(*serviceSet).dispatch(0xc00002dd20, {0x9d3080, 0xc0001bb650}, {0xc000024570, 0x>
ct 03 22:42:24 gpunode22 containerd[31501]:         /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/services.go:95 +0x1be
ct 03 22:42:24 gpunode22 containerd[31501]: github.com/containerd/ttrpc.(*serviceSet).call(0x0, {0x9d3080, 0xc0001bb650}, {0xc000024570, 0x0}, {0xc00016>
ct 03 22:42:24 gpunode22 containerd[31501]:         /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/services.go:64 +0x71
ct 03 22:42:24 gpunode22 containerd[31501]: github.com/containerd/ttrpc.(*serverConn).run.func2(0x3)
ct 03 22:42:24 gpunode22 containerd[31501]:         /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/server.go:438 +0xe5
ct 03 22:42:24 gpunode22 containerd[31501]: created by github.com/containerd/ttrpc.(*serverConn).run
ct 03 22:42:24 gpunode22 containerd[31501]:         /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/server.go:434 +0x808

What version of containerd are you using?

containerd github.com/containecontainerd v1.6.8 9cd3357

Any other relevant information

runc version 1.1.4
commit: v1.1.4-0-g5fd4c4d1
spec: 1.0.2-dev
go: go1.17.10
libseccomp: 2.5.4

Linux gpunode22 5.14.0-160.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 25 23:06:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Show configuration if it is related to CRI plugin.

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions