Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iz3yF-0003rP-2A for pgsql-general@arkaria.postgresql.org; Tue, 04 Feb 2020 19:34:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iz3yD-0006hm-JX for pgsql-general@arkaria.postgresql.org; Tue, 04 Feb 2020 19:34:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iz3yD-0006hf-69 for pgsql-general@lists.postgresql.org; Tue, 04 Feb 2020 19:34:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iz3yA-0005om-CG for pgsql-general@postgresql.org; Tue, 04 Feb 2020 19:34:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 014JYfXv023191; Tue, 4 Feb 2020 14:34:41 -0500 From: Tom Lane To: Doug Roberts cc: Adrian Klaver , pgsql-general Subject: Re: Postgres Crashing In-reply-to: References: <823.1580772106@sss.pgh.pa.us> Comments: In-reply-to Doug Roberts message dated "Tue, 04 Feb 2020 14:19:19 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23189.1580844881.1@sss.pgh.pa.us> Date: Tue, 04 Feb 2020 14:34:41 -0500 Message-ID: <23190.1580844881@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Doug Roberts writes: > Hopefully the following stack trace is more helpful. > Exception thrown at 0x0000000140446403 in postgres.exe: 0xC0000005: Access > violation reading location 0xFFFFFFFFFFFFFFF8. occurred >> postgres.exe!pfree(void * pointer) Line 1033 C > postgres.exe!tts_buffer_heap_clear(TupleTableSlot * slot) Line 653 C > [Inline Frame] postgres.exe!ExecClearTuple(TupleTableSlot *) Line 428 C > postgres.exe!ExecForceStoreHeapTuple(HeapTupleData * tuple, > TupleTableSlot * slot, bool shouldFree) Line 1448 C > postgres.exe!ExecBRUpdateTriggers(EState * estate, EPQState * epqstate, > ResultRelInfo * relinfo, ItemPointerData * tupleid, HeapTupleData * > fdw_trigtuple, TupleTableSlot * newslot) Line 3117 C Ah, so you *are* using before-row update triggers. Almost certainly, this is the same bug fixed by commit 60e97d63e, so you should be okay if you update to 12.1. (There are some related issues that will be fixed in 12.2, due out next week.) regards, tom lane