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

Dead lock may happens when byconity exit #1647

Open
ArthurZou opened this issue Apr 24, 2024 · 2 comments
Open

Dead lock may happens when byconity exit #1647

ArthurZou opened this issue Apr 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ArthurZou
Copy link

ArthurZou commented Apr 24, 2024

here is the backtrace:
企业微信截图_2d5e2534-dbef-46ad-8976-bd239f0499b5

This is may caused by attempting to destroy a condition variable upon which other threads are currently blocked

@ArthurZou ArthurZou added the bug Something isn't working label Apr 24, 2024
@GallifreyY
Copy link
Collaborator

hi! @ArthurZou may i know which version are u using? and is there any ways to reproduce the bug or its purely depends on chances? It would help if can send us the error log as well. Thx!

@ArthurZou
Copy link
Author

Byconity was built by commit 5cf3911.
this is occasional when program exit.

https://github.com/ByConity/libhdfs3-open/blob/33cc568a560a6d222a5f75aec90c7638b1314a3b/src/client/async_preader/StaticInitialization.cpp
There is a static variable io_context which is a boost::asio::io_context instance. It will be destructed when program exit.
As the backtrace shows, this will come to :pthread_cond_destroy(&cond_) in https://github.com/ClickHouse/boost/blob/c0807e83f2824e8dd67a15b355496a9b784cdcd5/boost/asio/detail/posix_event.hpp eventually。
Accroding to https://linux.die.net/man/3/pthread_cond_destroy,I guess may be this is caused by attempting to destroy a condition variable upon which other threads are currently blocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants