Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-62118

Prometheus panics on nil pointer in (*tlsRoundTripper).RoundTrip

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.19
    • Monitoring
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      2025-09-18T19:44:55.899522111Z panic: runtime error: invalid memory address or nil pointer dereference
      2025-09-18T19:44:55.899522111Z [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x9db43f]
      2025-09-18T19:44:55.899522111Z 
      2025-09-18T19:44:55.899522111Z goroutine 3594 [running]:
      2025-09-18T19:44:55.899522111Z github.com/prometheus/common/config.(*tlsRoundTripper).RoundTrip(0xc04381e580, 0xc04f264280)
      2025-09-18T19:44:55.899522111Z  /go/src/github.com/prometheus/prometheus/vendor/github.com/prometheus/common/config/http_config.go:1380 +0x4ff
      2025-09-18T19:44:55.899522111Z net/http.send(0xc04f264280, {0x48643e0, 0xc04381e580}, {0xc080a31701?, 0x41297e?, 0x0?})
      2025-09-18T19:44:55.899522111Z  /usr/lib/golang/src/net/http/client.go:259 +0x5e4
      2025-09-18T19:44:55.899522111Z net/http.(*Client).send(0xc043845890, 0xc04f264280, {0x10048de3d?, 0x541?, 0x0?})
      2025-09-18T19:44:55.899522111Z  /usr/lib/golang/src/net/http/client.go:180 +0x98
      2025-09-18T19:44:55.899522111Z net/http.(*Client).do(0xc043845890, 0xc04f264280)
      2025-09-18T19:44:55.899522111Z  /usr/lib/golang/src/net/http/client.go:731 +0x98b
      2025-09-18T19:44:55.899522111Z net/http.(*Client).Do(...)
      2025-09-18T19:44:55.899522111Z  /usr/lib/golang/src/net/http/client.go:590
      2025-09-18T19:44:55.899522111Z github.com/prometheus/prometheus/scrape.(*targetScraper).scrape(0xc042ed9c20, {0x48a4088, 0xc055bbc7e0})
      2025-09-18T19:44:55.899522111Z  /go/src/github.com/prometheus/prometheus/scrape/scrape.go:820 +0x5f2
      2025-09-18T19:44:55.899522111Z github.com/prometheus/prometheus/scrape.(*scrapeLoop).scrapeAndReport(0xc04338f080, {0xee05e5837?, 0x6aa98e0?, 0x6aa98e0?}, {0xee05e5837?, 0x6aa98e0?, 0x6aa98e0?}, 0x0)
      2025-09-18T19:44:55.899522111Z  /go/src/github.com/prometheus/prometheus/scrape/scrape.go:1426 +0x477
      2025-09-18T19:44:55.899522111Z github.com/prometheus/prometheus/scrape.(*scrapeLoop).run(0xc04338f080, 0x0)
      2025-09-18T19:44:55.899522111Z  /go/src/github.com/prometheus/prometheus/scrape/scrape.go:1351 +0x371
      2025-09-18T19:44:55.899522111Z created by github.com/prometheus/prometheus/scrape.(*scrapePool).sync in goroutine 3665
      2025-09-18T19:44:55.899522111Z  /go/src/github.com/prometheus/prometheus/scrape/scrape.go:597 +0xcdd
      
          

      Version-Release number of selected component (if applicable):

      4.19.11
          

      How reproducible:

      
          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

      
          

      Expected results:

      
          

      Additional info:

      See linked must-gather
          

              rh-ee-amrini Ayoub Mrini
              spasquie@redhat.com Simon Pasquier
              None
              None
              Junqi Zhao Junqi Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: