<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA1 <br>
<br>
The problem can be anywhere in self-made software.<br>
<br>
In libc.so. In ANY of system or related libraries.<br>
<br>
Debugging core or crash dump is the single way to know, whats wrong.<br>
<br>
19.01.2015 22:51, Odhiambo Washington пишет:<br>
<span style="white-space: pre;">><br>
><br>
> On 19 January 2015 at 19:11, Amos Jeffries
<<a class="moz-txt-link-abbreviated" href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a> <a class="moz-txt-link-rfc2396E" href="mailto:squid3@treenet.co.nz"><mailto:squid3@treenet.co.nz></a>>
wrote:<br>
><br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
><br>
> On 20/01/2015 4:20 a.m., Odhiambo Washington wrote:<br>
> > 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>
> 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>
><br>
><br>
> 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!<br>
> <br>
><br>
><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>
><br>
><br>
> A relic I forgot in my make.conf while struggling with
FreeBSD 10. Thanks for catching that.<br>
><br>
> I removed it and recompiled:<br>
><br>
> root@mail:/usr/ports/www/squid # squid -v<br>
> Squid Cache: Version 3.4.11<br>
> 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' '<br>
> --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<br>
> 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<br>
><br>
> However this has not changed the continuous crashing I am
seeing cache.log<br>
><br>
><br>
> <br>
><br>
><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).<br>
><br>
><br>
><br>
> > Do you have a little howto on how I can compile it
using gcc (I<br>
> > have gcc49 installed) ?<br>
><br>
> 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>
><br>
><br>
> That has failed to work for me on this FreeBSD 10. <br>
><br>
><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>
> 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>
><br>
><br>
><br>
> I use aufs.<br>
><br>
> <br>
><br>
><br>
> Since it is a crash, backtrace is critical to figuring
out what is<br>
> actually going on.<br>
><br>
><br>
> Does the following help?<br>
><br>
> Script started on Mon Jan 19 19:49:30 2015<br>
> root@mail:/usr/local/squid/logs # gdb /usr/local/sbin/squid
squid.core<br>
> GNU gdb 6.1.1 [FreeBSD]<br>
> Copyright 2004 Free Software Foundation, Inc.<br>
> GDB is free software, covered by the GNU General Public
License, and you are<br>
> welcome to change it and/or distribute copies of it under
certain conditions.<br>
> Type "show copying" to see the conditions.<br>
> There is absolutely no warranty for GDB. Type "show
warranty" for details.<br>
> This GDB was configured as "amd64-marcel-freebsd"...<br>
> Core was generated by `squid'.<br>
> Program terminated with signal 11, Segmentation fault.<br>
> Reading symbols from /usr/lib/librt.so.1...done.<br>
> Loaded symbols for /usr/lib/librt.so.1<br>
> Reading symbols from /usr/local/lib/libnettle.so.4...done.<br>
> Loaded symbols for /usr/local/lib/libnettle.so.4<br>
> Reading symbols from /usr/lib/libssl.so.7...done.<br>
> Loaded symbols for /usr/lib/libssl.so.7<br>
> Reading symbols from /usr/lib/libgssapi.so.10...done.<br>
> Loaded symbols for /usr/lib/libgssapi.so.10<br>
> Reading symbols from /usr/lib/libgssapi_krb5.so.10...done.<br>
> Loaded symbols for /usr/lib/libgssapi_krb5.so.10<br>
> Reading symbols from /usr/lib/libheimntlm.so.11...done.<br>
> Loaded symbols for /usr/lib/libheimntlm.so.11<br>
> Reading symbols from /usr/lib/libkrb5.so.11...done.<br>
> Loaded symbols for /usr/lib/libkrb5.so.11<br>
> Reading symbols from /usr/lib/libhx509.so.11...done.<br>
> Loaded symbols for /usr/lib/libhx509.so.11<br>
> Reading symbols from /usr/lib/libcom_err.so.5...done.<br>
> Loaded symbols for /usr/lib/libcom_err.so.5<br>
> Reading symbols from /lib/libcrypto.so.7...done.<br>
> Loaded symbols for /lib/libcrypto.so.7<br>
> Reading symbols from /usr/lib/libasn1.so.11...done.<br>
> Loaded symbols for /usr/lib/libasn1.so.11<br>
> Reading symbols from /usr/lib/libwind.so.11...done.<br>
> Loaded symbols for /usr/lib/libwind.so.11<br>
> Reading symbols from /usr/lib/libheimbase.so.11...done.<br>
> Loaded symbols for /usr/lib/libheimbase.so.11<br>
> Reading symbols from /usr/lib/libroken.so.11...done.<br>
> Loaded symbols for /usr/lib/libroken.so.11<br>
> Reading symbols from /lib/libcrypt.so.5...done.<br>
> Loaded symbols for /lib/libcrypt.so.5<br>
> Reading symbols from /lib/libm.so.5...done.<br>
> Loaded symbols for /lib/libm.so.5<br>
> Reading symbols from /usr/lib/libc++.so.1...done.<br>
> Loaded symbols for /usr/lib/libc++.so.1<br>
> Reading symbols from /lib/libcxxrt.so.1...done.<br>
> Loaded symbols for /lib/libcxxrt.so.1<br>
> Reading symbols from /lib/libgcc_s.so.1...done.<br>
> Loaded symbols for /lib/libgcc_s.so.1<br>
> Reading symbols from /lib/libthr.so.3...done.<br>
> Loaded symbols for /lib/libthr.so.3<br>
> Reading symbols from /lib/libc.so.7...done.<br>
> Loaded symbols for /lib/libc.so.7<br>
> Reading symbols from
/usr/lib/private/libheimipcc.so.11...done.<br>
> Loaded symbols for /usr/lib/private/libheimipcc.so.11<br>
> Reading symbols from /libexec/ld-elf.so.1...done.<br>
> Loaded symbols for /libexec/ld-elf.so.1<br>
> #0 0x0000000803a30469 in swapcontext () from
/lib/libthr.so.3<br>
> [New Thread 804ff5000 (LWP 100336/squid)]<br>
> [New Thread 804ff4c00 (LWP 100335/squid)]<br>
> [New Thread 804ff4800 (LWP 100334/squid)]<br>
> [New Thread 804ff4400 (LWP 100333/squid)]<br>
> [New Thread 804ff4000 (LWP 100332/squid)]<br>
> [New Thread 804ff3c00 (LWP 100331/squid)]<br>
> [New Thread 804ff3800 (LWP 100330/squid)]<br>
> [New Thread 804ff3400 (LWP 100329/squid)]<br>
> [New Thread 804ff3000 (LWP 100328/squid)]<br>
> [New Thread 804ff2c00 (LWP 100327/squid)]<br>
> [New Thread 804ff2800 (LWP 100326/squid)]<br>
> [New Thread 804ff2400 (LWP 100325/squid)]<br>
> [New Thread 804ff2000 (LWP 100324/squid)]<br>
> [New Thread 804ff1c00 (LWP 100323/squid)]<br>
> [New Thread 804ff1800 (LWP 100322/squid)]<br>
> [New Thread 804ff1400 (LWP 100321/squid)]<br>
> [New Thread 804806400 (LWP 100230/squid)]<br>
> (gdb) bt<br>
> #0 0x0000000803a30469 in swapcontext () from
/lib/libthr.so.3<br>
> #1 0x0000000803a30062 in sigaction () from /lib/libthr.so.3<br>
> #2 <signal handler called><br>
> #3 0x0000000803d6b04a in kevent () from /lib/libc.so.7<br>
> #4 0x000000000086335c in Comm::DoSelect (msec=981) at
ModKqueue.cc:264<br>
> #5 0x00000000007eca54 in CommSelectEngine::checkEvents
(this=0x7fffffffe970, timeout=981) at comm.cc:2058<br>
> #6 0x000000000060795a in EventLoop::checkEngine
(this=0x7fffffffe990, engine=0x7fffffffe970, primary=true) at
EventLoop.cc:55<br>
> #7 0x0000000000607cd9 in EventLoop::runOnce
(this=0x7fffffffe990) at EventLoop.cc:129<br>
> #8 0x0000000000607b62 in EventLoop::run
(this=0x7fffffffe990) at EventLoop.cc:99<br>
> #9 0x00000000006a75c6 in SquidMain (argc=2,
argv=0x7fffffffebb8) at main.cc:1528<br>
> #10 0x00000000006a69ea in SquidMainSafe (argc=2,
argv=0x7fffffffebb8) at main.cc:1260<br>
> #11 0x00000000006a69c2 in main (argc=2, argv=0x7fffffffebb8)
at main.cc:1252<br>
> (gdb) quit<br>
> root@mail:/usr/local/squid/logs # exit<br>
> exit<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> -- <br>
> Best regards,<br>
> Odhiambo WASHINGTON,<br>
> Nairobi,KE<br>
> +254733744121/+254722743223<br>
> "I can't hear you -- I'm using the scrambler."<br>
><br>
><br>
> _______________________________________________<br>
> squid-users mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
> <a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a></span><br>
<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2
<br>
<br>
iQEcBAEBAgAGBQJUvTeGAAoJENNXIZxhPexGsSsH/3pbmsRSMxhMAGHEACiYSWHE
<br>
j1nXWxyMs7AzX6XEHnCRpLef8sIV+YiTALHvIoyOMhR+LYfZBRrKLCvkr/i38vjR
<br>
ITS288ZwCIXxggDL+ilPnEqZ9riyObxyyvlMD9YpJkuIiip/zkPguw6hzj6uNLsS
<br>
BAkYBsSM6TvxeYkn27kctupSoc7wXj18zOiFF9YNjcoxc9nCbxiFWbZLvrdXOoKE
<br>
OccTzmlGXlgrQxdylOeBUcXnMa9dL/I1Ousxc9DbgDLt1v46XfIrFBf8IQJmnKtr
<br>
6KUgLql97ahsFwqUf3h33xgOvlNGwzRTAGNfvktaZHFwkFlmHqll1Z+nvaFrp2s=
<br>
=PbnD
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</body>
</html>