]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
More stack when asan is used 9854/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 11 Dec 2020 12:15:47 +0000 (13:15 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 11 Dec 2020 12:15:47 +0000 (13:15 +0100)
pdns/pdns_recursor.cc

index 0e465b279088d8b39e1408499cb38aac7d5d1d9e..9f484a7ec02a6ab8b6504676fbd0687a102a11e6 100644 (file)
@@ -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";