Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPudu-0006kK-Q3 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jul 2016 16:46:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bPudu-0002SY-5u for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jul 2016 16:46:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bPucX-0000wN-VP for pgsql-hackers@postgresql.org; Wed, 20 Jul 2016 16:45:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bPucQ-0008N8-I1 for pgsql-hackers@postgresql.org; Wed, 20 Jul 2016 16:45:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u6KGj4vR021843; Wed, 20 Jul 2016 12:45:04 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: skink's test_decoding failures in 9.4 branch In-reply-to: <17922.1469030757@sss.pgh.pa.us> References: <17922.1469030757@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 20 Jul 2016 12:05:57 -0400" Date: Wed, 20 Jul 2016 12:45:04 -0400 Message-ID: <21842.1469033104@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 I wrote: > I've still had no luck reproducing it here, though. Hah --- I take that back. On about the fourth or fifth trial: ==00:00:00:34.291 21525== Invalid read of size 1 ==00:00:00:34.291 21525== at 0x4A08DEC: memcpy (mc_replace_strmem.c:882) ==00:00:00:34.291 21525== by 0x66FA54: DecodeXLogTuple (decode.c:899) ==00:00:00:34.291 21525== by 0x670561: LogicalDecodingProcessRecord (decode.c:711) ==00:00:00:34.291 21525== by 0x671BC3: pg_logical_slot_get_changes_guts (logicalfuncs.c:440) ==00:00:00:34.291 21525== by 0x5C0B6B: ExecMakeTableFunctionResult (execQual.c:2196) ==00:00:00:34.291 21525== by 0x5D4131: FunctionNext (nodeFunctionscan.c:95) ==00:00:00:34.291 21525== by 0x5C170D: ExecScan (execScan.c:82) ==00:00:00:34.291 21525== by 0x5BA007: ExecProcNode (execProcnode.c:426) ==00:00:00:34.291 21525== by 0x5B8A61: standard_ExecutorRun (execMain.c:1490) ==00:00:00:34.291 21525== by 0x6BFE36: PortalRunSelect (pquery.c:942) ==00:00:00:34.291 21525== by 0x6C11EF: PortalRun (pquery.c:786) ==00:00:00:34.291 21525== by 0x6BD7E3: exec_simple_query (postgres.c:1072) ==00:00:00:34.291 21525== Address 0xe5311d6 is 6 bytes after a block of size 8,192 alloc'd ==00:00:00:34.291 21525== at 0x4A06A2E: malloc (vg_replace_malloc.c:270) ==00:00:00:34.291 21525== by 0x4ED399: XLogReaderAllocate (xlogreader.c:83) ==00:00:00:34.291 21525== by 0x6710B3: StartupDecodingContext (logical.c:161) ==00:00:00:34.291 21525== by 0x671303: CreateDecodingContext (logical.c:413) ==00:00:00:34.291 21525== by 0x671AF7: pg_logical_slot_get_changes_guts (logicalfuncs.c:394) ==00:00:00:34.291 21525== by 0x5C0B6B: ExecMakeTableFunctionResult (execQual.c:2196) ==00:00:00:34.291 21525== by 0x5D4131: FunctionNext (nodeFunctionscan.c:95) ==00:00:00:34.291 21525== by 0x5C170D: ExecScan (execScan.c:82) ==00:00:00:34.291 21525== by 0x5BA007: ExecProcNode (execProcnode.c:426) ==00:00:00:34.291 21525== by 0x5B8A61: standard_ExecutorRun (execMain.c:1490) ==00:00:00:34.291 21525== by 0x6BFE36: PortalRunSelect (pquery.c:942) ==00:00:00:34.291 21525== by 0x6C11EF: PortalRun (pquery.c:786) ==00:00:00:34.291 21525== ... ... ==00:00:00:35.011 21525== Invalid read of size 1 ==00:00:00:35.011 21525== at 0x4A08CCA: memcpy (mc_replace_strmem.c:882) ==00:00:00:35.011 21525== by 0x66FA54: DecodeXLogTuple (decode.c:899) ==00:00:00:35.011 21525== by 0x670561: LogicalDecodingProcessRecord (decode.c:711) ==00:00:00:35.011 21525== by 0x671BC3: pg_logical_slot_get_changes_guts (logicalfuncs.c:440) ==00:00:00:35.011 21525== by 0x5C0B6B: ExecMakeTableFunctionResult (execQual.c:2196) ==00:00:00:35.011 21525== by 0x5D4131: FunctionNext (nodeFunctionscan.c:95) ==00:00:00:35.011 21525== by 0x5C170D: ExecScan (execScan.c:82) ==00:00:00:35.011 21525== by 0x5BA007: ExecProcNode (execProcnode.c:426) ==00:00:00:35.012 21525== by 0x5B8A61: standard_ExecutorRun (execMain.c:1490) ==00:00:00:35.012 21525== by 0x6BFE36: PortalRunSelect (pquery.c:942) ==00:00:00:35.012 21525== by 0x6C11EF: PortalRun (pquery.c:786) ==00:00:00:35.012 21525== by 0x6BD7E3: exec_simple_query (postgres.c:1072) ==00:00:00:35.012 21525== Address 0x4ff2450 is 0 bytes after a block of size 8,192 alloc'd ==00:00:00:35.012 21525== at 0x4A06A2E: malloc (vg_replace_malloc.c:270) ==00:00:00:35.012 21525== by 0x4ED399: XLogReaderAllocate (xlogreader.c:83) ==00:00:00:35.012 21525== by 0x6710B3: StartupDecodingContext (logical.c:161) ==00:00:00:35.012 21525== by 0x671303: CreateDecodingContext (logical.c:413) ==00:00:00:35.012 21525== by 0x671AF7: pg_logical_slot_get_changes_guts (logicalfuncs.c:394) ==00:00:00:35.012 21525== by 0x5C0B6B: ExecMakeTableFunctionResult (execQual.c:2196) ==00:00:00:35.012 21525== by 0x5D4131: FunctionNext (nodeFunctionscan.c:95) ==00:00:00:35.012 21525== by 0x5C170D: ExecScan (execScan.c:82) ==00:00:00:35.012 21525== by 0x5BA007: ExecProcNode (execProcnode.c:426) ==00:00:00:35.012 21525== by 0x5B8A61: standard_ExecutorRun (execMain.c:1490) ==00:00:00:35.012 21525== by 0x6BFE36: PortalRunSelect (pquery.c:942) ==00:00:00:35.012 21525== by 0x6C11EF: PortalRun (pquery.c:786) ==00:00:00:35.012 21525== ==00:00:00:35.012 21525== Invalid read of size 1 ==00:00:00:35.012 21525== at 0x4A08CB8: memcpy (mc_replace_strmem.c:882) ==00:00:00:35.012 21525== by 0x66FA54: DecodeXLogTuple (decode.c:899) ==00:00:00:35.012 21525== by 0x670561: LogicalDecodingProcessRecord (decode.c:711) ==00:00:00:35.012 21525== by 0x671BC3: pg_logical_slot_get_changes_guts (logicalfuncs.c:440) ==00:00:00:35.012 21525== by 0x5C0B6B: ExecMakeTableFunctionResult (execQual.c:2196) ==00:00:00:35.012 21525== by 0x5D4131: FunctionNext (nodeFunctionscan.c:95) ==00:00:00:35.012 21525== by 0x5C170D: ExecScan (execScan.c:82) ==00:00:00:35.012 21525== by 0x5BA007: ExecProcNode (execProcnode.c:426) ==00:00:00:35.012 21525== by 0x5B8A61: standard_ExecutorRun (execMain.c:1490) ==00:00:00:35.012 21525== by 0x6BFE36: PortalRunSelect (pquery.c:942) ==00:00:00:35.012 21525== by 0x6C11EF: PortalRun (pquery.c:786) ==00:00:00:35.012 21525== by 0x6BD7E3: exec_simple_query (postgres.c:1072) ==00:00:00:35.012 21525== Address 0x4ff2451 is 1 bytes after a block of size 8,192 alloc'd ==00:00:00:35.012 21525== at 0x4A06A2E: malloc (vg_replace_malloc.c:270) ==00:00:00:35.012 21525== by 0x4ED399: XLogReaderAllocate (xlogreader.c:83) ==00:00:00:35.012 21525== by 0x6710B3: StartupDecodingContext (logical.c:161) ==00:00:00:35.012 21525== by 0x671303: CreateDecodingContext (logical.c:413) ==00:00:00:35.012 21525== by 0x671AF7: pg_logical_slot_get_changes_guts (logicalfuncs.c:394) ==00:00:00:35.012 21525== by 0x5C0B6B: ExecMakeTableFunctionResult (execQual.c:2196) ==00:00:00:35.012 21525== by 0x5D4131: FunctionNext (nodeFunctionscan.c:95) ==00:00:00:35.012 21525== by 0x5C170D: ExecScan (execScan.c:82) ==00:00:00:35.012 21525== by 0x5BA007: ExecProcNode (execProcnode.c:426) ==00:00:00:35.012 21525== by 0x5B8A61: standard_ExecutorRun (execMain.c:1490) ==00:00:00:35.012 21525== by 0x6BFE36: PortalRunSelect (pquery.c:942) ==00:00:00:35.012 21525== by 0x6C11EF: PortalRun (pquery.c:786) ==00:00:00:35.012 21525== ... ... LOG: server process (PID 21525) exited with exit code 128 This is rather interesting because I do not recall that any of skink's failures have shown an access more than 1 byte past the end of the buffer. Any suggestions how to debug this? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers