Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-18146

squid crashes in assertion when a parent peer exists

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.3.0
    • squid
    • None
    • squid-5.5-9.el9
    • None
    • Moderate
    • ZStream
    • rhel-sst-cs-stacks
    • ssg_core_services
    • 26
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • Approved Blocker
    • None

      What were you trying to do that didn't work?

      A customer using squid with a parent peer shows regularly an assertion failure:

      Core was generated by `(squid-1) --kid squid-1 --foreground -f /etc/squid/squid.conf'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0)
          at pthread_kill.c:44
      44	      return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
      (gdb) bt
      #0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0)
          at pthread_kill.c:44
      #1  0x00007fc6f04a15b3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
      #2  0x00007fc6f0454d06 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #3  0x00007fc6f04287f3 in __GI_abort () at abort.c:79
      #4  0x000055f4aeab0d6d in xassert (msg=<optimized out>, file=<optimized out>, line=<optimized out>)
          at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/debug.cc:624
      #5  0x000055f4aec47278 in peerDigestHandleReply (data=0x55f4b171cbe8, receivedData=...)
          at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/peer_digest.cc:419
      #6  0x000055f4aec69f16 in store_client::finishCallback (this=0x55f4b171e118)
          at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/store_client.cc:196
      #7  0x000055f4aed4d54b in AsyncCallQueue::fireNext (this=<optimized out>) at base/../../src/base/RefCount.h:73
      #8  0x000055f4aed4d8da in AsyncCallQueue::fire (this=0x55f4b1708580) at base/AsyncCallQueue.cc:43
      #9  0x000055f4aeb31931 in EventLoop::dispatchCalls (this=0x7ffdd2504f60)
          at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/EventLoop.cc:144
      #10 EventLoop::runOnce (this=0x7ffdd2504f60) at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/EventLoop.cc:121
      #11 0x000055f4aec34d48 in EventLoop::run (this=0x7ffdd2504f60)
          at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/EventLoop.cc:83
      #12 SquidMain (argc=<optimized out>, argv=<optimized out>)
          at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/main.cc:1716
      #13 0x000055f4aead6856 in SquidMainSafe (argv=0x7ffdd2505278, argc=6)
          at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/main.cc:1403
      #14 main (argc=6, argv=0x7ffdd2505278) at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/main.cc:1391
      (gdb) f 5
      #5  0x000055f4aec47278 in peerDigestHandleReply (data=0x55f4b171cbe8, receivedData=...)
          at /usr/src/debug/squid-5.5-6.el9_3.2.x86_64/src/peer_digest.cc:419
      419	    assert(fetch->pd && receivedData.data);
      (gdb) p fetch->pd
      $1 = (PeerDigest *) 0x55f4b111de98
      (gdb) p receivedData
      $2 = {flags = {error = <optimized out>}, length = 0, offset = <optimized out>, data = 0x0}
      

      The customer pointed us to a known issue which was fixed by Upstream commit https://github.com/squidadm/squid/commit/e1be70c518265de8dba1d891c8e5733103879a12.

      Please backport this commit

      Please provide the package NVR for which bug is seen:

      squid-5.5-6.el9_3.2

      How reproducible:

      Always on customer system, didn't try to reproduce internally

              luhliari@redhat.com Lubos Uhliarik
              rhn-support-rmetrich Renaud Métrich
              Lubos Uhliarik Lubos Uhliarik
              Iveta Cesalova Iveta Cesalova
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: