squid: assertion failed: MemBuf.cc:280: "size < capacity"

Latest response

After updating from squid-3.1.23-9 to squid-3.1.23-16 the process squid restarts several times per day with the following error:
assertion failed: MemBuf.cc:272: "size < capacity"

Here's the cache.log file for reference:

2016/05/30 17:36:53| ipcacheParse: No Address records in response to '6.perf.msedge.net'
2016/05/30 17:37:28| assertion failed: MemBuf.cc:280: "size < capacity"
2016/05/30 17:37:31| Starting Squid Cache version 3.1.23 for x86_64-redhat-linux-gnu...
2016/05/30 17:37:31| Process ID 43245
2016/05/30 17:37:31| With 488012 file descriptors available
2016/05/30 17:37:31| Initializing IP Cache...
2016/05/30 17:37:31| DNS Socket created at 0.0.0.0, FD 7
2016/05/30 17:37:31| Adding nameserver 127.0.0.1 from squid.conf
2016/05/30 17:37:31| User-Agent logging is disabled.
2016/05/30 17:37:31| Referer logging is disabled.
2016/05/30 17:37:31| Unlinkd pipe opened on FD 12
2016/05/30 17:37:31| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2016/05/30 17:37:31| Swap maxSize 157838336 + 2097152 KB, estimated 12302729 objects
2016/05/30 17:37:31| Target number of buckets: 615136
2016/05/30 17:37:31| Using 1048576 Store buckets
2016/05/30 17:37:31| Max Mem  size: 2097152 KB
2016/05/30 17:37:31| Max Swap size: 157838336 KB
2016/05/30 17:37:31| Version 1 of swap file with LFS support detected...
2016/05/30 17:37:31| Rebuilding storage in /var/spool/squid (DIRTY)
2016/05/30 17:37:31| Using Least Load store dir selection
2016/05/30 17:37:31| Set Current Directory to /var/spool/squid
2016/05/30 17:37:31| Loaded Icons.
2016/05/30 17:37:31| Accepting  HTTP connections at 0.0.0.0:8080, FD 16.
2016/05/30 17:37:31| HTCP Disabled.
2016/05/30 17:37:31| Squid plugin modules loaded: 0
2016/05/30 17:37:31| Adaptation support is off.
2016/05/30 17:34:39| ipcacheParse: No Address records in response to 'ipv6.msftncsi.com'

I've checked the changes in squid-3.1.23-read-buffer.patch, the maximum capacity of MemBuf has been changed from (2561024) to (2100010241024).
I think this means the MemBuffer cannot grow any more such as memory allocation failed (not enough memory available).

Has anyone seen this error or have a fix for it? Any clues would be awesome.

Thanks

Responses