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

Backport to 2.11.x: #6045: Fix segfault in set_integer_now_func #6048

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

timescale-automation
Copy link

This is an automated backport of #6045: Fix segfault in set_integer_now_func.
The original issue is #6037.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Fix segfault in set_integer_now_func

When an invalid function oid is passed to set_integer_now_func, it finds out that the function oid is invalid but before throwing the error, it calls ReleaseSysCache on an invalid tuple causing a segfault. Fixed that by removing the invalid call to ReleaseSysCache.

Fixes #6037

When an invalid function oid is passed to set_integer_now_func, it finds
out that the function oid is invalid but before throwing the error, it
calls ReleaseSysCache on an invalid tuple causing a segfault. Fixed that
by removing the invalid call to ReleaseSysCache.

Fixes #6037

(cherry picked from commit 44e41c1)
@timescale-automation timescale-automation added the is-auto-backport PR created by backport automation label Sep 6, 2023
@timescale-automation timescale-automation enabled auto-merge (rebase) September 6, 2023 09:44
@timescale-automation timescale-automation merged commit 6397070 into 2.11.x Sep 6, 2023
@timescale-automation timescale-automation deleted the backport/2.11.x/6045 branch September 6, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-auto-backport PR created by backport automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants