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

Yuri Voinov yvoinov at gmail.com
Mon Jan 19 16:57:44 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
The problem can be anywhere in self-made software.

In libc.so. In ANY of system or related libraries.

Debugging core or crash dump is the single way to know, whats wrong.

19.01.2015 22:51, Odhiambo Washington пишет:
>
>
> On 19 January 2015 at 19:11, Amos Jeffries <squid3 at treenet.co.nz
<mailto:squid3 at treenet.co.nz>> wrote:
>
>     -----BEGIN PGP SIGNED MESSAGE-----
>     Hash: SHA1
>
>     On 20/01/2015 4:20 a.m., Odhiambo Washington wrote:
>     > On 19 January 2015 at 17:55, Yuri Voinov wrote:
>     >
>     >> Your use CLang. This is the single point.
>     >>
>     >> You can get any effects. Looks like this is not Squid problem.
>     >> Just system.
>     >>
>     >
>     >
>     > Are you insinuating that Squid-3.x is not supposed to run on
>     > FreeBSD 10 because of the CLANG thing?
>     >
>
>     We build test Squid on Clang for FreeBSD 10 (no longer GCC). So it
>     should build and run fine. (Though our FreeBSD 10 tests are failing on
>     man(8) page creation recently).
>
>
> 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!
> 
>
>
>     Your build parameter 'CPP=clang-cpp' seems unusual. We do not use/need
>     that for the integration testing builds. Just CC=clang CXX=clang++.
>     The toolchain naturally takes care of the rest.
>
>
> A relic I forgot in my make.conf while struggling with FreeBSD 10.
Thanks for catching that.
>
> I removed it and recompiled:
>
> root at mail:/usr/ports/www/squid # squid -v
> Squid Cache: Version 3.4.11
> 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' '
> --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
> 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
>
> However this has not changed the continuous crashing I am seeing cache.log
>
>
> 
>
>
>     Only the FreeBSD 9.x have clang build issues from the GCC->clang
>     transitional bugs coming at it from all sides (kernel, compiler, and
>     Squid).
>
>
>
>     > Do you have a little howto on how I can compile it using gcc (I
>     > have gcc49 installed) ?
>
>     At the simplest:
>
>      mkdir _build && \
>      cd _build && \
>      ../configure && \
>      make install
>
>     The squid default paths etc were all designed for FreeBSD environment.
>
>
> That has failed to work for me on this FreeBSD 10.
>
>
>     >
>     > This squid is running, disobeying my time-based ACLs, crashing as
>     > seen in cache.log and ... just annoying but I need a proxy by all
>     > means! It kinda puts me in the proverbial between a rock & hard
>     > place.
>     >
>
>
>     If you are using diskd cache_dir on FreeBSD 10 there are known crashes
>     from that in 9/10. Until that is figured out shifting to ufs or aufs
>     is best.
>
>
>
> I use aufs.
>
> 
>
>
>     Since it is a crash, backtrace is critical to figuring out what is
>     actually going on.
>
>
> Does the following help?
>
> Script started on Mon Jan 19 19:49:30 2015
> root at 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 at mail:/usr/local/squid/logs # exit
> exit
>
>
>
>
>
>
>
> --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254733744121/+254722743223
> "I can't hear you -- I'm using the scrambler."
>
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBAgAGBQJUvTeGAAoJENNXIZxhPexGsSsH/3pbmsRSMxhMAGHEACiYSWHE
j1nXWxyMs7AzX6XEHnCRpLef8sIV+YiTALHvIoyOMhR+LYfZBRrKLCvkr/i38vjR
ITS288ZwCIXxggDL+ilPnEqZ9riyObxyyvlMD9YpJkuIiip/zkPguw6hzj6uNLsS
BAkYBsSM6TvxeYkn27kctupSoc7wXj18zOiFF9YNjcoxc9nCbxiFWbZLvrdXOoKE
OccTzmlGXlgrQxdylOeBUcXnMa9dL/I1Ousxc9DbgDLt1v46XfIrFBf8IQJmnKtr
6KUgLql97ahsFwqUf3h33xgOvlNGwzRTAGNfvktaZHFwkFlmHqll1Z+nvaFrp2s=
=PbnD
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150119/3ba03c47/attachment-0001.html>


More information about the squid-users mailing list