v.24.5Improvement

Fix Crash in Asynchronous Stack Unwinding During Debug Info Interpretation

Fix a crash in asynchronous stack unwinding (such as when using the sampling query profiler) while interpreting debug info. This closes #60460. #60468 (Alexey Milovidov).
Fix a crash occurring during asynchronous stack unwinding when interpreting debug information, improving the stability of the sampling query profiler.

Why it matters

This fix addresses a crash that happened in the asynchronous stack unwinding process, which is often triggered when using the sampling query profiler. By resolving this issue, the feature ensures reliable profiling and debugging of queries without unexpected termination.

How to use it

Users do not need to take any special action beyond updating to the new ClickHouse version containing this fix. The sampling query profiler and asynchronous stack unwinding will work correctly and more stably after the update.