Re: [squid-dev] Squid 3.5.23: crash in Comm::DoSelect

2016-10-20 Thread Alex Rousskov
On 10/19/2016 04:59 AM, oleg gv wrote: > so, it looks like architecture bug that we can't fix, sorry. No problem. Fixing this bug is far from trivial so your decision to leave the bug in place for others to fix is certainly understandable. > but in our case we will try to sync all values to

Re: [squid-dev] Squid 3.5.23: crash in Comm::DoSelect

2016-10-19 Thread oleg gv
SQUID_MAXFD == 256, but Sqid_MaxFD == 4096, and SQUID_MAXFD_LIMIT == 1024 it's like, that some code uses SQUID_MAXFD, and some Squid_MaxFD it's looks that it is supposed, that SQUID_MAXFD always >= Squid_MaxFD, but in main.cc there is possibility to get Squis_MaxFD > SQUID_MAXFD (in getrlimit

Re: [squid-dev] Squid 3.5.23: crash in Comm::DoSelect

2016-10-18 Thread Alex Rousskov
On 10/18/2016 03:44 AM, oleg gv wrote: > nfds=284, so loop ends on 283 and pfds[283] is buggy > I/o module is src/comm/ModPoll.cc, method Comm::DoSelect(int msec) > On stack we see that pfds[SQUID_MAXFD=256], so is less than nfds in loop. > May be malloc nfds? If your maxfd is bigger than

Re: [squid-dev] Squid 3.5.23: crash in Comm::DoSelect

2016-10-18 Thread oleg gv
Yeah,mistaken - squid 3.5.22 nfds=284, so loop ends on 283 and pfds[283] is buggy I/o module is src/comm/ModPoll.cc, method Comm::DoSelect(int msec) On stack we see that pfds[SQUID_MAXFD=256], so is less than nfds in loop. May be malloc nfds? 2016-10-18 8:29 GMT+03:00 Amos Jeffries

Re: [squid-dev] Squid 3.5.23: crash in Comm::DoSelect

2016-10-17 Thread Amos Jeffries
FYI: Squid-3.5.23 does not exist yet. What is the output of "squid -v" ? On 18/10/2016 5:01 a.m., oleg gv wrote: > I have big traffic (at least 100 computers) , and squid often crashed in > Comm::DoSelect(int msec) function. > I have interception mode and NAT redirect. > > In coredump I saw then

[squid-dev] Squid 3.5.23: crash in Comm::DoSelect

2016-10-17 Thread oleg gv
I have big traffic (at least 100 computers) , and squid often crashed in Comm::DoSelect(int msec) function. I have interception mode and NAT redirect. In coredump I saw then bug is in next fragment of code: 446│ for (size_t loopIndex = 0; loopIndex < nfds; ++loopIndex) { 447│