Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UtbaB-0001sO-AX for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Jul 2013 10:43:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UtbaA-0001bA-NI for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Jul 2013 10:43:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Utba9-0001b3-Q0 for pgsql-bugs@postgresql.org; Mon, 01 Jul 2013 10:43:41 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Utba1-0005a0-5k for pgsql-bugs@postgresql.org; Mon, 01 Jul 2013 10:43:41 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UtbZz-0001mo-W5 for pgsql-bugs@postgresql.org; Mon, 01 Jul 2013 10:43:32 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1UtbZu-0007xx-MH for pgsql-bugs@postgresql.org; Mon, 01 Jul 2013 10:43:26 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: BUG #8273: Assertion failure in 9.3 beta2 with serializable and savepoints To: pgsql-bugs@postgresql.org From: levertond@googlemail.com Message-Id: Date: Mon, 01 Jul 2013 10:43:26 +0000 X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8273 Logged by: David Leverton Email address: levertond@googlemail.com PostgreSQL version: Unsupported/Unknown Operating system: RHEL 5 x86_64 Description: The following test case causes a backend assertion failure in 9.3 beta2: START TRANSACTION ISOLATION LEVEL SERIALIZABLE; CREATE TABLE testing(   x INTEGER PRIMARY KEY ); INSERT INTO testing VALUES(1); SELECT * FROM testing WHERE x = 1 FOR UPDATE; SAVEPOINT test; UPDATE testing SET x = 2 WHERE x = 1; ROLLBACK TO test; UPDATE testing SET x = 3 WHERE x = 1; ROLLBACK; TRAP: FailedAssertion("!(((xid) != ((TransactionId) 0)))", File: "predicate.c", Line: 3936) Postgres was installed using the RPMs from http://yum.pgrpms.org/, and is using a near-default configuration (changes to port number, data directory and pg_hba.conf, and some roles created, but nothing likely to influence this bug). The full backtrace is as follows: #0  0x0000003d66a30265 in raise () from /lib64/libc.so.6 #1  0x0000003d66a31d10 in abort () from /lib64/libc.so.6 #2  0x000000000074af8d in ExceptionalCondition (     conditionName=, errorType=,     fileName=, lineNumber=)     at assert.c:54 #3  0x00000000006784bf in CheckForSerializableConflictOut (visible=1 '\001',     relation=, tuple=,     buffer=, snapshot=)     at predicate.c:3936 #4  0x000000000049208e in heap_hot_search_buffer (tid=0x2abfdac,     relation=0x2ad4b49eba78, buffer=260, snapshot=0x29cb3b0,     heapTuple=0x2abfda8, all_dead=0x7fff510be26f "\001X\375\253\002",     first_call=1 '\001') at heapam.c:1730 #5  0x000000000049ad1a in index_fetch_heap (scan=0x2abfd58) at indexam.c:529 #6  0x000000000049afb3 in index_getnext (scan=0x2abfd58,     direction=ForwardScanDirection) at indexam.c:612 #7  0x00000000005adafb in IndexNext (node=0x2abe9d0) at nodeIndexscan.c:78 #8  0x00000000005a1cf8 in ExecScanFetch (node=0x2abe9d0,     accessMtd=0x5adab0 , recheckMtd=0x5ada60 )     at execScan.c:82 #9  ExecScan (node=0x2abe9d0, accessMtd=0x5adab0 ,     recheckMtd=0x5ada60 ) at execScan.c:167 #10 0x000000000059a94e in ExecProcNode (node=0x2abe9d0) at execProcnode.c:404 #11 0x00000000005b1253 in ExecModifyTable (node=0x2abe6c0)     at nodeModifyTable.c:918 #12 0x000000000059a90c in ExecProcNode (node=0x2abe6c0) at execProcnode.c:377 #13 0x0000000000599b4d in ExecutePlan (queryDesc=0x2a98408, direction=12114,     count=0) at execMain.c:1470 #14 standard_ExecutorRun (queryDesc=0x2a98408, direction=12114, count=0)     at execMain.c:306 #15 0x0000000000683e5f in ProcessQuery (plan=0x2ab32c0,     sourceText=0x2a67128 "UPDATE testing SET x = 3 WHERE x = 1;",     params=, dest=0x2ab33b8,     completionTag=0x7fff510be700 "") at pquery.c:185 #16 0x00000000006840d7 in PortalRunMulti (portal=0x29d12a8,     isTopLevel=, dest=0x2ab33b8, altdest=0x2ab33b8,     completionTag=0x7fff510be700 "") at pquery.c:1279 #17 0x0000000000684cf2 in PortalRun (portal=0x29d12a8,     count=9223372036854775807, isTopLevel=1 '\001', dest=0x2ab33b8,     altdest=0x2ab33b8, completionTag=0x7fff510be700 "") at pquery.c:816 #18 0x000000000068105d in exec_simple_query (     query_string=0x2a67128 "UPDATE testing SET x = 3 WHERE x = 1;")     at postgres.c:1048 #19 0x000000000068255e in PostgresMain (argc=,     argv=, dbname=0x29d6088 "postgres",     username=) at postgres.c:3985 #20 0x00000000006355b6 in ServerLoop () at postmaster.c:3987 #21 0x0000000000638a77 in PostmasterMain (argc=5, argv=0x29b0b80)     at postmaster.c:1246 #22 0x00000000005ce293 in main (argc=5, argv=)     at main.c:196 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs