crio: panic: "reflect: slice index out of range" in reflect.Value.Index() occurred during concurrent ExecSync requests

Solution Verified - Updated -

Issue

  • crio: panic: "reflect: slice index out of range" in reflect.Value.Index() occurred during concurrent ExecSync requests

  • dmesg(1) output:

Jun 25 01:47:11 hostname.sample.co.fo crio[95322]: panic: reflect: slice index out of range
Jun 25 01:47:11 hostname.sample.co.fo crio[95322]: goroutine 497358374 [running]:
  • Stack trace of goroutine 497358374
  #0  runtime.systemstack_switch at asm_amd64.s:363
  #1  0x000056376cb3c9bc in runtime.dopanic at panic.go:597
  #2  0x000056376cb3c5f5 in runtime.gopanic at panic.go:551
  #3  0x000056376cc90746 in encoding/json.(*encodeState).marshal.func1 at encode.go:293
  #4  0x000056376cb69d2d in runtime.call32 at asm_amd64.s:573
  #5  0x000056376cb3c45d in runtime.gopanic at panic.go:502
  #6  0x000056376cbd2b93 in reflect.Value.Index at value.go:894
  #7  0x000056376cc87702 in encoding/json.(*arrayEncoder).encode at encode.go:761
  #8  0x000056376cc913d6 in encoding/json.(*arrayEncoder).(encoding/json.encode)-fm at encode.go:768
  #9  0x000056376cc87473 in encoding/json.(*sliceEncoder).encode at encode.go:735
  #10 0x000056376cc91356 in encoding/json.(*sliceEncoder).(encoding/json.encode)-fm at encode.go:747
  #11 0x000056376cc865c7 in encoding/json.(*structEncoder).encode at encode.go:639
  #12 0x000056376cc91256 in encoding/json.(*structEncoder).(encoding/json.encode)-fm at encode.go:653
  #13 0x000056376cc879a5 in encoding/json.(*ptrEncoder).encode at encode.go:780
  #14 0x000056376cc91456 in encoding/json.(*ptrEncoder).(encoding/json.encode)-fm at encode.go:785
  #15 0x000056376cc843f4 in encoding/json.(*encodeState).reflectValue at encode.go:325
  #16 0x000056376cc840d7 in encoding/json.(*encodeState).marshal at encode.go:298
  #17 0x000056376cc83ae1 in encoding/json.Marshal at encode.go:161
  #18 0x000056376d16b019 in github.com/cri-o/cri-o/oci.PrepareProcessExec at oci.go:819
  #19 0x000056376d166aee in github.com/cri-o/cri-o/oci.(*Runtime).ExecSync at oci.go:424
  #20 0x000056376db31e61 in github.com/cri-o/cri-o/server.(*Server).ExecSync at container_execsync.go:40
  #21 0x000056376d08cef3 in github.com/cri-o/cri-o/vendor/k8s.io/kubernetes/pkg/kubelet/apis/cri/runtime/v1alpha2._RuntimeService_ExecSync_Handler at api.pb.go:4363
  #22 0x000056376d07853a in github.com/cri-o/cri-o/vendor/google.golang.org/grpc.(*Server).processUnaryRPC at server.go:843
  #23 0x000056376d07b70a in github.com/cri-o/cri-o/vendor/google.golang.org/grpc.(*Server).handleStream at server.go:1040
  #24 0x000056376d07d0a1 in github.com/cri-o/cri-o/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 at server.go:589
  #25 0x000056376cb6c531 in runtime.goexit at asm_amd64.s:2361

Environment

  • cri-o-1.11.16-0.2.dev.rhaos3.11.git3f89eba.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content