Skip to content

Instantly share code, notes, and snippets.

@ryanschwartz
Created August 23, 2016 17:39
Show Gist options
  • Save ryanschwartz/2801b34c809360f71febacc2dfbffd7b to your computer and use it in GitHub Desktop.
Save ryanschwartz/2801b34c809360f71febacc2dfbffd7b to your computer and use it in GitHub Desktop.
--- 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