Created
August 23, 2016 17:39
-
-
Save ryanschwartz/2801b34c809360f71febacc2dfbffd7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ProxySQL_GloVars.cpp | |
+++ ProxySQL_GloVars.cpp.new | |
@@ -16,6 +16,7 @@ | |
#ifdef DEBUG | |
// malloc_stats_print(NULL, NULL, ""); | |
#endif | |
+#ifdef __GLIBC__ | |
void *arr[20]; | |
size_t s; | |
@@ -23,6 +24,7 @@ | |
fprintf(stderr, "Error: signal %d:\n", sig); | |
backtrace_symbols_fd(arr, s, STDERR_FILENO); | |
+#endif | |
//#ifdef SYS_gettid | |
// try to generate a core dump signaling again the thread | |
signal(sig, SIG_DFL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment