Re: BUG #14722: Segfault in tuplesort_heap_siftup, 32 bit overflow
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: skoposov@cmu.edu
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Date: 2017-06-29T16:34:40Z
Lists: pgsql-bugs
On Thu, Jun 29, 2017 at 9:16 AM, <skoposov@cmu.edu> wrote: > I have a very large table (40e9 records) that I'm trying to create the index > on and I am getting a segmentation fault that could be traced as far as I > understand to a 32 bit int overflow in tuplesort_heap_siftup Can your print the Tuplesortstate (the variable "state") within GDB, and post it here? -- Peter Geoghegan
Commits
-
Avoid integer overflow while sifting-up a heap in tuplesort.c.
- e439bbe9996f 9.4.13 landed
- e7213fe2bda8 9.5.8 landed
- 512f67c8d02c 10.0 landed
- 09c598898166 9.6.4 landed
-
Implement binary heap replace-top operation in a smarter way.
- 24598337c8d2 10.0 cited
-
Permit super-MaxAllocSize allocations with MemoryContextAllocHuge().
- 263865a48973 9.4.0 cited