1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/testing/godot/crash_handler_x11.patch
2020-10-28 18:44:05 +00:00

30 lines
644 B
Diff

Upstream: no
Backtrace is not available on Musl systems
--- a/platform/x11/crash_handler_x11.cpp
+++ b/platform/x11/crash_handler_x11.cpp
@@ -49,7 +49,7 @@
if (OS::get_singleton() == NULL) {
abort();
}
-
+#if defined(__linux__) && defined(__GLIBC__)
void *bt_buffer[256];
size_t size = backtrace(bt_buffer, 256);
String _execpath = OS::get_singleton()->get_executable_path();
@@ -89,7 +89,6 @@
free(demangled);
}
}
-
List<String> args;
char str[1024];
@@ -115,6 +114,7 @@
free(strings);
}
fprintf(stderr, "-- END OF BACKTRACE --\n");
+#endif
// Abort to pass the error to the OS
abort();