-
Notifications
You must be signed in to change notification settings - Fork 882
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
[Bug]: Segmentation fault in decompress chunk after appending new rows #5411
Comments
Hello @kgyrtkirk, Do you think this bug is specific to PostgreSQL 15 or can it occur on PostgreSQL 14? I ran into a The crash occurs when querying a hypertable with a join. It does only happens after the compression jobs first ran after the upgrade. |
do you happen to have a please try to get at least a backtrace so that we can validate if its the same issue or a different one https://github.com/kgyrtkirk/reprox/tree/comp-test_segfault-14 |
I don't have the necessary tools installed on the VM to create a backtrace (not yet still but I can look into installing what's needed). I'll try to make a backup of my cluster with pgbackrest and test the update again on another VM (I cannot juste crash the one I fixed, it is not production but it is used) |
I've successfully done what I said:
I've attached
Is this enough? |
awesome! this seems like a slightly different backtrace - I think its key to also do the upgrade to reproduce your issue; if you have any suggestions and/or ideas how this could be reproduced (beyond the 2.9.3->2.10.0 upgrade step) feel free to add them! |
Thanks, I'll do that. |
I've tried to narrow this down - and got to: #5458 |
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes #5458 #5411
Closing this issue as its fixed in #5458 |
I thinked it will close it automagically - it seems like github needs to have the "fixes" keyword repeated to do that! |
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411 cherry-picked from 975e9ca
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes timescale#5458 timescale#5411 cherry-picked from 975e9ca
Decompression produces records which have all the decompressed data set, but it also retains the fields which are used internally during decompression. These didn't cause any problem - unless an operation is being done with the whole row - in which case all the fields which have ended up being non-null can be a potential segfault source. Fixes #5458 #5411 cherry-picked from 975e9ca
What type of bug is this?
Crash
What subsystems and features are affected?
Compression
What happened?
the testcase is more elaborate; but most likely the only relevant part is how the compression was enabled (segmentby/orderby)
segmentation fault have happened beneath
tsl/src/nodes/decompress_chunk/exec.c:394
in:TimescaleDB version affected
2.10.1 and current main
PostgreSQL version used
15
What operating system did you use?
timescale/timescaledb:2.10.1-pg15
What installation method did you use?
Docker
What platform did you run on?
Other
Relevant log output and stack trace
How can we reproduce the bug?
run the case by building the image of: https://github.com/kgyrtkirk/reprox/tree/comp-test_segfault
The text was updated successfully, but these errors were encountered: