Search squid archive

Re: Squid 3.4.11 crashing on FreeBSD 10 (64-bit)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 

20.01.2015 23:11, Odhiambo Washington пишет:
>
>
> On 20 January 2015 at 16:16, Odhiambo Washington <odhiambo@xxxxxxxxx <mailto:odhiambo@xxxxxxxxx>> wrote:
>
>
>
>     On 20 January 2015 at 15:17, Amos Jeffries <squid3@xxxxxxxxxxxxx <mailto:squid3@xxxxxxxxxxxxx>> 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..

May be, It has another configuration? I.e - has not redirectors, or web-server on another port, or another NAT settings?
>
>
>
>
>         > (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@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:.."

Forwarding loop is squid.conf issue, not squid itself. More often you using one port for proxying and web-server on proxy at the same time. Either NAT or squid/web server/redirector(s) program configuration.

>
> 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:

You have not IP Filter in FreeBSD. Just IPFW and PF. AFAIK today IP Filter is absent in xBSD.
>
>
>
> root@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
>                                                         ^

As I said above....
> 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."
>
>
> _______________________________________________
> squid-users mailing list
> squid-users@xxxxxxxxxxxxxxxxxxxxx
> http://lists.squid-cache.org/listinfo/squid-users


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBAgAGBQJUvp5OAAoJENNXIZxhPexGA4wIALBZdePahHHA6VU0KZQtEDA0
mCx6UexDoKg6NBab3hIj0o31B8m9komaRAnHscaCnZtx9z3dBqity4Ej/8wjad0r
8r5W3X9OX4Ppi6Pg92Dz/0MkRJmzHtT9LdsEtdD/wehCT7OUxc0+kiYEPRUSQS0T
K9nEXhqfBmUGwlpEvmaIwLdX351v3fpRMNEBrvd/PShlOVAMdX6++P9R8aXlK8yx
8aMKhy6SIQHttJDXjqB+Jcr6QKzXHujAhZ73ydT4Ar2/Ec1yzYnNpGCdetA8uhoV
7QNpoww9SPdnf1oQOXzaw6XBoczZRc7MXZunFhwnrFVksNutt6eJyBeWId835oQ=
=mSFc
-----END PGP SIGNATURE-----

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux