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 | fcaaee631792b51ce7ea12db1d5f5c2019d0fa3b (patch) | |
tree | a27f81ac24a83b96d235ee7489aefe3223a88867 /include/my_stacktrace.h | |
parent | fb8f32d0774876f79f7e3d9aa714c0ecb67adaca (diff) | |
download | mariadb-git-fcaaee631792b51ce7ea12db1d5f5c2019d0fa3b.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.
client/mysqltest.c:
Only use stacktrace functions if they are available.
configure.in:
Check if the compiler defines __bss_start
include/my_stacktrace.h:
Enable stacktrace if system has backtrace functions.
mysys/stacktrace.c:
Use backtrace functions if the system supports it.
sql/mysqld.cc:
Only use stacktrace functions if they are available.
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 |