Varnish on a pi

Joshua Small JSmall at daraco.com.au
Wed Jan 23 03:26:19 CET 2013


Hey guys,

I've spent a lot of time working on this issue following my post on misc:

https://www.varnish-cache.org/lists/pipermail/varnish-misc/2013-January/022706.html

Two things have come out of this.

The first is that, I've noted in multiple attempts at fixing this issue, every "make install" clobbers the default.vcl. I believe this is contrary to many standard applications, for example, a typical user might "make install" Apache and their httpd.conf is not clobbered. I've written a patch for this I would like to be considered. This is at the bottom of this email.

Expanding on the bigger (and imo, more important) issue, I've had an independent pi user confirm the findings I posted to misc, which really feels like a development bug, hence this post. To avoid a full review of that posting, long story short is that on the pi hardware (armv61):

Default configuration= segfault on startup
Compile with -enable-diagnostics = successful operation

I've spent a lot of time trying to track anything that this flag does. A grep for -DDIAGNOSTICS only seems to turn up the CFLAGS declaration in Makefiles, so I'm still working on what diagnostics it produces. Any assistance you can offer as to how I could debug this issue further would be appreciated.


diff --git a/etc/Makefile.am b/etc/Makefile.am
index e724822..909c35f 100644
--- a/etc/Makefile.am
+++ b/etc/Makefile.am
@@ -5,6 +5,16 @@ DISTCLEANFILES = default.vcl

dist_varnishconf_DATA = default.vcl

+install-exec-local:
+       @if test -f "$(dist_varnishconf_DATA)"; then \
+               echo "$@ will not overwrite existing $(DESTDIR)$(dist_varnishcon
+       else \
+               echo " $(MKDIR_P) '$(DESTDIR)$(varnishconfdir)'"; \
+               $(MKDIR_P) "$(DESTDIR)$(varnishconfdir)" || exit 1; \
+               echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(varnishconfdir)'"; \
+               $(INSTALL_DATA) $$files "$(DESTDIR)$(varnishconfdir)" || exit $$
+       fi
+
default.vcl:   $(top_srcdir)/bin/varnishd/default.vcl
        ( printf "This is a basic VCL configuration file for varnish.  See the v
man page for details on VCL syntax and semantics.\n\
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130123/8da02e31/attachment.html>


More information about the varnish-dev mailing list