Skip to content

[21.1.1] Fix unwind from signal handler - #2

Closed
es1024 wants to merge 1 commit into
21.1.1-ybfrom
es1024-patch-1
Closed

[21.1.1] Fix unwind from signal handler#2
es1024 wants to merge 1 commit into
21.1.1-ybfrom
es1024-patch-1

Conversation

@es1024

@es1024 es1024 commented Jun 17, 2026

Copy link
Copy Markdown

Change taken from: ClickHouse/libunwind@ba533a7

In case of this is frame of signal handler, the IP should be incremented, because the IP saved in the signal handler points to first non-executed instruction, while FDE/CIE expects IP to be after the first non-executed instruction.

This can cause SIGSEGV, since our stack tracing code involves libunwind via signal handlers.

Change taken from: ClickHouse/libunwind@ba533a7

In case of this is frame of signal handler, the IP should be
incremented, because the IP saved in the signal handler points to first non-executed instruction, while FDE/CIE expects IP to be after the first non-executed instruction.

This can cause SIGSEGV, since our stack tracing code involves libunwind via signal handlers.
@es1024
es1024 requested a review from hari90 June 17, 2026 16:07
@es1024 es1024 changed the title Fix unwind from signal handler [21.1.1] Fix unwind from signal handler Jun 18, 2026
@es1024 es1024 closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant