Varnish crash (SIGABRT) about every 10 mins

Gea-Suan Lin gslin at gslin.org
Thu Nov 8 23:07:30 CET 2007


On Thu, Nov 08, 2007 at 10:57:04PM +0100, Dag-Erling Sm鷨grav wrote:
> This stack frame is of no interest, it is just the thread that
> happened to be running when the SIGKILL was delivered.  What would be
> helpful at this point is "i thr".
> 
> As previously mentioned, this will be a lot easier if you modify
> mgt_child.c to send SIGQUIT instead of SIGKILL so you get a core dump.

Okay. I'll run the following version:

gslin at testphp [~/svn/varnish] (6:02) svn up
At revision 2245.
gslin at testphp [~/svn/varnish] (6:02) svn diff
Index: varnish-cache/bin/varnishd/mgt_child.c
===================================================================
--- varnish-cache/bin/varnishd/mgt_child.c      (revision 2245)
+++ varnish-cache/bin/varnishd/mgt_child.c      (working copy)
@@ -114,7 +114,7 @@
                return (1);
        if (child_pid > 0 && mgt_cli_askchild(NULL, NULL, "ping\n")) {
                fprintf(stderr, "Child not responding to ping\n");
-               kill(child_pid, SIGKILL);
+               kill(child_pid, SIGQUIT);
        }
        return (0);
 }
gslin at testphp [~/svn/varnish] (6:02) svn export varnish-cache /tmp/varnish-cache
Export complete.
gslin at testphp [/tmp/varnish-cache] (6:03) ./autogen.sh
+ aclocal
+ libtoolize --copy --force
+ autoheader
+ automake --add-missing --copy --foreign
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
bin/varnishadm/Makefile.am: installing `./compile'
bin/varnishadm/Makefile.am: installing `./depcomp'
+ autoconf
gslin at testphp [/tmp/varnish-cache] (6:03) ./configure --prefix=/home/service/varnish
(lots of msgs)
gslin at testphp [/tmp/varnish-cache] (6:04) make
(lots of msgs)
gslin at testphp [/tmp/varnish-cache] (6:05) sudo make install clean

And,

gslin at testphp [/home/service/varnish/sbin] (6:06) ldd varnishd
varnishd:
        libvarnish.so.0 => /home/service/varnish/lib/libvarnish.so.0 (0x800664000)
        libvarnishcompat.so.0 => /home/service/varnish/lib/libvarnishcompat.so.0 (0x80076b000)
        libvcl.so.0 => /home/service/varnish/lib/libvcl.so.0 (0x80086c000)
        libthr.so.2 => /usr/lib/libthr.so.2 (0x80097e000)
        libm.so.4 => /lib/libm.so.4 (0x800a94000)
        libc.so.6 => /lib/libc.so.6 (0x800bb0000)

> BTW, I assume this is all on FreeBSD?  Which version?

gslin at testphp [~] (6:05) uname -a
FreeBSD testphp.pixnet.tw 6.2-STABLE FreeBSD 6.2-STABLE #2: Mon Mar 26 12:20:42 CST 2007     root at tmp1.pixnet.tw:/usr/obj/usr/src/sys/BLOG  amd64
gslin at testphp [~] (6:05) cat /etc/libmap.conf
libc_r.so               libthr.so
libc_r.so.6             libthr.so.2
libpthread.so           libthr.so
libpthread.so.2         libthr.so.2

-- 
* Gea-Suan Lin  (public key: Using https://keyserver.pgp.com/ to search)
* If you cannot convince them, confuse them.           -- Harry S Truman



More information about the varnish-misc mailing list