FIX BUG(Issue #1776): Switching pthread causes coredump when bthread local variable is destructed
FIX BUG(Issue #1776): Switching pthread causes coredump when bthread local variable is destructed
If the bthread local destructor specified by bthread_key_create calls bthread_mutex_lock it may cause TaskGroup::task_runner->return_keytable to switch pthreads after execution causing coredump
Thanks for reporting the issue and submitting this PR! I think it's better to add some comments to explain the code, or add some test cases, to prevent future modification from breaking this case.
Thanks for reporting the issue and submitting this PR! I think it's better to add some comments to explain the code, or add some test cases, to prevent future modification from breaking this case.
OK! I will add some test cases and then update this pr
Thanks for reporting the issue and submitting this PR! I think it's better to add some comments to explain the code, or add some test cases, to prevent future modification from breaking this case.
OK! I will add some test cases and then update this pr
@zhaodongzhi Any update of this PR?