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.92) (envelope-from ) id 1jDEJH-0001sa-Rd for pgsql-bugs@arkaria.postgresql.org; Sat, 14 Mar 2020 21:27:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDEJG-0007D5-KO for pgsql-bugs@arkaria.postgresql.org; Sat, 14 Mar 2020 21:27:06 +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 1jDEJE-0007Cx-MH for pgsql-bugs@lists.postgresql.org; Sat, 14 Mar 2020 21:27:06 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDEJB-0007Fw-S3 for pgsql-bugs@lists.postgresql.org; Sat, 14 Mar 2020 21:27:03 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B77BE4ED; Sat, 14 Mar 2020 17:26:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 14 Mar 2020 17:26:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=LXzHZCuizUy06eHPVve4htw/77m r0leZ/tuuadzvbvU=; b=KiTNQT/xQRhJOwLW4ATIQo3lRXscLY0GQdRlXWt+35P qQgnsVHxrJ41XgzOTVl8RKD0KKbnwJqFstDuXTrWHx5VftvpRxiG6s/kXzUpW0C0 ubuOple9yAuJYjMoCpoWHVbgoKJ05FEG2AIl2ZoFNWT9LmCoNJYi9XdTvE8MLQ2S TGhogNiihH7OH8+jloNG/njtHROpkr0SzqRSInb1kWZQYjVaEY2EnxYGZk0+iShy AlDu2HSyoU37D5oEgsXttUW7ojAz2AA0aZY5LAgCDx7azutIrqUDU0M4NT/S94xw PPa/2gY2khx4aXUyEex09NB8M44+MyojgyxUBIwGp7Q== 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:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=LXzHZC uizUy06eHPVve4htw/77mr0leZ/tuuadzvbvU=; b=VUGDDQ1lxGEjY6sVJ2+fXs uGRFImTlmpEMmcCgh/VGHu3vXTkq/He9sYef5bo9Jwvi6qLLbIm9iZIjDLDrGH7i VIeB4EZvJwEy1HR+kSNLyIQpUD+EFGDBnS7kVjOn4S+eK5SvSxIkyIVrcWVlV/E5 Cp6iq5UaNqc8soNbXVA7qEARWPrSXAGIDqetw9vZVRAwwXghSwVaomHEYPqxCH3H yeSFn1skKL2sHr8kJSCLG6y05d7pCVsqMqUnQtdAhT0JOmU+Tz+A8UPoUWWBIW61 nDko8blrvfdzHno4zB8TyR55d4Ct3S51utPUNoFxiJfIr5exqmFcBtUrMbl5ocIA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvledgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegr nhgrrhgriigvlhdruggvqeenucfkphepieejrdduiedtrddvudejrddvhedtnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegr nhgrrhgriigvlhdruggv X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id AA8C930614FA; Sat, 14 Mar 2020 17:26:58 -0400 (EDT) Date: Sat, 14 Mar 2020 14:26:57 -0700 From: Andres Freund To: Tom Lane Cc: Daniel WM , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16293: postgres segfaults and returns SQLSTATE 08006 Message-ID: <20200314212657.jnvxfocyd5redf3p@alap3.anarazel.de> References: <16293-26f5777d10143a66@postgresql.org> <28203.1583878791@sss.pgh.pa.us> <21088.1584220864@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21088.1584220864@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-03-14 17:21:04 -0400, Tom Lane wrote: > Daniel WM writes: > > I have finally isolated the issue and I have a set of steps that reliably > > cause the segfault: > > Interesting. I do *not* see a crash in v12 or HEAD, but v11 gives > me an assertion failure: > > TRAP: FailedAssertion("!(!slot->tts_fixedTupleDescriptor)", File: "execTuples.c", Line: 284) > 2020-03-14 17:16:06.626 EDT [1101] LOG: server process (PID 20822) was terminated by signal 6: Aborted > 2020-03-14 17:16:06.626 EDT [1101] DETAIL: Failed process was running: INSERT INTO parent_table VALUES ('2020-02-02 01:00:00+00:00', 'f'); > > here: > > #3 0x000000000063ef45 in ExecSetSlotDescriptor (slot=0x1cf4060, > tupdesc=0x7f903a2dd0f8) at execTuples.c:284 > #4 0x00000000006360eb in ExecConstraints (resultRelInfo=0x1cf47b8, > slot=0x1cf4060, estate=0x1cf3778) at execMain.c:2062 > #5 0x000000000065a44d in ExecInsert (mtstate=0x1cf3ae0, slot=0x1cf4060, > planSlot=0x1cf4060, estate=0x1cf3778, canSetTag=true) > at nodeModifyTable.c:398 > #6 0x000000000065b80b in ExecModifyTable (pstate=) > at nodeModifyTable.c:2159 > #7 0x0000000000636c27 in ExecProcNode (queryDesc=0x1ce51e8, > direction=, count=0, execute_once=224) > at ../../../src/include/executor/executor.h:247 > #8 ExecutePlan (queryDesc=0x1ce51e8, direction=, > count=0, execute_once=224) at execMain.c:1723 > #9 standard_ExecutorRun (queryDesc=0x1ce51e8, > direction=, count=0, execute_once=224) > > So this looks like something to do with Andres' tupletableslot work. Interesting. There wasn't that much in v11. It's not the general rework, but just the allocation of the descriptor together slot when the descriptor is known at creation time - or a conflict with concurrent partitioning work. It's plausible that enough changed in master for that to not be a problem anymore. Looking. Greetings, Andres Freund