Re: [BUGS] BUG #14808: V10-beta4, backend abort - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: [BUGS] BUG #14808: V10-beta4, backend abort
Date
Msg-id CAB7nPqRBE35VOtvU=VfV66sqvV5L+raGi8R64WBD3jjS3G4HZA@mail.gmail.com
Whole thread Raw
In response to [BUGS] BUG #14808: V10-beta4, backend abort  (phb07@apra.asso.fr)
Responses Re: [BUGS] BUG #14808: V10-beta4, backend abort
List pgsql-bugs
On Sat, Sep 9, 2017 at 3:48 PM,  <phb07@apra.asso.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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: matthew.r.maurer@gmail.com
Date:
Subject: [BUGS] BUG #14809: Heap Corruption with deeply nested triggers.
Next
From: Keith
Date:
Subject: [BUGS] Re: [BUGS] BUG #14802: Installation failed for french password Télécharger