Uh oh!
There was an error while loading. Please reload this page.
Fix: quick exit in dumptuples if query execution is finished - #1338
Conversation
yjhjstz
commented
Sep 2, 2025
any stack to help to review ? |
HuSen8891
commented
Sep 2, 2025
#0 0x00007f225274335b in raise () from /lib64/libpthread.so.0 |
Uh oh!
There was an error while loading. Please reload this page.
If QueryFinishPending is set when query is running into dumptuples, the tuplecontext is reset but memtuples are not cumsumed. When query is running into dumptuples again, tuplesort_sort_memtuples will access these memtuples, and the memory allocated in tuplecontext is already freed, this will cause invalid memory access. To avoid this situation, do nothing in dumptuples if QueryFinishPending is set.
Uh oh!
There was an error while loading. Please reload this page.
If QueryFinishPending is set when query is running into dumptuples, the tuplecontext is reset but memtuples are not cumsumed. When query is running into dumptuples again, tuplesort_sort_memtuples will access these memtuples, and the memory allocated in tuplecontext is already freed, this will cause invalid memory access.
To avoid this situation, do nothing in dumptuples if QueryFinishPending is set.
Fixes #ISSUE_Number
What does this PR do?
Type of Change
Breaking Changes
Test Plan
make installcheckmake -C src/test installcheck-cbdb-parallelImpact
Performance:
User-facing changes:
Dependencies:
Checklist
Additional Context
CI Skip Instructions