Hi, I've set up over productive cache servers using squid and most of them working very nice and some of them handling over 100Mbps, except this recent one. I set up new cache recently using squid 3.1.5 + TProxy enabled but after just some minutes of working it was crashed with this assertion failure: assertion failed: comm_epoll.cc:139: "fd >= 0" actually squid tries to restart itself a few times with the same error and finally giving up! I also tested recent release 3.1.6 but result was same. I also tested this on linux kernels 2.6.32 and 21.6.31 with same result! Finally I downgraded squid to version 3.1.1 and the problem disappeared! I'm using Gentoo and squid configuration is: configure options: '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--sysconfdir=/etc/squid' '--libexecdir=/usr/libexec/squid' '--localstatedir=/var' '--datadir=/usr/share/squid' '--with-default-user=squid' '--enable-auth=basic,digest,negotiate,ntlm' '--enable-removal-policies=lru,heap' '--enable-digest-auth-helpers=password' '--enable-basic-auth-helpers=DB,PAM,getpwnam,NCSA,MSNT' '--enable-external-acl-helpers=ip_user,session,unix_group' '--enable-ntlm-auth-helpers=fakeauth' '--enable-negotiate-auth-helpers=' '--enable-useragent-log' '--enable-cache-digests' '--enable-delay-pools' '--enable-referer-log' '--enable-arp-acl' '--with-large-files' '--with-filedescriptors=8192' '--disable-caps' '--enable-snmp' '--enable-ssl' '--disable-icap-client' '--enable-storeio=ufs,diskd,aufs' '--enable-linux-netfilter' '--enable-epoll' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CC=i686-pc-linux-gnu-gcc' 'CFLAGS=-O2 -march=i686 -pipe' 'LDFLAGS=-Wl,-O1' 'CXXFLAGS=-O2 -march=i686 -pipe' --with-squid=/usr/src/squid-3.1.1 --enable-ltdl-convenience would you please check what cause the crashes in these two new releases. Thanks and regards, ARAB
With comm_poll some error.
With 2.6.35 some error.
We observed this assertion on a site running with direct, and NTLM authentication. Squid version 3.1.6 + 1.1 replies + chunked replies. log line from cache.log is this: 2010/08/19 08:58:50| assertion failed: comm_epoll.cc:139: "fd >= 0"
I have replicated and fixed the problem I experienced, see patch in bug 3021. Please verify that your issues are resolved by the same patch.
It seems that with a patch from bug 3021 my problem has disappeared.
Good to hear the patch works, closing as dup of the other ticket. *** This bug has been marked as a duplicate of bug 3021 ***