[squid-users] Squid 3.4.11 crashing on FreeBSD 10 (64-bit)

Odhiambo Washington odhiambo at gmail.com
Tue Jan 20 17:11:25 UTC 2015


On 20 January 2015 at 16:16, Odhiambo Washington <odhiambo at gmail.com> wrote:

>
>
> On 20 January 2015 at 15:17, Amos Jeffries <squid3 at treenet.co.nz> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I have just fixed a few clang detected build errors and 3.5 is now
>> building cleanly here on FreeBSD 10 with the default Clang.
>>
>> Please try to build the latest 3.5 snapshot (which will be labeled
>> r13735 or higher). It should build fine with either the system default
>> clang compiler or your GCC 4.9 install, but not with the system
>> default GCC 4.4.
>>
>>
> I will check on that.
> However, I earlier today managed to compile 3.5.0.4 using clang. The
> problem I have been facing now is about 'forwarding loop detected' over and
> over... checking on my PF rules hasn't yielded anything.
> And I am now wondering why 3.4.11 wasn't seeing these forwarding loops..
>
>
>
>> > (gdb) bt #0  0x0000000803a30469 in swapcontext () from
>> > /lib/libthr.so.3 #1  0x0000000803a30062 in sigaction () from
>> > /lib/libthr.so.3 #2  <signal handler called> #3  0x0000000803d6b04a
>> > in kevent () from /lib/libc.so.7 #4  0x000000000086335c in
>> > Comm::DoSelect (msec=981) at ModKqueue.cc:264
>>
>>
>> Looks like a bug in the system threading library. Though why Squid is
>> triggering it is unknown. Maybe related to the two GCC versions with
>> different libc perhapse?
>>
>
> I only have one gcc version on my system -gcc49
>
>
>
root at mail:/home/wash/ILI/Squid/3.5/squid-3.5.1-20150120-r13736 #
/opt/squid35/sbin/squid -v
Squid Cache: Version 3.5.1-20150120-r13736
Service Name: squid
configure options:  '--prefix=/opt/squid35' '--enable-removal-policies=lru
heap' '--disable-epoll' '--enable-auth' '--enable-auth-basic=DB NCSA PAM
PAM POP3 SSPI' '--enable-external-acl-helpers=session unix_group
file_userip' '--enable-auth-negotiate=kerberos' '--with-pthreads'
'--enable-storeio=ufs diskd rock aufs' '--enable-delay-pools'
'--enable-snmp' '--with-openssl=/usr' '--enable-forw-via-db'
'--enable-cache-digests' '--enable-wccpv2'
'--enable-follow-x-forwarded-for' '--with-large-files'
'--enable-large-cache-files' '--enable-esi' '--enable-kqueue'
'--enable-icap-client' '--enable-kill-parent-hack' '--enable-ssl'
'--enable-leakfinder' '--enable-ssl-crtd' '--enable-url-rewrite-helpers'
'--enable-xmalloc-statistics' '--enable-stacktraces' '--enable-zph-qos'
'--enable-eui' '--enable-pf-transparent' 'CC=clang' 'CXX=clang++'
--enable-ltdl-convenience


1. I see these in cache.log


2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| WARNING: no_suid: setuid(0): (1) Operation not
permitted
2015/01/20 20:00:18| Logfile: opening log
stdio:/usr/local/squid/logs/access.log


But then I have no joy because of "2015/01/20 20:03:55| WARNING: Forwarding
loop detected for:.."

I am almost thinking FreeBSD 9.3 would be better... I haven't seen so much
grief.


ADDENDUM:
When compiled with --enable-ipf-transparent, it fails to compile as follows:



root at mail:/home/wash/ILI/Squid/3.5/squid-3.5.1-20150120-r13736 # make
Making all in compat
depbase=`echo assert.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh
../libtool  --tag=CXX    --mode=compile clang++ -DHAVE_CONFIG_H    -I..
-I../include  -I../lib -I../src  -I../include  -I/usr/include
 -I/usr/include  -I../libltdl -I/usr/include -I/usr/local/include/libxml2
 -I/usr/local/include/libxml2  -Werror -Qunused-arguments  -D_REENTRANT -g
-O2 -march=native -I/usr/local/include -MT assert.lo -MD -MP -MF
$depbase.Tpo -c -o assert.lo assert.cc && mv -f $depbase.Tpo
$depbase.Plolibtool: compile:  clang++ -DHAVE_CONFIG_H -I.. -I../include
-I../lib -I../src -I../include -I/usr/include -I/usr/include -I../libltdl
-I/usr/include -I/usr/local/include/libxml2 -I/usr/local/include/libxml2
-Werror -Qunused-arguments -D_REENTRANT -g -O2 -march=native
-I/usr/local/include -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c
assert.cc  -fPIC -DPIC -o .libs/assert.o
In file included from assert.cc:9:
In file included from ../include/squid.h:43:
../compat/compat.h:49:57: error: expected value in expression
#if IPF_TRANSPARENT && USE_SOLARIS_IPFILTER_MINOR_T_HACK
                                                        ^
1 error generated.
*** Error code 1

Stop.
make[1]: stopped in
/usr/home/wash/ILI/Squid/3.5/squid-3.5.1-20150120-r13736/compat
*** Error code 1

Stop.
make: stopped in /usr/home/wash/ILI/Squid/3.5/squid-3.5.1-20150120-r13736







-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
"I can't hear you -- I'm using the scrambler."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150120/102365b8/attachment.html>


More information about the squid-users mailing list