<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 19 January 2015 at 19:11, Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</span>On 20/01/2015 4:20 a.m., Odhiambo Washington wrote:<br>
<span>> On 19 January 2015 at 17:55, Yuri Voinov wrote:<br>
><br>
>> Your use CLang. This is the single point.<br>
>><br>
>> You can get any effects. Looks like this is not Squid problem.<br>
>> Just system.<br>
>><br>
><br>
><br>
> Are you insinuating that Squid-3.x is not supposed to run on<br>
> FreeBSD 10 because of the CLANG thing?<br>
><br>
<br>
</span>We build test Squid on Clang for FreeBSD 10 (no longer GCC). So it<br>
should build and run fine. (Though our FreeBSD 10 tests are failing on<br>
man(8) page creation recently).<br></blockquote><div><br></div><div>In the FreeBSD 10 ports, there is still 3.4.10, but I changed the version to 3.4.11 and it did not grok!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Your build parameter 'CPP=clang-cpp' seems unusual. We do not use/need<br>
that for the integration testing builds. Just CC=clang CXX=clang++.<br>
The toolchain naturally takes care of the rest.<br></blockquote><div><br></div><div>A relic I forgot in my make.conf while struggling with FreeBSD 10. Thanks for catching that.</div><div><br></div><div>I removed it and recompiled:</div><div><br></div><div><div>root@mail:/usr/ports/www/squid # squid -v</div><div>Squid Cache: Version 3.4.11</div><div>configure options: '--with-default-user=squid' '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/var' '--sysconfdir=/usr/local/etc/squid' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid/squid.pid' '--with-swapdir=/var/squid/cache' '--enable-auth' '--enable-build-info' '--enable-loadable-modules' '--enable-removal-policies=lru heap' '--disable-epoll' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-translation' '--disable-arch-native' '--enable-eui' '</div><div>--enable-cache-digests' '--enable-delay-pools' '--disable-ecap' '--disable-esi' '--enable-follow-x-forwarded-for' '--enable-htcp' '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' '--enable-ipv6' '--enable-kqueue' '--with-large-files' '--enable-http-violations' '--enable-snmp ' '--enable-ssl' '--enable-ssl-crtd' '--disable-stacktraces' '--disable-ipf-transparent' '--disable-ipfw-transparent' '--enable-pf-transparent' ' --with-nat-devpf' '--enable-forw-via-db' '--enable-wccp' '--enable-wccpv2' '--enable-auth-basic=DB MSNT MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam NIS' '--enable-auth-digest=file' '--enable-external-acl-helpers=file_userip time_quota unix_group SQL_session' '--enable-auth-negotia</div><div>te=kerberos wrapper' '--enable-auth-ntlm=fake smb_lm' '--enable-storeio=ufs aufs diskd' '--enable-disk-io=AIO Blocking IpcIo Mmapped DiskThreads DiskDaemon' '--enable-log-daemon-helpers=file' '--enable-url-rewrite-helpers=fake' '--enable-storeid-rewrite-helpers=file' '--with-openssl=/usr' '--disable-optimizations' '--enable-debug-cbdata' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd10.1' 'build_alias=amd64-portbld-freebsd10.1' 'CC=cc' 'CFLAGS=-pipe -march=native -I/usr/include -g -fstack-protector -fno-strict-aliasing' 'LDFLAGS= -pthread -Wl,-rpath,/usr/lib:/usr/local/lib -L/usr/lib -fstack-protector' 'LIBS=' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-pipe -march=native -I/usr/include -g -fstack-protector -fno-strict-aliasing -Wno-unused-private-field' 'CPP=cpp' --enable-ltdl-convenience</div></div><div><br></div><div>However this has not changed the continuous crashing I am seeing cache.log</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Only the FreeBSD 9.x have clang build issues from the GCC->clang<br>
transitional bugs coming at it from all sides (kernel, compiler, and<br>
Squid).</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span><br>
<br>
> Do you have a little howto on how I can compile it using gcc (I<br>
> have gcc49 installed) ?<br>
<br>
</span>At the simplest:<br>
<br>
mkdir _build && \<br>
cd _build && \<br>
../configure && \<br>
make install<br>
<br>
The squid default paths etc were all designed for FreeBSD environment.<br></blockquote><div><br></div><div>That has failed to work for me on this FreeBSD 10. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span><br>
><br>
> This squid is running, disobeying my time-based ACLs, crashing as<br>
> seen in cache.log and ... just annoying but I need a proxy by all<br>
> means! It kinda puts me in the proverbial between a rock & hard<br>
> place.<br>
><br>
<br>
<br>
</span>If you are using diskd cache_dir on FreeBSD 10 there are known crashes<br>
from that in 9/10. Until that is figured out shifting to ufs or aufs<br>
is best.<br></blockquote><div><br></div><div><br></div><div>I use aufs.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Since it is a crash, backtrace is critical to figuring out what is<br>
actually going on.<br></blockquote><div><br></div><div>Does the following help?</div><div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Script started on Mon Jan 19 19:49:30 2015
root@mail:/usr/local/squid/logs # gdb /usr/local/sbin/squid squid.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `squid'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/local/lib/libnettle.so.4...done.
Loaded symbols for /usr/local/lib/libnettle.so.4
Reading symbols from /usr/lib/libssl.so.7...done.
Loaded symbols for /usr/lib/libssl.so.7
Reading symbols from /usr/lib/libgssapi.so.10...done.
Loaded symbols for /usr/lib/libgssapi.so.10
Reading symbols from /usr/lib/libgssapi_krb5.so.10...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.10
Reading symbols from /usr/lib/libheimntlm.so.11...done.
Loaded symbols for /usr/lib/libheimntlm.so.11
Reading symbols from /usr/lib/libkrb5.so.11...done.
Loaded symbols for /usr/lib/libkrb5.so.11
Reading symbols from /usr/lib/libhx509.so.11...done.
Loaded symbols for /usr/lib/libhx509.so.11
Reading symbols from /usr/lib/libcom_err.so.5...done.
Loaded symbols for /usr/lib/libcom_err.so.5
Reading symbols from /lib/libcrypto.so.7...done.
Loaded symbols for /lib/libcrypto.so.7
Reading symbols from /usr/lib/libasn1.so.11...done.
Loaded symbols for /usr/lib/libasn1.so.11
Reading symbols from /usr/lib/libwind.so.11...done.
Loaded symbols for /usr/lib/libwind.so.11
Reading symbols from /usr/lib/libheimbase.so.11...done.
Loaded symbols for /usr/lib/libheimbase.so.11
Reading symbols from /usr/lib/libroken.so.11...done.
Loaded symbols for /usr/lib/libroken.so.11
Reading symbols from /lib/libcrypt.so.5...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/lib/libc++.so.1...done.
Loaded symbols for /usr/lib/libc++.so.1
Reading symbols from /lib/libcxxrt.so.1...done.
Loaded symbols for /lib/libcxxrt.so.1
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/lib/private/libheimipcc.so.11...done.
Loaded symbols for /usr/lib/private/libheimipcc.so.11
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000803a30469 in swapcontext () from /lib/libthr.so.3
[New Thread 804ff5000 (LWP 100336/squid)]
[New Thread 804ff4c00 (LWP 100335/squid)]
[New Thread 804ff4800 (LWP 100334/squid)]
[New Thread 804ff4400 (LWP 100333/squid)]
[New Thread 804ff4000 (LWP 100332/squid)]
[New Thread 804ff3c00 (LWP 100331/squid)]
[New Thread 804ff3800 (LWP 100330/squid)]
[New Thread 804ff3400 (LWP 100329/squid)]
[New Thread 804ff3000 (LWP 100328/squid)]
[New Thread 804ff2c00 (LWP 100327/squid)]
[New Thread 804ff2800 (LWP 100326/squid)]
[New Thread 804ff2400 (LWP 100325/squid)]
[New Thread 804ff2000 (LWP 100324/squid)]
[New Thread 804ff1c00 (LWP 100323/squid)]
[New Thread 804ff1800 (LWP 100322/squid)]
[New Thread 804ff1400 (LWP 100321/squid)]
[New Thread 804806400 (LWP 100230/squid)]
(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
#5 0x00000000007eca54 in CommSelectEngine::checkEvents (this=0x7fffffffe970, timeout=981) at comm.cc:2058
#6 0x000000000060795a in EventLoop::checkEngine (this=0x7fffffffe990, engine=0x7fffffffe970, primary=true) at EventLoop.cc:55
#7 0x0000000000607cd9 in EventLoop::runOnce (this=0x7fffffffe990) at EventLoop.cc:129
#8 0x0000000000607b62 in EventLoop::run (this=0x7fffffffe990) at EventLoop.cc:99
#9 0x00000000006a75c6 in SquidMain (argc=2, argv=0x7fffffffebb8) at main.cc:1528
#10 0x00000000006a69ea in SquidMainSafe (argc=2, argv=0x7fffffffebb8) at main.cc:1260
#11 0x00000000006a69c2 in main (argc=2, argv=0x7fffffffebb8) at main.cc:1252
(gdb) quit
root@mail:/usr/local/squid/logs # exit
exit</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre></div><div><br></div><div></div></div><div class="gmail_extra"><br></div><br><br clear="all"><div><br></div>-- <br><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254733744121/+254722743223<br>"I can't hear you -- I'm using the scrambler."<br></div>
</div></div>