Open fghoussen opened 1 year ago
I fixed it as per the comment
diff --git a/src/SlamCore/utils.cxx b/src/SlamCore/utils.cxx
index 293414b..f21bb10 100644
--- a/src/SlamCore/utils.cxx
+++ b/src/SlamCore/utils.cxx
@@ -115,14 +115,15 @@ void _posix_signal_handler(int sig, siginfo_t *siginfo, void *context) {
_Exit(1);
}
-static uint8_t alternate_stack[SIGSTKSZ];
+// static uint8_t alternate_stack[SIGSTKSZ];
void _setup_signal_handler() {
{
stack_t ss = {};
/* malloc is usually used here, I'm not 100% sure my static allocation
is valid but it seems to work just fine. */
- ss.ss_sp = (void *) alternate_stack;
+ // ss.ss_sp = (void *) alternate_stack;
+ ss.ss_sp = malloc(SIGSTKSZ);
ss.ss_size = SIGSTKSZ;
ss.ss_flags = 0;
if (sigaltstack(&ss, NULL) != 0) { err(1, "sigaltstack"); }
Reporting that, superbuild is OK, but, build fails on debian:
How to fix this?