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 1iIQxG-0005Z1-7L for pgsql-general@arkaria.postgresql.org; Thu, 10 Oct 2019 05:25:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIQxE-00031C-SL for pgsql-general@arkaria.postgresql.org; Thu, 10 Oct 2019 05:25:36 +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 1iIQxE-00030x-Ew for pgsql-general@lists.postgresql.org; Thu, 10 Oct 2019 05:25:36 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iIQx7-0004eA-UF for pgsql-general@lists.postgresql.org; Thu, 10 Oct 2019 05:25:35 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A4EDE6E8; Thu, 10 Oct 2019 01:25:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 10 Oct 2019 01:25:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= from:to:cc:subject:in-reply-to:reply-to:date:message-id :mime-version:content-type; s=fm2; bh=HX+ESBB1EP7iS0CPZpTW9GWXhK YGlUqf5N7rFhrVsnw=; b=bel9l+XGPareC+x0H5JfKYYT6xHpUMC50Vm3m797a5 s/Ke8P8xG3ByJTam9Uf7RxHEdYMYwyf+NI4iFKbFUSq8y/oEyagGstC7yWeRPFrN 0tfUQmYrF/h/XDcD5w0i93AFVOpvIDTrCP6GyN7Saj+JZBTvYwxcGeOnbWtwaSOw cRtBWQL/Is1JuHTwrSz5CIPVVYYc8AHMHEs1OuzEjLKSOs0HhKRE2xf4HGbB4AXr Kh39v3krJ81GagP4y/fBex3l2wHYL2fGfrQs5QtHRGbpknTHr/NZCidCTGfzx2Ea izuVl31Ja+CZJQFsn+nO64o9FthRzufciNKE1E9TcHSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:reply-to:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=HX+ESB B1EP7iS0CPZpTW9GWXhKYGlUqf5N7rFhrVsnw=; b=DY2mmlnFQ2LRgXFl8ZBYan HMNX/nzuR0Ji58sKqjQlfLw4AklOxcRWfAtebNdbTZ7f6/FkVRydMiRBctq5C8EY wTyGDNueAJ3sW8BNmN2SGmiETmvlIdldAUVI+gooERw/GjhzV4EqL4nH5p9pJI7U hEQ5no4pXKUge6/aYjlUIklEZ6C4Bq7SHLy/nMWir2AQTR0eR9fMJTwUttQz4P0Q cko2ei+qvxz1v+t3Q/KGgi96b0Ska1sjQf6zdEaOntn8XaUba3Nf+WpuRFi0U+8T DyiCiv3TH/q215uiCQMhoyqlxgKczFycbmz7OqLTtg5NjyYIEqvdC7wy2kFmbpAA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedriedvgdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghrfffkgggtsehttdertddttddtnecuhfhrohhmpeetnhgurhgvshcu hfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepieejrd duiedtrddvudekrddvfeejnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshes rghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 74AA8D60063; Thu, 10 Oct 2019 01:25:27 -0400 (EDT) From: Andres Freund To: Tom Lane Cc: Andreas Joseph Krogh , pgsql-general@lists.postgresql.org Subject: Re: Segmentation fault with PG-12 In-Reply-To: <21109.1570630597@sss.pgh.pa.us> Reply-To: Date: Wed, 09 Oct 2019 22:25:26 -0700 Message-ID: <877e5duq7t.fsf@alap4.lan> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-10-09 10:16:37 -0400, Tom Lane wrote: > Andreas Joseph Krogh writes: > > Attached is output from "bt full". Is this helpful? > > Well, it shows that the failure is occurring while trying to evaluate > a variable in a trigger's WHEN clause during > "UPDATE origo_email_delivery SET folder_id=$1, created=$2\nWHERE entity_id IN ($3)\nRETURNING entity_id" > And I'd bet that the root cause is something to do with Andres' tuple slot > work. But (at least to my eye) it's not apparent exactly what's wrong. It looks like this could "just" be another report of #16036, which was already fixed in: commit d986d4e87f61c68f52c68ebc274960dc664b7b4e Author: Andres Freund Date: 2019-10-04 11:59:34 -0700 Fix crash caused by EPQ happening with a before update trigger present. > This doesn't seem to correlate with your original report, btw, > as that claimed the crash was during COMMIT. That however, would be confusing, unless there's some deferred trigger that causes another update, which then fires a before update trigger causing the problem. Greetings, Andres Freund