Bug#1009684: openmw: FTBFS with glibc 2.34

IOhannes m zmoelnig umlaeute at debian.org
Sat Aug 20 18:47:07 BST 2022


Source: openmw
Version: 0.47.0-1
Followup-For: Bug #1009684
Control: tags -1 patch

Ubuntu appears to have patched openmw to fix this issue.
Please find the patch attached.
-------------- next part --------------
Description: Assume SIGSTKSZ is not a constant
Origin: upstream, https://gitlab.com/OpenMW/openmw/-/commit/98a7d90ee258ceef9c70b0b2955d0458ec46f048
Author: elsid <elsid.mail at gmail.com>
Last-Update: 2021-09-24

--- a/components/crashcatcher/crashcatcher.cpp
+++ b/components/crashcatcher/crashcatcher.cpp
@@ -56,8 +56,6 @@
 
 static char argv0[PATH_MAX];
 
-static char altstack[SIGSTKSZ];
-
 
 static struct {
     int signum;
@@ -475,9 +473,10 @@
 
     /* Set an alternate signal stack so SIGSEGVs caused by stack overflows
      * still run */
+    static char* altstack = new char [SIGSTKSZ];
     altss.ss_sp = altstack;
     altss.ss_flags = 0;
-    altss.ss_size = sizeof(altstack);
+    altss.ss_size = SIGSTKSZ;
     sigaltstack(&altss, nullptr);
 
     memset(&sa, 0, sizeof(sa));


More information about the Pkg-games-devel mailing list