bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c-stack: Adjust for MidnightBSD


From: Bruno Haible
Subject: c-stack: Adjust for MidnightBSD
Date: Sun, 07 Feb 2021 19:58:10 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

> 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  <bruno@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

[Prev in Thread] Current Thread [Next in Thread]