Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid constantly crashing

    Scheduled Pinned Locked Moved Cache/Proxy
    6 Posts 3 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gga
      last edited by

      Squid Cache version 3.5.23 for amd64-portbld-freebsd10.3…

      It's crashing every 5 seconds with the following message:

      assertion failed: MemBuf.cc:216: "0 <= tailSize && tailSize <= cSize"

      Re-installing it doesn't help.

      1 Reply Last reply Reply Quote 0
      • G
        gga
        last edited by

        Quick update. I found the cause of the problem.
        I was using Dynamic and Update Content.
        De-selected Cache Dynamic Content and got stability back.

        1 Reply Last reply Reply Quote 0
        • DaReaLDeviLD
          DaReaLDeviL
          last edited by

          Hello gga,

          thank you for the reply. I think mine is suffering from the same problem. Deactivated it and now it runs again.
          Where do you get the logs from squid?

          Regards

          Rolf

          VM PFSense 2.4.3 (amd64) on Dell PowerEdge T410
          Xeon E5620 @ 2.40GHz 2 CPUs: 4GB Ram: 60GB Disk
          ISP (MNet) 1xModem (Vigor 130) 1xWan, 3xLan (PFSense)

          1 Reply Last reply Reply Quote 0
          • V
            Valeriy
            last edited by

            It seems to be this bug:

            http://bugs.squid-cache.org/show_bug.cgi?id=4606

            For me personally I started to observe it on pfSense 2.4beta, and did not see it before. It seems it occurs more often on FreeBSD 11. I am using caching of Dynamic Content heavily and this bug happens few times during a week to my Squid.
            According to bugzilla the bug is related to "bad 304 response received" handling by Squid, that is causing assertion bug.

            I am only wondering if older Squid version is not affected by that, that we can possibly downgrade our packages to, until we have a working/tested build. So far this is only one issue I have with Squid on pfSense 2.4beta

            1 Reply Last reply Reply Quote 0
            • DaReaLDeviLD
              DaReaLDeviL
              last edited by

              My squid crashed last week again without the dynamic chache. Where is the right place to look into logs what coused this?

              @Valeriy
              what do you have insert in "Custom refresh_patterns" that the Cache Dynamic Content works for you?

              VM PFSense 2.4.3 (amd64) on Dell PowerEdge T410
              Xeon E5620 @ 2.40GHz 2 CPUs: 4GB Ram: 60GB Disk
              ISP (MNet) 1xModem (Vigor 130) 1xWan, 3xLan (PFSense)

              1 Reply Last reply Reply Quote 0
              • V
                Valeriy
                last edited by

                It has nothing to do with your or somebody else settings.

                Its a Squid bug,
                http://bugs.squid-cache.org/show_bug.cgi?id=4606

                I guess we have to wait when it is fixed by Squid team and then when new package will be built by pfSense team later.
                Interim solution will be to wait for pfSense team apply the patch (if there is patch that is confirmed functional and not causing any additional bugs)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.