[master] 0a7f23d97 More backtrace levels
Dridi Boukelmoune
dridi at varni.sh
Mon Jun 26 13:44:55 UTC 2023
On Mon, Jun 26, 2023 at 1:41 PM Nils Goroll <nils.goroll at uplex.de> wrote:
>
>
> commit 0a7f23d973c3a9ddde1389bf1c51516da7d935bc
> Author: Nils Goroll <nils.goroll at uplex.de>
> Date: Fri Jun 23 18:02:34 2023 +0200
>
> More backtrace levels
>
> https://gitlab.com/uplex/varnish/slash/-/issues/13 is an example where
> 9 stack frames are used by abort handling alone.
Consider building Varnish --with-unwind then, it goes all the way down.
> diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
> index 7f6d66873..221d9835c 100644
> --- a/bin/varnishd/cache/cache_panic.c
> +++ b/bin/varnishd/cache/cache_panic.c
> @@ -646,11 +646,7 @@ pan_backtrace(struct vsb *vsb)
>
> #else /* WITH_UNWIND */
>
> -#if defined(ENABLE_SANITIZER)
> -# define BACKTRACE_LEVELS 20
> -#else
> -# define BACKTRACE_LEVELS 10
> -#endif
> +#define BACKTRACE_LEVELS 20
>
> static void
> pan_backtrace(struct vsb *vsb)
> _______________________________________________
> varnish-commit mailing list
> varnish-commit at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
More information about the varnish-commit
mailing list