forked from pool/netgen
- Generate python stubs, add 0001-Ignore-invalid-unknown-types-in-pybind11-docstrings.patch - update to version 6.2.2203 * no changelog provided - Drop obsolete/upstream patches: * 0001-Set-explicit-OBJECT-library-type-for-internal-togl.patch * 0001-Throw-in-case-enum-value-is-unhandled.patch * 0001-Throw-Exception-when-shape-has-invalid-type.patch * 0001-Fix-signedness-for-ARM-Neon-mask-type.patch - Add patches: * 0001-Link-nggui-to-FFMPEG-und-JPEG-libraries-when-needed.patch * 0001-Avoid-installation-of-Togl-static-library.patch * 0001-Fix-use-of-unitialized-stlgeometry-member-in-constru.patch * 0001-Include-filesystem-from-experimental-for-GCC-7.patch * 0001-Fix-netgen-executable-and-library-RUNPATHs.patch OBS-URL: https://build.opensuse.org/request/show/1000067 OBS-URL: https://build.opensuse.org/package/show/science/netgen?expand=0&rev=28
42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From 1934071e77efc2ab471c330afda2fe0dece074f8 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
|
|
Date: Mon, 1 Mar 2021 19:18:22 +0100
|
|
Subject: [PATCH] Disable backtrace generation
|
|
|
|
The backtracing functionality is quite fragile (depends on parsing output
|
|
from "nm" and "addr2line", calls signal unsafe functions in signal
|
|
handlers).
|
|
|
|
Also, linking fails due to missing linkage to libdl (uses dladdr).
|
|
---
|
|
libsrc/core/exception.cpp | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/libsrc/core/exception.cpp b/libsrc/core/exception.cpp
|
|
index b89d721e..335e3411 100644
|
|
--- a/libsrc/core/exception.cpp
|
|
+++ b/libsrc/core/exception.cpp
|
|
@@ -23,7 +23,7 @@ namespace ngcore
|
|
|
|
|
|
// ********* STUFF FOR GETBACKTRACE ***************************
|
|
-#ifdef __GNUC__
|
|
+#if 0
|
|
|
|
#include <execinfo.h>
|
|
#include <string.h>
|
|
@@ -232,6 +232,10 @@ namespace ngcore
|
|
{
|
|
std::string GetBackTrace()
|
|
{
|
|
+ static auto backtrace = getenv("NG_BACKTRACE");
|
|
+ if(backtrace) {
|
|
+ return std::string("Backtrace disabled, use a debugger");
|
|
+ }
|
|
return std::string();
|
|
}
|
|
} // namespace ngcore
|
|
--
|
|
2.36.1
|
|
|