Comment 0 for bug 1978272

Revision history for this message
Wen-Ding Zeng (wdzeng) wrote :

Squid crashes immediately on startup in docker.

```sh
docker run --name squid ubuntu/squid:5.2-22.04_beta -X
```

The error messages are:

```
2022/06/10 05:49:58| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
2022/06/10 05:49:58| FATAL: xcalloc: Unable to allocate 1073741816 blocks of 432 bytes!
```

Squid was trying to allocate 1073741816 x 432 bytes, which was about 432 GiB memory! It was abnormal.

Envrionment:

```sh
$ docker --version
Docker version 20.10.14, build a224086
$ cat /etc/fedora-release
Fedora release 35 (Thirty Five)
$ uname -r
5.16.18-200.fc35.x86_64
```

The detailed log could be found [here](https://pastebin.com/gKE4qUc0).