-
Notifications
You must be signed in to change notification settings - Fork 45
fix: Fix deepin-anything-daemon coredump #191
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
Conversation
The direct cause of the program crash is that a pure virtual function is called in the destructor of the base class. Let's move the cleanup from ~base_event_handler() into terminate_processing().
|
TAG Bot TAG: 7.0.31 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis patch prevents a pure virtual function call in the base class destructor by relocating the pending-task wait and job‐cleanup logic from ~base_event_handler() into terminate_processing(). Class diagram for updated base_event_handler cleanup logicclassDiagram
class base_event_handler {
+terminate_processing()
-pool_: ThreadPool
-jobs_: std::vector<Job>
-eat_job(Job)
~base_event_handler() // destructor no longer performs job cleanup
}
base_event_handler : terminate_processing() now performs job cleanup
base_event_handler : ~base_event_handler() no longer calls eat_job()
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deepin pr auto review我来对这个diff进行审查:
语法逻辑:
代码质量:
代码性能:
代码安全:
总体来说,这是一个很好的改进,修复了coredump问题,提高了代码的健壮性和可维护性。建议可以采纳这个改动。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, wangrong1069 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
The direct cause of the program crash is that a pure virtual function is called in the destructor of the base class. Let's move the cleanup from ~base_event_handler() into terminate_processing().
Summary by Sourcery
Bug Fixes: