You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some accidental circumstances, containerd container may start failed after creating, and the containerd-shim-runc-v1 fails with a segmentation fault error, the clients will receive a ttrpc: closed: unknown error. The error messages are as follows:
containerd[6072]: time="2023-07-27T11:48:22.160019299+08:00" level=info msg="StartContainer for \"61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557\""
containerd[6072]: time="2023-07-27T11:48:22.163952339+08:00" level=warning msg="\"io.containerd.runc.v1\" is deprecated since containerd v1.4, consider using \"io.containerd.runc.v2\""
containerd[6072]: time="2023-07-27T11:48:22.170476420+08:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v1 type=io.containerd.event.v1
containerd[6072]: time="2023-07-27T11:48:22.170545449+08:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v1 type=io.containerd.ttrpc.v1
containerd[6072]: time="2023-07-27T11:48:22.170561780+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v1 type=io.containerd.internal.v1
containerd[6072]: time="2023-07-27T11:48:22.170623192+08:00" level=info msg="starting signal loop" namespace=k8s.io path=/run/containerd/io.containerd.runtime.v2.task/k8s.io/61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557 pid=132125 runtime=io.containerd.runc.v1
containerd[6072]: panic: runtime error: invalid memory address or nil pointer dereference
containerd[6072]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x918442]
containerd[6072]: goroutine 9 [running]:
containerd[6072]: github.com/containerd/containerd/runtime/v2/runc.(*Container).Cgroup(0x0, 0x0, 0x0)
containerd[6072]: /go/src/github.com/containerd/containerd/runtime/v2/runc/container.go:285 +0x42
containerd[6072]: github.com/containerd/containerd/runtime/v2/runc/v1.(*service).Stats(0xc0000bc000, 0xac4ba0, 0xc0001aa7b0, 0xc0001aa7e0, 0x7f5545576768, 0x8, 0x10)
containerd[6072]: /go/src/github.com/containerd/containerd/runtime/v2/runc/v1/service.go:600 +0x33
containerd[6072]: github.com/containerd/containerd/runtime/v2/task.RegisterTaskService.func15(0xac4ba0, 0xc0001aa7b0, 0xc00005a460, 0x10, 0x99cc40, 0xc000064b01, 0xc00002b670)
containerd[6072]: /go/src/github.com/containerd/containerd/runtime/v2/task/shim.pb.go:3554 +0xcd
containerd[6072]: github.com/containerd/ttrpc.defaultServerInterceptor(0xac4ba0, 0xc0001aa7b0, 0xc00005a460, 0xc00002b670, 0xc0000a2270, 0xc000064b80, 0x1e, 0x0, 0x30)
containerd[6072]: /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/interceptor.go:45 +0x44
containerd[6072]: github.com/containerd/ttrpc.(*serviceSet).dispatch(0xc00008c6b0, 0xac4ba0, 0xc0001aa7b0, 0xc000112378, 0x17, 0xc000161007, 0x5, 0xc000132280, 0x42, 0x50, ...)
containerd[6072]: /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/services.go:95 +0x211
containerd[6072]: github.com/containerd/ttrpc.(*serviceSet).call(0xc00008c6b0, 0xac4ba0, 0xc0001aa7b0, 0xc000112378, 0x17, 0xc000161007, 0x5, 0xc000132280, 0x42, 0x50, ...)
containerd[6072]: /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/services.go:64 +0xb5
containerd[6072]: github.com/containerd/ttrpc.(*serverConn).run.func2(0xac4af8, 0xc0000be2c0, 0x3, 0xc000020720, 0xc0000800a0, 0xc000082420, 0xc0000824e0, 0x3)
containerd[6072]: /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/server.go:438 +0xf2
containerd[6072]: created by github.com/containerd/ttrpc.(*serverConn).run
containerd[6072]: /go/src/github.com/containerd/containerd/vendor/github.com/containerd/ttrpc/server.go:434 +0x63f
containerd[6072]: time="2023-07-27T11:48:22.176861517+08:00" level=info msg="shim disconnected" id=61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557
containerd[6072]: time="2023-07-27T11:48:22.176856897+08:00" level=error msg="collecting metrics for 61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557" error="ttrpc: closed: unknown"
containerd[6072]: time="2023-07-27T11:48:22.176913866+08:00" level=warning msg="cleaning up after shim disconnected" id=61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557 namespace=k8s.io
containerd[6072]: time="2023-07-27T11:48:22.197169414+08:00" level=warning msg="cleanup warnings time=\"2023-07-27T11:48:22+08:00\" level=info msg=\"starting signal loop\" namespace=k8s.io pid=132141 runtime=io.containerd.runc.v1\ntime=\"2023-07-27T11:48:22+08:00\" level=warning msg=\"failed to read init pid file\" error=\"open /run/containerd/io.containerd.runtime.v2.task/k8s.io/61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557/init.pid: no such file or directory\"\n"
containerd[6072]: time="2023-07-27T11:48:22.197625690+08:00" level=error msg="Failed to pipe stdout of container \"61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557\"" error="reading from a closed fifo"
containerd[6072]: time="2023-07-27T11:48:22.197630647+08:00" level=error msg="Failed to pipe stderr of container \"61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557\"" error="reading from a closed fifo"
containerd[6072]: time="2023-07-27T11:48:22.197873626+08:00" level=error msg="StartContainer for \"61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557\" failed" error="failed to create containerd task: failed to create shim task: ttrpc: closed: unknown"
containerd[6072]: time="2023-07-27T11:48:22.407353104+08:00" level=info msg="Container to stop \"61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557\" must be in running or unknown state, current state \"CONTAINER_EXITED\""
containerd[6072]: time="2023-07-27T11:48:23.409049114+08:00" level=info msg="Container to stop \"61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557\" must be in running or unknown state, current state \"CONTAINER_EXITED\""
containerd[6072]: time="2023-07-27T11:49:35.262547705+08:00" level=info msg="RemoveContainer for \"61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557\""
containerd[6072]: time="2023-07-27T11:49:35.264278848+08:00" level=info msg="RemoveContainer for \"61b5f724d07f37feacd7903d9c5d1347375eacee041eafcd4b88d31437fe0557\" returns successfully"
Steps to reproduce the issue
There is no method to reproduce this issue now.
Describe the results you received and expected
Containers should be created and started correctly.
What version of containerd are you using?
containerd 1.6.5
Any other relevant information
runc version 1.1.7
5.14.0-3.0.2
Show configuration if it is related to CRI plugin.
Description
In some accidental circumstances, containerd container may start failed after creating, and the
containerd-shim-runc-v1
fails with a segmentation fault error, the clients will receive a ttrpc: closed: unknown error. The error messages are as follows:Steps to reproduce the issue
There is no method to reproduce this issue now.
Describe the results you received and expected
Containers should be created and started correctly.
What version of containerd are you using?
containerd 1.6.5
Any other relevant information
Show configuration if it is related to CRI plugin.
The text was updated successfully, but these errors were encountered: