Repository navigation
Conversation
Alena0704
self-requested a review
November 27, 2026 09:08
On main, a malformed b=127 state reaches gp_hll_unpack() while planning
this estimate and fails with an impossible allocation request:
SELECT gp_hyperloglog_get_estimate(encode(decode('7f040200ffffffff' ||
repeat('00',72), 'hex'), 'base64')::gp_hyperloglog_estimator);
ERROR: invalid memory alloc request size 18446744071562068048 (mcxt.c:1511)
Stack: gp_hll_unpack -> gp_hyperloglog_estimate ->
gp_hyperloglog_get_estimate -> evaluate_expr -> planner.
Reproduced on a cassert/debug build; the HLL source and header match main
3af3d64. The backend stayed alive; this is
a query ERROR, not a process termination.
Refresh gp_hyperloglog.out by removing blank separator lines after the
expected errors, which pg_regress does not emit.
reshke
force-pushed
the
fix-gp-hyperloglog-crash
branch
from
November 29, 2026 19:56
6b85d08 to
15df1cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On main, a malformed b=127 state reaches gp_hll_unpack() while planning this estimate and fails with an impossible allocation request:
SELECT gp_hyperloglog_get_estimate(encode(decode('7f040200ffffffff' ||
repeat('00',72), 'hex'), 'base64')::gp_hyperloglog_estimator);
ERROR: invalid memory alloc request size 18446744071562068048 (mcxt.c:1511)
Stack: gp_hll_unpack -> gp_hyperloglog_estimate ->
gp_hyperloglog_get_estimate -> evaluate_expr -> planner.
Reproduced on a cassert/debug build; the HLL source and header match main 3af3d64. The backend stayed alive; this is a query ERROR, not a process termination.