Re: v16dev: invalid memory alloc request size 8488348128

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: v16dev: invalid memory alloc request size 8488348128
Date: 2023-04-15 01:03:07
Message-ID: ZDn3y3FPfpHksQH8@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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"

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2023-04-15 01:08:59 Re: Support logical replication of DDLs
Previous Message Tom Lane 2023-04-15 01:02:43 Re: v16dev: invalid memory alloc request size 8488348128