From: Justin Pryzby <pryzby@telsasoft.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: pgsql-hackers@postgresql.org, Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: v16dev: invalid memory alloc request size 8488348128
Date: Fri, 14 Apr 2023 20:03:07 -0500
Message-ID: <ZDn3y3FPfpHksQH8@telsasoft.com> (raw)
In-Reply-To: <CAApHDvq9HR1-SJfQP8+-tphmbABWzL6r87y92+UxKHz3yhqdqQ@mail.gmail.com>
References: <ZDm5TuKsh3tzoEjz@telsasoft.com>
<CAApHDvoBS2VryMzJRpp9AXeOiqoMLAry+3H=1Uf6-t+uMkGbMw@mail.gmail.com>
<ZDnYM8ONbQmKjxSO@telsasoft.com>
<CAApHDvq9HR1-SJfQP8+-tphmbABWzL6r87y92+UxKHz3yhqdqQ@mail.gmail.com>
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"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: pryzby@telsasoft.com, dgrowleyml@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: v16dev: invalid memory alloc request size 8488348128
In-Reply-To: <ZDn3y3FPfpHksQH8@telsasoft.com>
References: <ZDm5TuKsh3tzoEjz@telsasoft.com> <CAApHDvoBS2VryMzJRpp9AXeOiqoMLAry+3H=1Uf6-t+uMkGbMw@mail.gmail.com> <ZDnYM8ONbQmKjxSO@telsasoft.com> <CAApHDvq9HR1-SJfQP8+-tphmbABWzL6r87y92+UxKHz3yhqdqQ@mail.gmail.com> <ZDn3y3FPfpHksQH8@telsasoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox