Re: PostgreSQL crashes with SIGSEGV
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Aleksandr Parfenov <a.parfenov@postgrespro.ru>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2018-01-17T20:31:22Z
Lists: pgsql-bugs, pgsql-hackers
Peter Geoghegan <pg@bowt.ie> writes: > On Wed, Jan 17, 2018 at 11:23 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> I don't feel particularly comfortable committing a patch that >> was clearly labeled as a rushed draft by its author. >> Peter, where do you stand on this work? > I would like to take another pass over > WIP-tuplesort-memcontext-fix.patch, to be on the safe side. I'm > currently up to my neck in parallel CREATE INDEX work, though, and > would prefer to avoid context switching for a week or two, if > possible. How time sensitive do you think this is? Probably not very. It'd be nice to have it done by the next minor releases, ie before 5-Feb ... but given that these bugs are years old, missing that deadline would not be catastrophic. > I'm not sure whether or not we should also apply this > still-to-be-written 9.5 patch to 9.4 and 9.3, since those versions > don't have grouping sets, and so cannot crash. ISTM that we should > leave them alone, since tuplesort has had this problem forever. +1. If the problem isn't known to be reproducible in those branches, the risk of adding new bugs seems to outweigh any benefit. regards, tom lane
Commits
-
Fix actual and potential double-frees around tuplesort usage.
- c2d4eb1b1fa2 11.0 landed
- e4ff711582b1 9.5.13 landed
- c98f218fbf5a 10.4 landed
- 90decdba3786 9.6.9 landed
-
Allow the built-in ordered-set aggregates to share transition state.
- be0ebb65f512 11.0 cited
-
Avoid integer overflow while sifting-up a heap in tuplesort.c.
- 512f67c8d02c 10.0 cited
-
Allow avoiding tuple copy within tuplesort_gettupleslot().
- fa117ee40330 10.0 cited
-
Remove should_free arguments to tuplesort routines.
- 3856cf9607f4 10.0 cited
-
Fix use-after-free around DISTINCT transition function calls.
- a5f0bd77a2fa 9.6.1 cited
- d8589946ddd5 10.0 cited
-
Reuse abbreviated keys in ordered [set] aggregates.
- f1f5ec1efafe 9.6.0 cited