> Bus error
> test-immutable.sh: test case 2 failed
> Bus error
> test-immutable.sh: test case 3 failed
> FAIL test-immutable.sh (exit status: 1)

Accordingly, the 'c-stack' module must also install a SIGBUS handler on
this platform.


2021-02-07  Bruno Haible  <br...@clisp.org>

        c-stack: Adjust for MidnightBSD.
        * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): On MidnightBSD,
        set FAULT_YIELDS_SIGBUS.

diff --git a/m4/c-stack.m4 b/m4/c-stack.m4
index e7413a2..df8dc52 100644
--- a/m4/c-stack.m4
+++ b/m4/c-stack.m4
@@ -7,7 +7,7 @@
 
 # Written by Paul Eggert.
 
-# serial 20
+# serial 21
 
 AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
   [
@@ -19,7 +19,7 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
    dnl is accessed, or when the stack overflows.
    dnl Either { SIGSEGV } or { SIGSEGV, SIGBUS }.
    case "$host_os" in
-     sunos4* | freebsd* | dragonfly* | openbsd* | mirbsd* | netbsd* | 
kfreebsd* | knetbsd*) # BSD systems
+     sunos4* | freebsd* | dragonfly* | midnightbsd* | openbsd* | mirbsd* | 
netbsd* | kfreebsd* | knetbsd*) # BSD systems
        FAULT_YIELDS_SIGBUS=1 ;;
      hpux*) # HP-UX
        FAULT_YIELDS_SIGBUS=1 ;;


Reply via email to