Skip to content

Conversation

@chaoyli
Copy link
Contributor

@chaoyli chaoyli commented Jun 23, 2019

When performing storage_medium_migration, the header may be already droped.
In this scenario, header returned will be null pointer.
Saving data to a null pointer will cause core dump.

}

OLAPHeader* new_olap_header = new(std::nothrow) OLAPHeader();
res = OlapHeaderManager::get_header(stores[0], tablet->tablet_id(), tablet->schema_hash(), new_olap_header);
Copy link
Contributor

Choose a reason for hiding this comment

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

memory leak for new_olap_header

When performing storage_medium_migration, the header may be already droped.
In this scenario, header returned will be null pointer.
Saving data to a null pointer will cause core dump.
@imay imay merged commit f1717e4 into apache:master Jun 23, 2019
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 1, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 1, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 2, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 7, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 8, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 9, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 10, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 10, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Feb 10, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
luwei16 pushed a commit to luwei16/Doris that referenced this pull request Apr 7, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
swjtu-zhanglei pushed a commit to swjtu-zhanglei/incubator-doris that referenced this pull request Jul 25, 2023
…ache#1361)

* [improvement](dynamic-table) refine some logic
1. support filter malformed json lines
2. refactor block align logic
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.

2 participants