mariadb/mysys
Karthik Kamath e6cb263ef3 MDEV-15961: Fix stacktraces under FreeBSD (aarch64)
Largely based on MySQL commit
75271e51d6

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.
2020-07-28 11:10:25 +10:00
..
array.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
base64.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
ChangeLog
charset-def.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
charset.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
checksum.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
CMakeLists.txt Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
errors.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
file_logger.c Update FSF address 2019-05-10 20:52:00 +03:00
hash.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf_alloc-pin.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf_dynarray.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf_hash.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
list.c MDEV-22344: Fix typos in comments 2020-05-06 18:15:32 +02:00
ma_dyncol.c Merge 10.0 into 10.1 2018-02-08 13:29:08 +02:00
mf_arr_appstr.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_cache.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_dirname.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_fn_ext.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_format.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_getdate.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_iocache.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_iocache2.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_keycache.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_keycaches.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_loadpath.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_pack.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_path.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_qsort.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_qsort2.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_radix.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_same.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_sort.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_soundex.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_tempdir.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mf_tempfile.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_unixpath.c Update FSF Address 2019-05-11 21:29:06 +03:00
mf_wcomp.c Update FSF Address 2019-05-11 21:29:06 +03:00
mulalloc.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_access.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_addr_resolve.c Merge branch '5.5' into 10.1 2020-03-06 11:06:48 +01:00
my_alarm.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_alloc.c Merge 5.5 into 10.1 2019-05-28 11:25:45 +03:00
my_atomic.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_basename.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_bit.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_bitmap.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_chmod.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_chsize.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_compare.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_compress.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_conio.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_context.c Merge branch '5.5' into 10.0 2017-03-08 12:21:13 +02:00
my_copy.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_crc32.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_create.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_default.c MDEV-21374: When "--help --verbose" prints out configuration file paths, the --defaults-file option is not considered 2020-02-22 22:46:58 +01:00
my_delete.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_div.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_dlerror.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_error.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_file.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_fopen.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_fstream.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_gethwaddr.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_getncpus.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_getopt.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_getpagesize.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_getsystime.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_getwd.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_init.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_largepage.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_lib.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_libwrap.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_lock.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_lockmem.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_malloc.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_memmem.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mess.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mkdir.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_mmap.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_new.cc Update FSF Address 2019-05-11 21:29:06 +03:00
my_once.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_open.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_port.c Follow-up to changing FSF address 2019-05-11 18:30:45 +03:00
my_pread.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_pthread.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_quick.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_rdtsc.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_read.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_redel.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_rename.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_rnd.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_safehash.c Update FSF address 2019-05-10 20:52:00 +03:00
my_safehash.h Update FSF address 2019-05-10 20:52:00 +03:00
my_seek.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_setuser.c MDEV-11676 Starting service with mysqld_safe_helper fails in SELINUX "enforcing" mode 2017-01-04 13:38:03 +01:00
my_sleep.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_static.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_static.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_symlink.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_symlink2.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_sync.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_thr_init.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_timer_cycles.il Update FSF Address 2019-05-11 21:29:06 +03:00
my_uuid.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
my_wincond.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_windac.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_winerr.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_winfile.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_winthread.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_write.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysys_priv.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
psi_noop.c Update FSF address 2019-05-11 19:25:02 +03:00
ptr_cmp.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
queues.c Merge branch '5.5' into 10.1 2020-04-30 17:36:41 +02:00
safemalloc.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
stacktrace.c MDEV-15961: Fix stacktraces under FreeBSD (aarch64) 2020-07-28 11:10:25 +10:00
string.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
test_charset.c Update FSF Address 2019-05-11 21:29:06 +03:00
test_dir.c Update FSF Address 2019-05-11 21:29:06 +03:00
test_thr_mutex.c Update FSF address 2019-05-10 20:52:00 +03:00
test_xml.c Update FSF Address 2019-05-11 21:29:06 +03:00
testhash.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_alarm.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_lock.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_mutex.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thr_rwlock.c Update FSF Address 2019-05-11 21:29:06 +03:00
thr_timer.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
tree.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
typelib.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
waiting_threads.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
wqueue.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00