Skip to content

Conversation

@gaodayue
Copy link
Contributor

Fixes #3706

DataSink uses instance and query MemTracker from RuntimeState, therefore it should be destructed before RuntimeState. Otherwise memory corruption and segfault could happen.

@gaodayue gaodayue added the kind/fix Categorizes issue or PR as related to a bug. label May 28, 2020
@gaodayue gaodayue self-assigned this May 28, 2020
@gaodayue gaodayue requested a review from chaoyli May 28, 2020 03:46
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morningman morningman added approved Indicates a PR has been approved by one committer. area/load Issues or PRs related to all kinds of load labels May 28, 2020
@morningman morningman merged commit 9c85d05 into apache:master May 28, 2020
acelyc111 pushed a commit to acelyc111/incubator-doris that referenced this pull request Jan 20, 2021
Fixes apache#3706 

DataSink uses instance and query MemTracker from RuntimeState, therefore it should be destructed before RuntimeState. Otherwise memory corruption and segfault could happen.
BiteTheDDDDt pushed a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/load Issues or PRs related to all kinds of load kind/fix Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BE cores because RuntimeState is deallocated before DataSink when fragment is cancelled

2 participants