Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgtFZ-0007vO-RD for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Aug 2017 13:48:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dgtFY-0005TJ-Nv for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Aug 2017 13:48:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dgtFV-0005RI-SG for pgsql-hackers@postgresql.org; Sun, 13 Aug 2017 13:48:14 +0000 Received: from mout.gmx.net ([212.227.17.22]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dgtFR-00088V-Mt for pgsql-hackers@postgresql.org; Sun, 13 Aug 2017 13:48:12 +0000 Received: from moll ([80.187.101.86]) by mail.gmx.com (mrgmx103 [212.227.17.174]) with ESMTPSA (Nemesis) id 0LwrS8-1dVy4h2Pm4-016MAE; Sun, 13 Aug 2017 15:48:03 +0200 From: Andreas Seltenreich To: Tom Lane Cc: Robert Haas , Jeevan Chalke , PostgreSQL Hackers Subject: Re: Server crash (FailedAssertion) due to catcache refcount mis-handling References: <4244.1502206577@sss.pgh.pa.us> <6299.1502209596@sss.pgh.pa.us> <16208.1502224491@sss.pgh.pa.us> <87shgz6hm4.fsf@ansel.ydns.eu> X-PGP-Key: 4096R/803D1FFF 2015-02-04 Key fingerprint = 4758 81DC 8539 494D 29B4 692D F587 0601 803D 1FFF X-Now-Playing: Sign (album version) =?utf-8?Q?=E2=99=AA?= Hoshi No Koe =?utf-8?Q?=E2=99=AA?= Nobukazu Takemura Date: Sun, 13 Aug 2017 15:48:00 +0200 In-Reply-To: <87shgz6hm4.fsf@ansel.ydns.eu> (Andreas Seltenreich's message of "Thu, 10 Aug 2017 08:50:59 +0200") Message-ID: <877ey7bmun.fsf@ansel.ydns.eu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:jWGqGGR/eujfPrRJxbDgnVuTVzq4y3cXqBMPmPBybE8eCICp9kK Jl8TGYrfYIZcAScGF2r8qfskpUV/vbUdC0yBECvaDC17Cz1mttWngb/RNASua2CMKpDVC0T GzjepXswPmb0paT6QuyXLNbmt4D0ARmg4zgmUJN6tRgZBP0vZtOIlBcFwj9WUT0eTg+UJKr 1F9CcAmXep0BxZH8OavFw== X-UI-Out-Filterresults: notjunk:1;V01:K0:cjotwuCPVBI=:SBcBkYpCEEYQmKRIMuIuZT jxVpfmggvEVEi6XG+nviEQtFs5qaVLhHIDHEoYmRbZn9i9LCuAPHWCJx1+dop0BvCUYd9Wsv3 cOqJioejxzPdzoR0OJ7E03AsRPBws+MluX4W186Ziy3bFOtnkSWtljRpsA7LqYr3XqIJmI02d 6NavyFI7Ycg1v4d2+HvyBnqvJOPZEpQ3Pvy+B/1BPWFWjDExSnDXP5C7rZuJ51yGg4N+N3n4N 27AIM+CrtM6M+PVgQCZTTit/g+Qo0Ii5ii5fO/uVsXsXBXN2byQB9PAPvyA1etA+0lPg3E6S6 tp67UNFsYu5TNS5w+qurlp2Gkn2X3GObZ5AF7JcJUnwwY9EhIno1tk8fByj4VcIQQhM94i8Bc 7nuf2w+4JruIDYmMUfrn6epm5Yp0bRuuYki0jzJDYJSfS9O/XV9dXLU4YmLoGSyXviyLeLDam SsEtbrF/QoQUBmu8C4eyOv3fqphxzOy5s+dPYKhozRjA4oUfvCLifdmJ5NY3FSRw9epA+H8Ag Kpod9dxSuB9HlfsgpQO4LS8NJbUy/9TD8Z71NHEDYyjYxVJ4mwILQHNVULY/6ARWvQEmYxQh8 L/D3ZjtseqkTTh7Mkp/11hu6KW5OI97N/2GRy9FFhkHMeckTU/ftjYqiKZ0cG5Up9OfbgONCD IySvdd3HBv9l0D6JQ9eFeF44BqnhOjDOG+O3zfQ5DDX2ZIdEKdGnLpp3RORgsU3sO9FkIhrm3 K8H7XXVdvuDGewRNHKtfH7Tt6tWgtCAJTSqvbVg9B2usM36Xw6bNWTbqjfYHAn+HPTV0ciPzK XqZ2Gpc0AhzjAhXQvYe4Yw8+cHDk5nM8E/+lRhlOM9pQHg75zo= List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Tom Lane writes: > I wonder if Andreas would be interested in trying the randomly-timed- > SIGTERM thing with sqlsmith. So far, most of the core dumps generated are Jeevan's assertion failing with backtraces through SearchCatCacheList. The rest is failing this assertion: TRAP: FailedAssertion("!(portal->cleanup == ((void *)0))", File: "portalmem.c", Line: 846) Example backtrace below. They all happened during a rollback statement. Testing was done on master at 2336f84284. regards, Andreas Core was generated by `postgres: smith regression [local] ROLLBACK '. Program terminated with signal SIGABRT, Aborted. #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58 #1 0x00007f4c26d3240a in __GI_abort () at abort.c:89 #2 0x0000559d18897a73 in ExceptionalCondition (conditionName=conditionName@entry=0x559d18a81370 "!(portal->cleanup == ((void *)0))", errorType=errorType@entry=0x559d188e3f7d "FailedAssertion", fileName=fileName@entry=0x559d18a81013 "portalmem.c", lineNumber=lineNumber@entry=846) at assert.c:54 #3 0x0000559d188c42f1 in AtCleanup_Portals () at portalmem.c:846 #4 0x0000559d18536cb7 in CleanupTransaction () at xact.c:2652 #5 0x0000559d1853b825 in AbortOutOfAnyTransaction () at xact.c:4278 #6 0x0000559d188a7799 in ShutdownPostgres (code=, arg=) at postinit.c:1146 #7 0x0000559d1876b4e9 in shmem_exit (code=code@entry=1) at ipc.c:228 #8 0x0000559d1876b5fa in proc_exit_prepare (code=code@entry=1) at ipc.c:185 #9 0x0000559d1876b688 in proc_exit (code=code@entry=1) at ipc.c:102 #10 0x0000559d188999b1 in errfinish (dummy=) at elog.c:543 #11 0x0000559d1878fefa in ProcessInterrupts () at postgres.c:2841 #12 0x0000559d18790829 in ProcessInterrupts () at postgres.c:2828 #13 0x0000559d18795395 in PortalRunMulti (portal=portal@entry=0x559d197f2bf0, isTopLevel=isTopLevel@entry=1 '\001', setHoldSnapshot=setHoldSnapshot@entry=0 '\000', dest=dest@entry=0x559d19850c40, altdest=altdest@entry=0x559d19850c40, completionTag=completionTag@entry=0x7ffc04f1b560 "") at pquery.c:1239 #14 0x0000559d18796069 in PortalRun (portal=portal@entry=0x559d197f2bf0, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=1 '\001', run_once=run_once@entry=1 '\001', dest=dest@entry=0x559d19850c40, altdest=altdest@entry=0x559d19850c40, completionTag=0x7ffc04f1b560 "") at pquery.c:799 #15 0x0000559d18791dca in exec_simple_query (query_string=0x559d1984fe00 "ROLLBACK;") at postgres.c:1099 #16 0x0000559d18793af1 in PostgresMain (argc=, argv=argv@entry=0x559d197fa078, dbname=, username=) at postgres.c:4090 #17 0x0000559d184a3428 in BackendRun (port=0x559d197e8f00) at postmaster.c:4357 #18 BackendStartup (port=0x559d197e8f00) at postmaster.c:4029 #19 ServerLoop () at postmaster.c:1753 #20 0x0000559d1871ad65 in PostmasterMain (argc=3, argv=0x559d197be5a0) at postmaster.c:1361 #21 0x0000559d184a4a6d in main (argc=3, argv=0x559d197be5a0) at main.c:228 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers