diff options
author | unknown <rafal@quant.(none)> | 2006-12-08 11:41:12 +0100 |
---|---|---|
committer | unknown <rafal@quant.(none)> | 2006-12-08 11:41:12 +0100 |
commit | 9f37ea459c214e047fe7b0bea77d52e1027dec91 (patch) | |
tree | 6702b694b87c0c4963a83e478d5b342845c9f240 /bdb/build_vxworks | |
parent | 00fec63a38f90d873a18e849cf0dc191d1ad42eb (diff) | |
download | mariadb-git-9f37ea459c214e047fe7b0bea77d52e1027dec91.tar.gz |
BUG#24507 (rpl_log.test crash slave):
The problem was located to lie inside current NPTL pthread_exit()
implementation. Race conditions in this code can lead to segmentation
fault. Hovewer, this can happen only in a race between first thread
calling pthread_exit() and other threads.
Workaround implemented in this patch spawns a dummy thread, which
exits immediately, during thread lib initialization. This will exclude
segment violations when further threads exit.
include/my_pthread.h:
define macro NPTL_PTHREAD_EXIT_BUG which controls whether workaround
in my_thread_global_init() is included or not.
mysys/my_thr_init.c:
Spawn a dummy thread in my_thread_global_init() to initialize pthread
lib internal variables.
Diffstat (limited to 'bdb/build_vxworks')
0 files changed, 0 insertions, 0 deletions