- Notifications
You must be signed in to change notification settings - Fork5
Commit0aa1e9a
committed
Fix possible crash due to incorrect allocation context.
Commitaf33039 aimed to reduceleakage from tqueue.c, which is good. Unfortunately, by changing thememory context in which all of gather_readnext() executes, it alsochanged the context in which ExecShutdownGatherWorkers executes, whichis not good, because that function eventually causes a call toExecParallelRetrieveInstrumentation, which proceeds to allocateplanstate->worker_instrument in a short-lived context, causing acrash.Rushabh Lathia, reviewed by Amit Kapila and by me.1 parentd95a7c3 commit0aa1e9a
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
503 | 504 | | |
504 | 505 | | |
505 | 506 | | |
| |||
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
517 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
518 | 526 | | |
519 | 527 | | |
520 | 528 | | |
| 529 | + | |
| 530 | + | |
521 | 531 | | |
522 | 532 | | |
523 | 533 | | |
| |||
0 commit comments
Comments
(0)