Re: BUG #17227: segmentation fault with jsonb_to_recordset

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: bernddorn(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17227: segmentation fault with jsonb_to_recordset
Date: 2021-10-13 14:28:55
Message-ID: 649678.1634135335@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)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(at)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bossart, Nathan 2021-10-13 17:20:56 Re: BUG #17220: ALTER INDEX ALTER COLUMN SET (..) with an optionless opclass makes index and table unusable
Previous Message Alvaro Herrera 2021-10-13 13:59:06 Re: BUG #17227: segmentation fault with jsonb_to_recordset