Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pnUJw-0006Oe-5y for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Apr 2023 01:03:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pnUJv-0001vj-3Z for pgsql-hackers@arkaria.postgresql.org; Sat, 15 Apr 2023 01:03:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pnUJu-0001sj-Ey for pgsql-hackers@lists.postgresql.org; Sat, 15 Apr 2023 01:03:14 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pnUJq-0006yZ-O8 for pgsql-hackers@postgresql.org; Sat, 15 Apr 2023 01:03:13 +0000 Received: by mail-io1-xd34.google.com with SMTP id y187so4549639iof.4 for ; Fri, 14 Apr 2023 18:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20221208.gappssmtp.com; s=20221208; t=1681520590; x=1684112590; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WN7Zjry3eWRTTg4EtnHrCKwZS7hxbFgQBUZb5hGh5iU=; b=SlFym4oPzsKE0pTqONpJm0vWDcAC39Eo/716sOO78mZF3V7LGbTRKYrshSpdEGZx56 IFbn/psfZa0M17Z8VxlgtZA3ctggvgqU0TjuWELHnylN126fTiR/p6pt+VsP7w5FmCtJ 6JSdff8+SM5AmL3wpxtnZanPOBqHVJvbsYdw3tpU0ynCeau4sNJWpJBP6IRy1Q0BdhDD 6TZapt6Ks+jSg+QVOm4OGuAl3kR5OfsIPyU/XhZgAzW0+rQ0stfcrsEtRDLh9G0LFnOt RPivBiu2gzSKdB9xFxyK8cVIfblhh+rle0AUmyFofkpCHbNFOVzt+RGsr+eXo5LGlZYV E/pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681520590; x=1684112590; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WN7Zjry3eWRTTg4EtnHrCKwZS7hxbFgQBUZb5hGh5iU=; b=W/uvIs++/NNm+HQEsoL0O/TNaEvrhE9DyTggOBYd2aI+j63RoySGVr5a6tQbldpYY0 BBj7iInWEYGcp/2YlNrliqvm0DtrhBQTiqoMU9XvYppI4N4uZUU4g9MKdTT+9gS0Vw2U unCfIV+mzjG2sgTUuoz9F4fwlN31UBnIhuFUcybbtkgERQJZ5wYConYpJ+hAik1ws7Nq Fkmd8f8A4A7CT/3bSNw8D1XNZ43XXFjl0tEHzRVZD4j1iMGMQzfJkst9J+9sKzoh+gRM jvJbqO2xixUQROQyjOzliIdQceRbDbrY1JM6nXcAKOsXOby/uqM3/nRYBQY2qMUhGKR/ XHEA== X-Gm-Message-State: AAQBX9fQv83CWVNXZ6/B8OWfAVFuPzVcrI7nfzy0EUFZ7gbD7Kyi+ceB oTcwkuL8Cfpk9ZjL3QkGTmZOuB8Gi8A16jwJ9c8= X-Google-Smtp-Source: AKy350bAEiOqprXavR7SXq0TXJOTO5j4C2gz7PRZ+TfttWWPahIQXDuyPcPOt1di1GQm80LvtTr5zA== X-Received: by 2002:a6b:6b02:0:b0:760:cdf3:a2a9 with SMTP id g2-20020a6b6b02000000b00760cdf3a2a9mr2038345ioc.5.1681520589946; Fri, 14 Apr 2023 18:03:09 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id m6-20020a026d06000000b003bf39936d1esm1542406jac.131.2023.04.14.18.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 18:03:08 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id C3E29800576; Fri, 14 Apr 2023 20:03:07 -0500 (CDT) Date: Fri, 14 Apr 2023 20:03:07 -0500 From: Justin Pryzby To: David Rowley Cc: pgsql-hackers@postgresql.org, Tom Lane Subject: Re: v16dev: invalid memory alloc request size 8488348128 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Maybe you'll find valgrind errors to be helpful. ==17971== Source and destination overlap in memcpy(0x1eb8c078, 0x1d88cb20, 123876054) ==17971== at 0x4C2E81D: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==17971== by 0x9C705A: memcpy (string3.h:51) ==17971== by 0x9C705A: pg_detoast_datum_copy (fmgr.c:1823) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== by 0x871CCE: PortalRun (pquery.c:768) ==17971== by 0x86D552: exec_simple_query (postgres.c:1274) ==17971== Invalid read of size 8 ==17971== at 0x4C2EA20: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==17971== by 0x9C705A: memcpy (string3.h:51) ==17971== by 0x9C705A: pg_detoast_datum_copy (fmgr.c:1823) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== by 0x871CCE: PortalRun (pquery.c:768) ==17971== by 0x86D552: exec_simple_query (postgres.c:1274) ==17971== Address 0x1eb8c038 is 8 bytes before a block of size 123,876,112 alloc'd ==17971== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==17971== by 0x9E4204: AllocSetAlloc (aset.c:732) ==17971== by 0x9ED5BD: palloc (mcxt.c:1224) ==17971== by 0x9C704C: pg_detoast_datum_copy (fmgr.c:1821) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== Invalid read of size 8 ==17971== at 0x4C2EA28: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==17971== by 0x9C705A: memcpy (string3.h:51) ==17971== by 0x9C705A: pg_detoast_datum_copy (fmgr.c:1823) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== by 0x871CCE: PortalRun (pquery.c:768) ==17971== by 0x86D552: exec_simple_query (postgres.c:1274) ==17971== Address 0x1eb8c030 is 16 bytes before a block of size 123,876,112 alloc'd ==17971== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==17971== by 0x9E4204: AllocSetAlloc (aset.c:732) ==17971== by 0x9ED5BD: palloc (mcxt.c:1224) ==17971== by 0x9C704C: pg_detoast_datum_copy (fmgr.c:1821) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== Invalid read of size 8 ==17971== at 0x4C2EA0C: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==17971== by 0x9C705A: memcpy (string3.h:51) ==17971== by 0x9C705A: pg_detoast_datum_copy (fmgr.c:1823) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== by 0x871CCE: PortalRun (pquery.c:768) ==17971== by 0x86D552: exec_simple_query (postgres.c:1274) ==17971== Address 0x1eb8c028 is 24 bytes before a block of size 123,876,112 alloc'd ==17971== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==17971== by 0x9E4204: AllocSetAlloc (aset.c:732) ==17971== by 0x9ED5BD: palloc (mcxt.c:1224) ==17971== by 0x9C704C: pg_detoast_datum_copy (fmgr.c:1821) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== Invalid read of size 8 ==17971== at 0x4C2EA0C: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==17971== by 0x9C705A: memcpy (string3.h:51) ==17971== by 0x9C705A: pg_detoast_datum_copy (fmgr.c:1823) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== by 0x871CCE: PortalRun (pquery.c:768) ==17971== by 0x86D552: exec_simple_query (postgres.c:1274) ==17971== Address 0x1eb8c028 is 24 bytes before a block of size 123,876,112 alloc'd ==17971== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==17971== by 0x9E4204: AllocSetAlloc (aset.c:732) ==17971== by 0x9ED5BD: palloc (mcxt.c:1224) ==17971== by 0x9C704C: pg_detoast_datum_copy (fmgr.c:1821) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== Invalid read of size 8 ==17971== at 0x4C2EA18: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==17971== by 0x9C705A: memcpy (string3.h:51) ==17971== by 0x9C705A: pg_detoast_datum_copy (fmgr.c:1823) ==17971== by 0x8952F8: expand_array (array_expanded.c:131) ==17971== by 0x1E971A28: plpgsql_exec_function (pl_exec.c:556) ==17971== by 0x1E97CF83: plpgsql_call_handler (pl_handler.c:277) ==17971== by 0x6BFA4E: ExecInterpExpr (execExprInterp.c:733) ==17971== by 0x6D9C8C: ExecEvalExprSwitchContext (executor.h:354) ==17971== by 0x6D9C8C: ExecProject (executor.h:388) ==17971== by 0x6D9C8C: project_aggregates (nodeAgg.c:1377) ==17971== by 0x6DB2B4: agg_retrieve_direct (nodeAgg.c:2520) ==17971== by 0x6DB2B4: ExecAgg (nodeAgg.c:2172) ==17971== by 0x6C4821: ExecProcNode (executor.h:272) ==17971== by 0x6C4821: ExecutePlan (execMain.c:1640) ==17971== by 0x6C4821: standard_ExecutorRun (execMain.c:365) ==17971== by 0x870535: PortalRunSelect (pquery.c:924) ==17971== by 0x871CCE: PortalRun (pquery.c:768) ==17971== by 0x86D552: exec_simple_query (postgres.c:1274) ==17971== Address 0x1eb8c020 is 32 bytes before a block of size 123,879,328 in arena "client" Another instance (compile locally rather than PGDG RPMs, and running the broken commit rather than v16 HEAD): ==30181== Source and destination overlap in memcpy(0x17691078, 0x15f6f8e0, 92126790) ==30181== at 0x4C2E81D: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==30181== by 0x98C5DA: pg_detoast_datum_copy (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x875ADC: expand_array (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x174757B7: plpgsql_exec_function (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x174806B5: plpgsql_call_handler (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x694DBD: ExecInterpExpr (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x69131A: ExecInterpExprStillValid (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6AEF2F: project_aggregates (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0169: agg_retrieve_direct (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0215: ExecAgg (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6A1637: ExecProcNodeFirst (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6998EC: ExecutePlan (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== Invalid read of size 8 ==30181== at 0x4C2EA0C: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==30181== by 0x98C5DA: pg_detoast_datum_copy (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x875ADC: expand_array (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x174757B7: plpgsql_exec_function (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x174806B5: plpgsql_call_handler (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x694DBD: ExecInterpExpr (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x69131A: ExecInterpExprStillValid (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6AEF2F: project_aggregates (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0169: agg_retrieve_direct (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0215: ExecAgg (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6A1637: ExecProcNodeFirst (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6998EC: ExecutePlan (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== Address 0x17691038 is 8 bytes before a block of size 92,126,848 alloc'd ==30181== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==30181== by 0x9A7980: AllocSetAlloc (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x9B01A7: palloc (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x98C5C9: pg_detoast_datum_copy (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x875ADC: expand_array (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x174757B7: plpgsql_exec_function (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x174806B5: plpgsql_call_handler (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x694DBD: ExecInterpExpr (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x69131A: ExecInterpExprStillValid (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6AEF2F: project_aggregates (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0169: agg_retrieve_direct (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0215: ExecAgg (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== Invalid read of size 8 ==30181== at 0x4C2EA18: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==30181== by 0x98C5DA: pg_detoast_datum_copy (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x875ADC: expand_array (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x174757B7: plpgsql_exec_function (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x174806B5: plpgsql_call_handler (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x694DBD: ExecInterpExpr (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x69131A: ExecInterpExprStillValid (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6AEF2F: project_aggregates (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0169: agg_retrieve_direct (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0215: ExecAgg (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6A1637: ExecProcNodeFirst (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6998EC: ExecutePlan (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== Address 0x17691030 is 16 bytes before a block of size 92,126,848 alloc'd ==30181== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==30181== by 0x9A7980: AllocSetAlloc (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x9B01A7: palloc (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x98C5C9: pg_detoast_datum_copy (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x875ADC: expand_array (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x174757B7: plpgsql_exec_function (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x174806B5: plpgsql_call_handler (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x694DBD: ExecInterpExpr (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x69131A: ExecInterpExprStillValid (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6AEF2F: project_aggregates (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0169: agg_retrieve_direct (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0215: ExecAgg (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== Invalid read of size 8 ==30181== at 0x4C2EA20: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==30181== by 0x98C5DA: pg_detoast_datum_copy (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x875ADC: expand_array (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x174757B7: plpgsql_exec_function (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x174806B5: plpgsql_call_handler (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x694DBD: ExecInterpExpr (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x69131A: ExecInterpExprStillValid (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6AEF2F: project_aggregates (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0169: agg_retrieve_direct (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0215: ExecAgg (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6A1637: ExecProcNodeFirst (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6998EC: ExecutePlan (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== Address 0x17691028 is 24 bytes before a block of size 92,126,848 alloc'd ==30181== at 0x4C29F73: malloc (vg_replace_malloc.c:309) ==30181== by 0x9A7980: AllocSetAlloc (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x9B01A7: palloc (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x98C5C9: pg_detoast_datum_copy (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x875ADC: expand_array (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x174757B7: plpgsql_exec_function (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x174806B5: plpgsql_call_handler (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x694DBD: ExecInterpExpr (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x69131A: ExecInterpExprStillValid (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6AEF2F: project_aggregates (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0169: agg_retrieve_direct (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0215: ExecAgg (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== ==30181== Invalid read of size 8 ==30181== at 0x4C2EA28: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1035) ==30181== by 0x98C5DA: pg_detoast_datum_copy (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x875ADC: expand_array (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x174757B7: plpgsql_exec_function (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x174806B5: plpgsql_call_handler (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/lib/plpgsql.so) ==30181== by 0x694DBD: ExecInterpExpr (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x69131A: ExecInterpExprStillValid (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6AEF2F: project_aggregates (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0169: agg_retrieve_direct (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6B0215: ExecAgg (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6A1637: ExecProcNodeFirst (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== by 0x6998EC: ExecutePlan (in /home/pryzbyj/git/postgresql/build.autoconf/tmp_install/usr/local/pgsql/bin/postgres) ==30181== Address 0x17691020 is 32 bytes before a block of size 92,127,136 in arena "client"