mariadb/mysys
Vladislav Vaintroub 92be8d2048 MDEV-29951 server hang in crash handler
When trying to output stacktrace, and addr2line is not installed, the
child process forked by start_addr2line_fork() will fail to do exec(),
and finish with exit(1).

There is a problem with exit() though - it runs exit handlers,
and for the forked copy of crashing process, it is a bad idea.

In 10.5+ code for example, exit handlers include
tpool::task_group static destructors, and it will hang infinitely
waiting for completion of the outstanding tasks.

The fix is to use _exit() instead, which skips the execution of exit
handlers
2022-11-05 18:36:43 +01:00
..
array.c MDEV-22387: Do not violate __attribute__((nonnull)) 2020-11-02 14:19:21 +02:00
base64.c
ChangeLog
charset-def.c
charset.c MDEV-19750 mysql command wrong encoding 2019-06-17 18:04:47 +01:00
checksum.c
CMakeLists.txt Link with libatomic to enable C11 atomics support 2021-10-19 16:08:51 +03:00
errors.c
file_logger.c MENT-1098 Crash during update on 10.4.17 after upgrade from 10.4.10 2021-02-25 13:23:59 +02:00
get_password.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
guess_malloc_library.c
hash.c Merge 10.2 into 10.3 2020-10-22 08:26:28 +03:00
lf_alloc-pin.c Merge branch '10.2' into 10.3 2021-12-06 22:23:07 +01:00
lf_dynarray.c
lf_hash.c Merge branch '10.2' into 10.3 2021-12-06 22:23:07 +01:00
list.c Merge 10.1 into 10.2 2020-05-13 11:12:31 +03:00
ma_dyncol.c
mf_arr_appstr.c
mf_cache.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
mf_dirname.c
mf_fn_ext.c
mf_format.c
mf_getdate.c
mf_iocache.c Merge 10.2 into 10.3 2021-06-21 09:07:40 +03:00
mf_iocache2.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
mf_keycache.c MDEV-22590 SIGSEGV in flush_all_key_blocks when changing key_buffer_size / ASAN: heap-use-after-free in flush_all_key_blocks 2022-06-24 10:03:23 +02:00
mf_keycaches.c
mf_loadpath.c
mf_pack.c
mf_path.c
mf_qsort.c fix clang build: check alignment the other way 2021-07-26 12:37:25 +03:00
mf_qsort2.c
mf_radix.c
mf_same.c
mf_sort.c
mf_soundex.c
mf_tempdir.c
mf_tempfile.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
mf_unixpath.c
mf_wcomp.c
mulalloc.c
my_access.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_addr_resolve.c MDEV-29951 server hang in crash handler 2022-11-05 18:36:43 +01:00
my_alarm.c
my_alloc.c Merge 10.2 into 10.3 2020-11-02 15:48:47 +02:00
my_atomic_writes.c
my_basename.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_bit.c
my_bitmap.c Merge 10.2 into 10.3 2020-05-29 22:21:19 +03:00
my_chmod.c
my_chsize.c
my_compare.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_compress.c
my_conio.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_context.c Merge 10.2 into 10.3 2021-10-13 11:38:21 +03:00
my_copy.c
my_cpu.c MDEV-19845: Adjust for Skylake based on benchmarks 2019-07-02 17:44:05 +03:00
my_create.c
my_default.c Merge branch '10.2' into 10.3 2020-03-06 23:28:26 +01:00
my_delete.c Merge branch bb-10.2-release into bb-10.3-release 2021-05-04 14:49:31 +03:00
my_div.c
my_dlerror.c
my_error.c remove non-working debug assert 2020-10-29 09:35:39 +01:00
my_file.c
my_fopen.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_fstream.c
my_gethwaddr.c Fix building my_gethwaddr() on OpenBSD 2022-10-27 11:30:45 +11:00
my_getncpus.c Correct FreeBSD cpuset_t type 2020-04-03 15:30:33 +02:00
my_getopt.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_getpagesize.c
my_getsystime.c MDEV-20079 When setting back the system time while mysqld is running, NOW() and UNIX_TIMESTAMP() results get stuck 2019-09-04 09:30:43 +02:00
my_getwd.c
my_init.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_largepage.c
my_lib.c Merge 10.2 into 10.3 2020-04-15 09:56:03 +03:00
my_libwrap.c
my_likely.c
my_lock.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_lockmem.c Cleanup mman.h includes 2019-10-02 20:21:30 +04:00
my_malloc.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_memmem.c
my_mess.c
my_minidump.cc MDEV-11499 mysqltest, Windows : improve diagnostics if server fails to shutdown 2021-09-24 11:49:28 +02:00
my_mkdir.c
my_mmap.c
my_new.cc
my_once.c
my_open.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_port.c
my_pread.c Fix debug assert to match its intention. 2019-06-17 19:01:15 +01:00
my_pthread.c MDEV-15795 Stack exceeded if pthread_attr_setstacksize(&thr_attr,8196) succeeds 2022-10-22 10:24:14 +02:00
my_quick.c
my_rdtsc.c MDEV-23175: my_timer_milliseconds clock_gettime for multiple platfomrs 2021-12-22 16:48:34 +01:00
my_read.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_redel.c
my_rename.c MDEV-28178 Windows : sporadic ER_ERROR_ON_RENAME .. (errno: 13 "Permission denied") 2022-03-28 12:46:35 +02:00
my_rnd.c
my_safehash.c
my_safehash.h
my_seek.c myseek: AIX has no "tell" 2021-03-19 11:14:53 +11:00
my_setuser.c
my_sleep.c
my_static.c MDEV-20425 Implement Boolean debug build option debug_assert 2019-08-29 13:13:17 +03:00
my_static.h
my_symlink.c
my_symlink2.c
my_sync.c MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
my_thr_init.c Merge 10.2 into 10.3 2020-04-27 14:24:41 +03:00
my_timer_cycles.il
my_uuid.c
my_wincond.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_windac.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_winerr.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_winfile.c MDEV-28746 Wrong error code ER_BAD_DB_ERROR for long filenames 2022-07-07 15:14:14 +02:00
my_winthread.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_write.c
mysys_priv.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
psi_noop.c Merge 10.2 into 10.3 2021-08-31 08:36:59 +03:00
ptr_cmp.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
queues.c Merge branch '5.5' into 10.1 2020-04-30 17:36:41 +02:00
safemalloc.c Merge 10.2 into 10.3 2021-10-28 07:50:05 +03:00
stacktrace.c Merge 10.2 into 10.3 2020-08-20 09:12:16 +03:00
string.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
test_charset.c
test_dir.c
test_thr_mutex.c
test_xml.c
testhash.c
thr_alarm.c MDEV-15795 Stack exceeded if pthread_attr_setstacksize(&thr_attr,8196) succeeds 2022-10-22 10:24:14 +02:00
thr_lock.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
thr_mutex.c MDEV-20183 data race at safe_mutex_lock() 2019-07-26 12:36:06 +03:00
thr_rwlock.c
thr_timer.c MDEV-15795 Stack exceeded if pthread_attr_setstacksize(&thr_attr,8196) succeeds 2022-10-22 10:24:14 +02:00
tree.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
typelib.c
waiting_threads.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
wqueue.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00