From: Otto Moerbeek Date: Fri, 11 Dec 2020 12:15:47 +0000 (+0100) Subject: More stack when asan is used X-Git-Tag: rec-4.5.0-alpha1~75^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9854%2Fhead;p=thirdparty%2Fpdns.git More stack when asan is used --- 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";