diff options
author | Davi Arnaut <davi@mysql.com> | 2008-06-19 11:02:32 -0300 |
---|---|---|
committer | Davi Arnaut <davi@mysql.com> | 2008-06-19 11:02:32 -0300 |
commit | e7f3c5fc44c168f0a574719722aa3763d22f7668 (patch) | |
tree | a27f81ac24a83b96d235ee7489aefe3223a88867 /include/my_stacktrace.h | |
parent | 30bd1d7cb37926b99c0d5683a5c1912a4b853762 (diff) | |
download | mariadb-git-e7f3c5fc44c168f0a574719722aa3763d22f7668.tar.gz |
Bug#37003 Tests sporadically crashes with embedded server
Another problem is that the backtrace facility wasn't being
enabled for non-Linux targets even if the target OS has the
backtrace functions. Also, the stacktrace functions inside
mysqltest were being used without proper checks for their
presence in the build.
Diffstat (limited to 'include/my_stacktrace.h')
-rw-r--r-- | include/my_stacktrace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_stacktrace.h b/include/my_stacktrace.h index 3d51ba92ee1..e7ce42c1f4f 100644 --- a/include/my_stacktrace.h +++ b/include/my_stacktrace.h @@ -27,6 +27,11 @@ #define HAVE_STACKTRACE 1 #endif +#if HAVE_BACKTRACE && (HAVE_BACKTRACE_SYMBOLS || HAVE_BACKTRACE_SYMBOLS_FD) +#undef HAVE_STACKTRACE +#define HAVE_STACKTRACE 1 +#endif + #if !defined(__NETWARE__) #define HAVE_WRITE_CORE #endif |