Skip to content
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

[fix] fix to_string use memory after free #10777

Merged
merged 1 commit into from
Jul 12, 2022
Merged

Conversation

cambyzju
Copy link
Contributor

Proposed changes

Issue Number: close #10638

Problem Summary:

After search all convert_to_full_column_if_const call, I find DataTypeNullable and DataTypeString have the same problem.

If we want to use column returned by convert_to_full_column_if_const, we need to keep at least one refcount to avoid the column be released.

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

Copy link
Contributor

@HappenLee HappenLee left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 12, 2022
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit 5f99a95 into apache:master Jul 12, 2022
jacktengg added a commit to jacktengg/incubator-doris that referenced this pull request Jul 18, 2022
Merge fix of apache#10777 to branch dev-1.1.1.
yiguolei pushed a commit that referenced this pull request Jul 18, 2022
eldenmoon pushed a commit to eldenmoon/incubator-doris that referenced this pull request Aug 1, 2022
Co-authored-by: cambyzju <zhuxiaoli01@baidu.com>
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/vectorization dev/merge-1.1.1 reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] using Array caused coredump in ASAN build
3 participants