Comment 0 for bug 1815852

Revision history for this message
Haw Loeung (hloeung) wrote :

Hi,

It seems squid fails when configured with SMP. Steps I took to reproduce:

  * add 'workers 5' to /etc/squid/squid.conf

  * sudo service squid restart

Logging shows this:

| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Starting Squid Cache version 4.1 for x86_64-pc-linux-gnu...
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Service Name: squid
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Process ID 10728
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Process Roles: worker
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: With 1024 file descriptors available
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Initializing IP Cache...
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: DNS Socket created at [::], FD 5
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: DNS Socket created at 0.0.0.0, FD 13
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Adding nameserver 127.0.0.53 from /etc/resolv.conf
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Adding domain lcy02.canonistack from /etc/resolv.conf
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Store logging disabled
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Swap maxSize 0 + 262144 KB, estimated 20164 objects
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Target number of buckets: 1008
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Using 8192 Store buckets
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Max Mem size: 262144 KB [shared]
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Max Swap size: 0 KB
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Using Least Load store dir selection
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Set Current Directory to /var/spool/squid
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Logfile: opening log daemon:/var/log/squid/access.log
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Logfile Daemon: opening log /var/log/squid/access.log
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10723]: Finished loading MIME types and icons.
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10723]: FATAL: check failed: ios[0].iov_len == sizeof(data)#012 exception location: TypedMsgHdr.cc(70) sync#012
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10657]: Squid Parent: squid-1 process 10723 exited with status 255
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10657]: Squid Parent: squid-1 process 10723 will not be restarted for 3600 seconds due to repeated, frequent failures
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: Finished loading MIME types and icons.
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Store logging disabled
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10726]: FATAL: check failed: ios[0].iov_len == sizeof(data)#012 exception location: TypedMsgHdr.cc(70) sync#012
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Swap maxSize 0 + 262144 KB, estimated 20164 objects
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Target number of buckets: 1008
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Using 8192 Store buckets
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Max Mem size: 262144 KB [shared]
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Max Swap size: 0 KB
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Using Least Load store dir selection
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Set Current Directory to /var/spool/squid
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10657]: Squid Parent: squid-4 process 10726 exited with status 255
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10657]: Squid Parent: squid-4 process 10726 will not be restarted for 3600 seconds due to repeated, frequent failures
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: Finished loading MIME types and icons.
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10728]: FATAL: check failed: ios[0].iov_len == sizeof(data)#012 exception location: TypedMsgHdr.cc(70) sync#012
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10657]: Squid Parent: squid-3 process 10728 exited with status 255
| Feb 14 03:39:56 juju-be3f45-default-20 squid[10657]: Squid Parent: squid-3 process 10728 will not be restarted for 3600 seconds due to repeated, frequent failures
| Feb 14 03:39:57 juju-be3f45-default-20 squid[10659]: storeLateRelease: released 0 objects

| ubuntu@juju-be3f45-default-20:~$ apt-cache policy squid
| squid:
| Installed: 4.1-1ubuntu3
| Candidate: 4.1-1ubuntu3
| Version table:
| *** 4.1-1ubuntu3 500
| 500 http://nova.clouds.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages
| 100 /var/lib/dpkg/status