Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the cond_var usage in the bg_task.fetch_task() #19

Open
jd-zhang opened this issue Jun 1, 2022 · 0 comments
Open

Modify the cond_var usage in the bg_task.fetch_task() #19

jd-zhang opened this issue Jun 1, 2022 · 0 comments

Comments

@jd-zhang
Copy link
Contributor

jd-zhang commented Jun 1, 2022

Issue migrated from trac ticket # 789

component: kunlun-storage | priority: major

2022-06-01 19:41:40: snow@zettadb.com created the issue


Miss use the cond_var in the BG_task *fetch_task() may leads tricky mysqld crash.\\
mysqld: ../nptl/pthread_mutex_lock.c:81: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed.\

(gdb) bt
#0 0x00007ff2927358d5 in pthread_kill () from /lib64/libpthread.so.0
#1 0x000000000119aa35 in handle_fatal_signal (sig=6) at /home/kunlun/debugbuild/percona-server/sql/signal_handler.cc:194
#2
#3 0x00007ff290cb637f in raise () from /lib64/libc.so.6
#4 0x00007ff290ca0db5 in abort () from /lib64/libc.so.6
#5 0x00007ff290ca0c89 in __assert_fail_base.cold.0 () from /lib64/libc.so.6
#6 0x00007ff290caea76 in __assert_fail () from /lib64/libc.so.6
#7 0x00007ff292730b61 in pthread_mutex_lock () from /lib64/libpthread.so.0
#8 0x000000000125b172 in Scoped_pthread_mutex::Scoped_pthread_mutex (mtx=..., this=) at /home/kunlun/debugbuild/percona-server/sql/bg_task_exec.cc:29
#9 BG_task::mark_done (errmsg=0x0, err=0, this=0x7ff1f3c32200) at /home/kunlun/debugbuild/percona-server/sql/bg_task_exec.cc:118
#10 BG_rotate_purge::execute (this=0x7ff1f3c32200) at /home/kunlun/debugbuild/percona-server/sql/bg_task_exec.cc:206
#11 0x000000000125a64b in bg_task_worker (param0=0x3fbab80 <bg_work_params>) at /home/kunlun/debugbuild/percona-server/sql/bg_task_exec.cc:331
#12 0x00007ff29272e14a in start_thread () from /lib64/libpthread.so.0
#13 0x00007ff290d7bdc3 in clone () from /lib64/libc.so.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant