summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorKarthik Kamath <karthik.kamath@oracle.com>2020-07-19 11:10:12 +1000
committerDaniel Black <daniel@mariadb.org>2020-07-28 11:10:25 +1000
commite6cb263ef3ecc59510b62f7c7dd5dfcd78a613c7 (patch)
tree4d76d9c5faaa71c3457fe0aef54aca05e7aceea8 /config.h.cmake
parentbeec8404fa967bd2617a8da50a80930356877980 (diff)
downloadmariadb-git-e6cb263ef3ecc59510b62f7c7dd5dfcd78a613c7.tar.gz
MDEV-15961: Fix stacktraces under FreeBSD (aarch64)
Largely based on MySQL commit https://github.com/mysql/mysql-server/commit/75271e51d60bce8683423b208cbb43b11ca6060e MySQL Ref: BUG#24566529: BACKPORT BUG#23575445 TO 5.6 (cut) Also, the PTR_SANE macro which tries to check if a pointer is invalid (used when printing pointer values in stack traces) gave false negatives on OSX/FreeBSD. On these platforms we now simply check if the pointer is non-null. This also removes a sbrk() deprecation warning when building on OS X. (It was before only disabled with building using XCode). Removed execinfo path of MySQL patch that was already included. sbrk doesn't exist on FreeBSD aarch64. Removed HAVE_BSS_START based detection and replaced with __linux__ as it doesn't exist on OSX, Solaris or Windows. __bss_start exists on mutiple Linux architectures. Tested on FreeBSD and Linux x86_64. Being in FreeBSD ports for 2 years implies a good testing there on all FreeBSD architectures there too. MySQL-8.0.21 code is functionally identical to original commit.
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/config.h.cmake b/config.h.cmake
index eb3e6228bf7..17e449fbab2 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -312,7 +312,6 @@
/* Symbols we may use */
#cmakedefine HAVE_SYS_ERRLIST 1
/* used by stacktrace functions */
-#cmakedefine HAVE_BSS_START 1
#cmakedefine HAVE_BACKTRACE 1
#cmakedefine HAVE_BACKTRACE_SYMBOLS 1
#cmakedefine HAVE_BACKTRACE_SYMBOLS_FD 1