Re: PostgreSQL crashes with SIGSEGV
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Bernd Helmle <mailings@oopsware.de>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Date: 2017-12-08T02:08:12Z
Lists: pgsql-bugs, pgsql-hackers
On Fri, Dec 8, 2017 at 12:47 AM, Bernd Helmle <mailings@oopsware.de> wrote: > A customer recently reported a crash in a postgres backend. The backend > encountered a SIGSEGV, crashing during SELECTs from a fairly > complicated view using a grouping set directive. I've managed to > reproduce it by tracking it down to a specific SELECT, but > unfortunately couldn't yet manage to strip it down to a small, > repeatable test case which doesn't involve the whole (sensitive) > dataset. I'm reporting my findings so far, maybe it helps to track it > down already. Hmm. Even if you cannot reproduce an isolated test case, could it be possible to get an idea of the shape the SELECT query involved and of the schema plus the view? No need for sensitive data here. This would help in reproducing a test case. What are also the sizes involved? Even a small data set with work_mem low should trigger the problem? > I've tested this so far against very current REL9_6_STABLE and > REL9_5_STABLE and got them to crash with the same backtrace. The crash > is dependent on the chosen plan, experiments with work_mem show that > the crash seems to happen only if you get external sorts into the > execution plan. > REL10_STABLE seems not affected, as my extracted application query > doesn't crash there. That's one thing to begin with. So HEAD is not affected as well? -- Michael
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