Package: ghdl / 5.0.1+dfsg-1

avoid-have-backtrace Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Disable use of backtrace(3)
 The use of backtrace(3) causes segfaults in grt_save_backtrace() for some
 reason. Some tests in the testsuite are affected by this, causing the testsuite
 to fail. Disable the detection in src/grt/config/jumps.c for now.
Author: Andreas Bombe <aeb@debian.org>
Forwarded: not-needed
Last-Update: 2024-07-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/grt/config/jumps.c
+++ b/src/grt/config/jumps.c
@@ -27,10 +27,12 @@
 #include <signal.h>
 #include <fcntl.h>
 
+#if 0
 #if ( (defined (__linux__) && defined (__GLIBC__) ) || defined (__APPLE__) ) && !defined (__ANDROID__)
 #define HAVE_BACKTRACE 1
 #include <sys/ucontext.h>
 #endif
+#endif
 
 #ifdef HAVE_BACKTRACE
 #include <execinfo.h>