Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIEsi-00088m-Nc for pgsql-general@arkaria.postgresql.org; Thu, 01 Nov 2018 15:27:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIEsh-0002Dm-2H for pgsql-general@arkaria.postgresql.org; Thu, 01 Nov 2018 15:27:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIEsg-0002D9-JN for pgsql-general@lists.postgresql.org; Thu, 01 Nov 2018 15:27:34 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gIEsZ-0000wh-8j for pgsql-general@lists.postgresql.org; Thu, 01 Nov 2018 15:27:33 +0000 Received: by mail-qt1-x842.google.com with SMTP id v11so1008313qtc.2 for ; Thu, 01 Nov 2018 08:27:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=7B5DPKlyp2H2+d/5VczrSRTf7wMzZJGok/YR7D+n6OU=; b=pxrxd8FP+SJT0uqvxL3Rz7ejEzDkJgZ2zsL7Yrx15zqZKbBr3RDlK4jHsWt2IF4PyY YQHpgsQtVBKwDf9Bq0nA19ZUkmTeWps5yf8CYD5WUO+scbABnXQ4zJN+7f4KvsHkK+XL jzkA+8ytPFUrJPAu5xAaz1BgVcMAkmYZZ8ewmY/bAILOIIQclsNq6Qc0Vjw3l1HPp2ko Gci48hxe5kpgCz2eMMx7BB2WjOgyi+ew/2XNSI6JRHVaSZpL1PJ9QxnzfbRmS4MMMsZF EndwH8WluqOZYin3R1D+fMWGvFpEKxgfMmH3HCMiI462K2G1ie4bb8o6uV5IgM2qYeaA F4sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=7B5DPKlyp2H2+d/5VczrSRTf7wMzZJGok/YR7D+n6OU=; b=C75YXbph44aXx5GonLbXvypvD4ZGGqRm/oXziqABe0QRQfgH2NktQxKUL1e+3cqd/F pKqLvoTEcuY7ulocTJ/VQEjmp4edqZKjbtSZYk/49OgHV/m8/XKnAKaSv5f9GaRMttPv Up/lhUvicmgJFRrabFPc7CgmoTihMiLou54x3kIK/cjV3RQ/H/3FCqCCOBxTWQ5dyvu+ wH2lWhpSYTeDfbokLmdj8FFI0LCFkS4bumWdlSnQbymIJ2G5DXss6x67/Q+DvXpNYNpP nLiXLOdafamJ71nCNUFbsN0PVfJClpv91YI6fREVT4mBCTUdksUsfP4S67AChNPt+tIz 302Q== X-Gm-Message-State: AGRZ1gIihCd4nSRg8Ltj1qi/dilt82Emwfd6Sp2qV527H2viEiA3t9rZ msADzITXS6kwnTqDLy2Y83BvnhGpwaM= X-Google-Smtp-Source: AJdET5fr4FkS9SHWKgZfSKMv7U1tfhMowAnUCoNrCiar5MDuKoR2MdNl+Rxpegj5o+g58P4ftYqFNA== X-Received: by 2002:aed:3c0c:: with SMTP id t12mr7318175qte.226.1541086046195; Thu, 01 Nov 2018 08:27:26 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([201.186.80.75]) by smtp.gmail.com with ESMTPSA id w1-v6sm18683832qkd.6.2018.11.01.08.27.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 08:27:25 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E82A5681; Thu, 1 Nov 2018 12:27:23 -0300 (-03) Date: Thu, 1 Nov 2018 12:27:23 -0300 From: Alvaro Herrera To: Karsten Hilbert Cc: pgsql-general@lists.postgresql.org Subject: Re: backend crash on DELETE, reproducible locally Message-ID: <20181101152723.zq2dtcgntmcmr4br@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181101152115.GF2954@hermes.hilbert.loc> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-01, Karsten Hilbert wrote: > Program received signal SIGSEGV, Segmentation fault. > heap_attisnull (tup=0x0, attnum=5, tupleDesc=0xb2990ef4) at ./build/../src/backend/access/common/heaptuple.c:403 > 403 ./build/../src/backend/access/common/heaptuple.c: Datei oder Verzeichnis nicht gefunden. > (gdb) thread apply all bt full > > Thread 1 (Thread 0xb4c429c0 (LWP 22367)): > #0 heap_attisnull (tup=0x0, attnum=5, tupleDesc=0xb2990ef4) at ./build/../src/backend/access/common/heaptuple.c:403 > __func__ = "heap_attisnull" > #1 0x0087690d in ri_NullCheck (tupDesc=0xb2990ef4, tup=0x0, riinfo=0x2e1d548, rel_is_pk=true) at ./build/../src/backend/utils/adt/ri_triggers.c:2894 > attnums = 0x2e1d5a4 > i = 0 > allnull = true > nonenull = true > #2 0x00879bf7 in RI_FKey_cascade_del (fcinfo=0xbfbda9e4) at ./build/../src/backend/utils/adt/ri_triggers.c:917 Ah, now this is interesting. Can you please supply the definition of the table? I'm wondering if there is a partitioned table with an FK to this one. I'm not quite seeing how come 'tup' is NULL there. Can you 'print trigdata' in frame 2? In general terms, this bug report would have been more actionable if you had shown the definition of the tables involved right from the start. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services