Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-1896

CLO panic: runtime error: slice bounds out of range [:-1]

XMLWordPrintable

    • False
    • False
    • NEW
    • VERIFIED
    • Logging (Core) - Sprint 210

       
      
      {"_ts":"2021-10-25T11:00:28.894749881Z","_level":"0","_component":"cluster-logging-operator","_message":"starting up...","go_arch":"amd64","go_os":"linux","go_version":"go1.15.14","operator-sdk_version":"v0.18.1","operator_version":"0.0.1"}
      
      I1025 11:00:29.946640 1 request.go:621] Throttling request took 1.033509389s, request: GET:
       [https://100.66.0.1:443/apis/project.openshift.io/v1?timeout=32s|https://100.66.0.1/apis/project.openshift.io/v1?timeout=32s]
       I1025 11:00:40.122602 1 request.go:621] Throttling request took 1.046690596s, request: GET:
       [https://100.66.0.1:443/apis/network.openshift.io/v1?timeout=32s|https://100.66.0.1/apis/network.openshift.io/v1?timeout=32s]
      
      {"_ts":"2021-10-25T11:00:43.329844431Z","_level":"0","_component":"cluster-logging-operator","_message":"Registering Components."}
      
      I1025 11:00:50.132130 1 request.go:621] Throttling request took 3.84686579s, request: GET:
       [https://100.66.0.1:443/apis/network.openshift.io/v1?timeout=32s|https://100.66.0.1/apis/network.openshift.io/v1?timeout=32s]
       \{"_ts":"2021-10-25T11:00:50.534203788Z","_level":"0","_component":"cluster-logging-operator","_message":"Could not generate and serve custom resource metrics","error":{}}
       I1025 11:01:00.139801 1 request.go:621] Throttling request took 2.295902909s, request: GET:
       [https://100.66.0.1:443/apis/events.k8s.io/v1beta1?timeout=32s|https://100.66.0.1/apis/events.k8s.io/v1beta1?timeout=32s]
       panic: runtime error: slice bounds out of range [:-1] [recovered]
       panic: runtime error: slice bounds out of range [:-1]
      
      goroutine 1 [running]:
       encoding/json.(*encodeState).marshal.func1(0xc000a0f7f8)
       /usr/lib/golang/src/encoding/json/encode.go:326 +0x85
       panic(0x16d44a0, 0xc0007468a0)
       /usr/lib/golang/src/runtime/panic.go:969 +0x1b9
       github.com/ViaQ/logerr/log.Line.MarshalJSON(0xc0007467a0, 0x1e, 0xc000746860, 0x13, 0x17d8937, 0x1, 0x17c86aa, 0x18, 0x17db460, 0x26, ...)
       /go/src/github.com/openshift/cluster-logging-operator/vendor/github.com/ViaQ/logerr/log/logger.go:73 +0x3fa
       encoding/json.marshalerEncoder(0xc000356900, 0x16e4b40, 0xc0006a4d80, 0x99, 0xc000dc0100)
       /usr/lib/golang/src/encoding/json/encode.go:477 +0xad
       encoding/json.condAddrEncoder.encode(0x1881f48, 0x1881fa0, 0xc000356900, 0x16e4b40, 0xc0006a4d80, 0x99, 0x16e0100)
       /usr/lib/golang/src/encoding/json/encode.go:932 +0xb2
       encoding/json.(*encodeState).reflectValue(0xc000356900, 0x16e4b40, 0xc0006a4d80, 0x99, 0xc000a00100)
       /usr/lib/golang/src/encoding/json/encode.go:358 +0x82
       encoding/json.(*encodeState).marshal(0xc000356900, 0x16e4b40, 0xc0006a4d80, 0x10000c0008b0100, 0x0, 0x0)
       /usr/lib/golang/src/encoding/json/encode.go:330 +0xf4
       encoding/json.(*Encoder).Encode(0xc000a0f890, 0x16e4b40, 0xc0006a4d80, 0xc0006a4d80, 0xc000a0fa60)
       /usr/lib/golang/src/encoding/json/stream.go:206 +0x8b
       github.com/ViaQ/logerr/log.JSONEncoder.Encode(...)
       /go/src/github.com/openshift/cluster-logging-operator/vendor/github.com/ViaQ/logerr/log/encoding.go:13
       github.com/ViaQ/logerr/log.(*Logger).log(0xc000146a20, 0x17db460, 0x26, 0xc0008d7320)
       /go/src/github.com/openshift/cluster-logging-operator/vendor/github.com/ViaQ/logerr/log/logger.go:194 +0x35c
       github.com/ViaQ/logerr/log.(*Logger).Info(0xc000146a20, 0x17db460, 0x26, 0xc000c94de0, 0x2, 0x2)
       /go/src/github.com/openshift/cluster-logging-operator/vendor/github.com/ViaQ/logerr/log/logger.go:212 +0x92
       github.com/ViaQ/logerr/log.Info(0x17db460, 0x26, 0xc000c94de0, 0x2, 0x2)
       /go/src/github.com/openshift/cluster-logging-operator/vendor/github.com/ViaQ/logerr/log/log.go:91 +0xb0
       main.addMetrics(0x19ba360, 0xc000042040, 0xc000460200)
       /go/src/github.com/openshift/cluster-logging-operator/cmd/manager/main.go:198 +0x2a5
       main.main()
       /go/src/github.com/openshift/cluster-logging-operator/cmd/manager/main.go:152 +0x7b3
      
      

       

              vparfono Vitalii Parfonov
              jcantril@redhat.com Jeffrey Cantrill
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: