From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: bernddorn@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17227: segmentation fault with jsonb_to_recordset
Date: Wed, 13 Oct 2021 10:28:55 -0400
Message-ID: <649678.1634135335@sss.pgh.pa.us> (raw)
In-Reply-To: <202110131359.a6m35hpudkg7@alvherre.pgsql>
References: <202110131359.a6m35hpudkg7@alvherre.pgsql>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Can you provide some sample data that would reproduce the crash?
Huh? It's a self-contained example. I'm seeing this back-trace
on HEAD:
#0 pg_detoast_datum (datum=0x40) at fmgr.c:1724
#1 0x00000000008a2c9a in jsonb_path_query_array_internal (fcinfo=0x19767d8,
tz=<optimized out>) at jsonpath_exec.c:463
#2 0x00000000006ab46e in ExecInterpExpr (state=0x19766e8, econtext=0x1976560,
isnull=<optimized out>) at execExprInterp.c:1260
#3 0x00000000006b8c04 in ExecEvalExpr (isNull=0x1991688, econtext=0x1976560,
state=<optimized out>) at ../../../src/include/executor/executor.h:320
#4 ExecEvalFuncArgs (fcinfo=0x1991660, argList=0x198dd78, econtext=0x1976560)
at execSRF.c:846
#5 0x00000000006b8f42 in ExecMakeTableFunctionResult (setexpr=0x1976650,
econtext=0x1976560, argContext=0x1991540, expectedDesc=0x198de28,
randomAccess=false) at execSRF.c:181
#6 0x00000000006cb5ef in FunctionNext (node=node@entry=0x1976348)
at nodeFunctionscan.c:94
#7 0x00000000006b9b91 in ExecScanFetch (
recheckMtd=0x6cb2e0 <FunctionRecheck>, accessMtd=0x6cb2f0 <FunctionNext>,
node=0x1976348) at execScan.c:133
#8 ExecScan (node=0x1976348, accessMtd=0x6cb2f0 <FunctionNext>,
recheckMtd=0x6cb2e0 <FunctionRecheck>) at execScan.c:182
#9 0x00000000006e06d4 in ExecProcNode (node=0x1976348)
at ../../../src/include/executor/executor.h:257
#10 ExecNestLoop (pstate=0x1975060) at nodeNestloop.c:160
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, bernddorn@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17227: segmentation fault with jsonb_to_recordset
In-Reply-To: <649678.1634135335@sss.pgh.pa.us>
* 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