MacOS has even stricter stack limits in catalina.
authorYehowshua Immanuel <programmed4jesus@gmail.com>
Thu, 4 Jun 2020 18:01:56 +0000 (14:01 -0400)
committerGitHub <noreply@github.com>
Thu, 4 Jun 2020 18:01:56 +0000 (14:01 -0400)
Invoking sby in macOS Catalina fails because of bizarre stack limits in Catalina.

backends/smt2/smtio.py

index 9f7c8c6d98fa868fa9cb742fa2e6b8aa82c378d0..9d03e162eec74f152da4ce45fdc1a27d49bc6b59 100644 (file)
@@ -39,7 +39,7 @@ if os.name == "posix":
         smtio_stacksize = 128 * 1024 * 1024
         if os.uname().sysname == "Darwin":
             # MacOS has rather conservative stack limits
-            smtio_stacksize = 16 * 1024 * 1024
+            smtio_stacksize = 16 * 1024 * 512
         if current_rlimit_stack[1] != resource.RLIM_INFINITY:
             smtio_stacksize = min(smtio_stacksize, current_rlimit_stack[1])
         if current_rlimit_stack[0] < smtio_stacksize: