-
Notifications
You must be signed in to change notification settings - Fork 411
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
TiFlash get stuck occasionally when mem-profiling is actived #3236
Comments
Seems that it is the same issue as libunwind/libunwind#16
|
Is it possible then to use llvm's libunwind? |
The problem is that we need to vendor libunwind on ourselves. I think no one could like to make llvm-project as a sub project. xD |
Maybe we can use https://github.com/ClickHouse-Extras/libunwind? Seems it is a fork from llvm's libunwind I'll have a try to use ClickHouse-Extras/libunwind |
Failed to build tiflash with ClickHouse-Extras/libunwind
|
Find that we can not static link libgcc && libstdc++ when using |
If we want to use Or we may end-up with errors like
|
https://github.com/JaySon-Huang/tics/tree/add_mem_prof Compiled using clang 13.0.0, finally, tiflash get crash with stack like this:
|
Maybe we can fix it with a similar approach as tikv/pprof-rs#85, need further investigation. |
Change severity to minor since we don't do mem profile currently. |
Branch: https://github.com/JaySon-Huang/tics/tree/add_mem_prof
Start a TiFlash compiled with
-DENABLE_JEMALLOC_PROF=1
, and start tiflash with envexport MALLOC_CONF="prof:true,prof_active:true,lg_prof_interval:33"
, TiFlash get stuck occasionally. The stacks are as below:stuck-stacks-log.tar.gz
The text was updated successfully, but these errors were encountered: