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 segfault in ts_chunk_attach_osm_table_chunk on old pg versions #6073

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented Sep 15, 2023

On older postgres versions the printf functions will segfault on printf("%s", NULL) so we add some extra-logic to catch this. While the osm function is not useful on this older versions this was nevertheless triggered in our CI and it would be an easy way to produce a segfault on those older versions.

postgres/postgres@3779ac6

Disable-check: force-changelog-file

@github-actions
Copy link

@erimatnor, @akuzm: please review this pull request.

Powered by pull-review

@svenklemm svenklemm added this to the TimescaleDB 2.12 milestone Sep 15, 2023
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #6073 (0fb27d5) into main (ba9b818) will decrease coverage by 0.08%.
Report is 2 commits behind head on main.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##             main    #6073      +/-   ##
==========================================
- Coverage   81.57%   81.50%   -0.08%     
==========================================
  Files         246      246              
  Lines       56535    56533       -2     
  Branches    12519    12516       -3     
==========================================
- Hits        46121    46079      -42     
- Misses       8053     8089      +36     
- Partials     2361     2365       +4     
Files Changed Coverage Δ
src/chunk.c 89.74% <75.00%> (-0.09%) ⬇️

... and 43 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

On older postgres versions the printf functions will segfault on
printf("%s", NULL) so we add some extra-logic to catch this.
While the osm function is not useful on this older versions
this was nevertheless triggered in our CI and it would be an
easy way to produce a segfault on those older versions.

postgres/postgres@3779ac6
@svenklemm svenklemm enabled auto-merge (rebase) September 15, 2023 09:40
@svenklemm svenklemm merged commit 98507d4 into timescale:main Sep 15, 2023
36 of 38 checks passed
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.

None yet

3 participants