[CBRD-26322] Prevent core dump when receiving signal in CAS - #7901
Open
airnet73 wants to merge 5 commits into
Open
[CBRD-26322] Prevent core dump when receiving signal in CAS#7901airnet73 wants to merge 5 commits into
airnet73 wants to merge 5 commits into
Conversation
❌ TC Merge Gate — Merge BlockedOne or more TC PRs are still open. Please merge or close them before merging this PR. TC Repositories & Branches:
Steps to unblock:
|
🧪 TC Test Environment ReadyCircleCI Testing:
TC Repositories & Branches:
Next Steps:
|
Contributor
|
Reviews (1): Last reviewed commit: "[CBRD-26322] Prevent core dump when rece..." | Re-trigger Greptile |
Contributor
Author
|
/run all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
http://jira.cubrid.org/browse/CBRD-26322
Purpose
시그널 핸들러 내에서 async-signal-unsafe 함수를 호출할 경우, 시그널이 비동기적으로 개입하면서 교착 상태(Deadlock), 메모리 오염, 프로세스 강제 종료(Crash/Abort) 등의 심각한 문제가 발생할 수 있습니다.
이를 해결하기 위해 시그널 핸들러에서는 시그널 수신 여부만 기록하고, async-signal-unsafe한 실제 정리 작업은 메인 루프에서 처리하도록 구조를 개선했습니다.
Remarks
N/A