From 5c8bab63c22dde7919d558afb502ff71d9b828b0 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 11 Dec 2020 13:15:47 +0100 Subject: [PATCH] More stack when asan is used --- pdns/pdns_recursor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 0e465b2790..9f484a7ec0 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -5242,7 +5242,12 @@ int main(int argc, char **argv) int ret = EXIT_SUCCESS; try { +#if __SANITIZE_ADDRESS__ + // Asan needs more stack + ::arg().set("stack-size","stack size per mthread")="400000"; +#else ::arg().set("stack-size","stack size per mthread")="200000"; +#endif ::arg().set("soa-minimum-ttl","Don't change")="0"; ::arg().set("no-shuffle","Don't change")="off"; ::arg().set("local-port","port to listen on")="53"; -- 2.47.2