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\
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to