]> err.no Git - varnish/commit
Bigger hammer: panic() is similar to lbv_assert() but takes a struct sess *
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 15 Nov 2007 16:01:21 +0000 (16:01 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 15 Nov 2007 16:01:21 +0000 (16:01 +0000)
commitd052930abf12365425e1d19e838bb82163470a4e
tree139aac84b0cbf02e7b4af63893bf4ce8627450df
parent8f10e250bd43715dd901c64bdee2ecdf2abdfbe6
Bigger hammer: panic() is similar to lbv_assert() but takes a struct sess *
from which it tries to extract as much useful information as possible before
it croaks.  The corresponding macro is spassert(), which assumes you have
a struct sess *sp in scope.  This should help a lot with bugs like #167
where important information is not available post-mortem (because sp->obj
points into the cache, which is not included in the core dump)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2254 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/Makefile.am
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_panic.c [new file with mode: 0644]