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

opt: fix memory corruption causing stack overflow #40644

Merged
merged 1 commit into from
Sep 11, 2019

Conversation

rytaft
Copy link
Collaborator

@rytaft rytaft commented Sep 10, 2019

This commit fixes a bug which was causing memory corruption and leading
to stack overflow. The fix changes DerivePruneCols to always use a deep
copy when deriving the PruneCols column set from other relational properties.

Fixes #40589

Release note (bug fix): Fixed a memory corruption error in the optimizer
that could cause stack overflow.

This commit fixes a bug which was causing memory corruption and leading
to stack overflow. The fix changes DerivePruneCols to always use a deep
copy when deriving the PruneCols column set from other relational properties.

Fixes cockroachdb#40589

Release note (bug fix): Fixed a memory corruption error in the optimizer
that could cause stack overflow.
@rytaft rytaft requested a review from a team as a code owner September 10, 2019 19:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

LGTM

@RaduBerinde
Copy link
Member

Regarding merging justification during release stability period, I believe this falls under "Low risk, high benefit changes to existing functionality".

@rytaft
Copy link
Collaborator Author

rytaft commented Sep 11, 2019

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 11, 2019

Build failed (retrying...)

@craig
Copy link
Contributor

craig bot commented Sep 11, 2019

Build failed (retrying...)

craig bot pushed a commit that referenced this pull request Sep 11, 2019
40644: opt: fix memory corruption causing stack overflow r=rytaft a=rytaft

This commit fixes a bug which was causing memory corruption and leading
to stack overflow. The fix changes `DerivePruneCols` to always use a deep
copy when deriving the `PruneCols` column set from other relational properties.

Fixes #40589

Release note (bug fix): Fixed a memory corruption error in the optimizer
that could cause stack overflow.

Co-authored-by: Rebecca Taft <[email protected]>
@craig
Copy link
Contributor

craig bot commented Sep 11, 2019

Build succeeded

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.

sql: fatal error: stack overflow
3 participants