Re: BUG #14808: V10-beta4, backend abort

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: phb07(at)apra(dot)asso(dot)fr
Cc: PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14808: V10-beta4, backend abort
Date: 2017-09-09 11:27:05
Message-ID: CAB7nPqRBE35VOtvU=VfV66sqvV5L+raGi8R64WBD3jjS3G4HZA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Sep 9, 2017 at 3:48 PM, <phb07(at)apra(dot)asso(dot)fr> wrote:
> INSERT 0 1101
> UPDATE 0
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> connection to server was lost

Crash is confirmed here so I am adding an open item. I have not dug
into the issue seriously, but at short glance we have a code path
trying to access something that has already been free'd:
#0 0x0000561bfe0f0959 in tuplestore_tuple_count
(state=0x7f7f7f7f7f7f7f7f) at tuplestore.c:548
548 return state->tuples;
(gdb) bt
#0 0x0000561bfe0f0959 in tuplestore_tuple_count
(state=0x7f7f7f7f7f7f7f7f) at tuplestore.c:548
#1 0x0000561bfdd8ca22 in SPI_register_trigger_data
(tdata=0x7ffc92083860) at spi.c:2764
#2 0x00007f7075da7156 in plpgsql_exec_trigger (func=0x561bfe7bc5a8,
trigdata=0x7ffc92083860) at pl_exec.c:692
#3 0x00007f7075da08e7 in plpgsql_call_handler (fcinfo=0x7ffc920833d0)
at pl_handler.c:24
(gdb) p state
$1 = (Tuplestorestate *) 0x7f7f7f7f7f7f7f7
--
Michael

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Keith 2017-09-09 14:21:16 Re: [BUGS] BUG #14802: Installation failed for french password Télécharger
Previous Message matthew.r.maurer 2017-09-09 07:48:55 BUG #14809: Heap Corruption with deeply nested triggers.