Bug 3009 - epoll fails
Summary: epoll fails
Status: RESOLVED DUPLICATE of bug 3021
Alias: None
Product: Squid
Classification: Unclassified
Component: other (show other bugs)
Version: 3.1
Hardware: PC Linux: Gentoo
: P2 blocker
Assignee: SQUID BUGS ALIAS
URL:
Depends on:
Blocks:
 
Reported: 2010-08-08 20:36 UTC by Mohamad H. ARAB
Modified: 2010-08-23 00:59 UTC (History)
2 users (show)

See Also:
Browser: ---
Fixed Versions:
Needs:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mohamad H. ARAB 2010-08-08 20:36:55 UTC
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
Comment 1 nwhisper@gmail.com 2010-08-10 02:18:20 UTC
With comm_poll some error.
Comment 2 nwhisper@gmail.com 2010-08-10 02:32:23 UTC
With 2.6.35 some error.
Comment 3 Stephen Thorne 2010-08-18 17:43:54 UTC
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"
Comment 4 Stephen Thorne 2010-08-18 22:22:17 UTC
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.
Comment 5 nwhisper@gmail.com 2010-08-23 00:45:37 UTC
It seems that with a patch from bug 3021 my problem has disappeared.
Comment 6 Stephen Thorne 2010-08-23 00:59:57 UTC
Good to hear the patch works, closing as dup of the other ticket.

*** This bug has been marked as a duplicate of bug 3021 ***