Re: BUG #17995: Segmentation fault caused by UPDATE statement
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alexander Lakhin <exclusion@gmail.com>, zuming.jiang@inf.ethz.ch,
pgsql-bugs@lists.postgresql.org
Date: 2023-06-26T04:27:08Z
Lists: pgsql-bugs
Michael Paquier <michael@paquier.xyz> writes: > On Sun, Jun 25, 2023 at 06:00:00AM +0300, Alexander Lakhin wrote: >> BTW, there is a commitfest entry to eliminate a bunch of other stack >> overflow hazards (may be the fuzzer can find some of them too): >> https://commitfest.postgresql.org/43/4239/ > Thanks for the pointer, I'll double-check that. Some of the locations > of stack depth checks proposed involve performance-sensitive code > paths, though, like mcxt.c :/ I hadn't looked at the patch yet, but ... mcxt.c? How is that recursive? Even if there is some path that recurses through that, wouldn't the check be better placed in a less-hot part of the loop? regards, tom lane
Commits
-
Check for interrupts and stack overflow in TParserGet().
- c7f33a197bf2 11.21 landed
- b6ab18a990ff 13.12 landed
- a77d90171441 15.4 landed
- 691594acd67e 16.0 landed
- 4c61afa47c61 14.9 landed
- 3b4580f5ce98 12.16 landed
-
Doc: Clarify the behavior of triggers/rules in a logical subscriber.
- f5c446e33675 16.0 cited