GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD]
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./tmp_install/usr/local/pgsql/bin/postgres...

warning: exec file is newer than core file.
[New LWP 100597]

warning: Could not load shared library symbols for /mnt/data/postgres/tmp_install/usr/local/pgsql/lib/plpgsql.so.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `postgres: freebsd regression [local] SELECT'.
#0  _poll () at _poll.S:4
4	_poll.S: No such file or directory.
(gdb) bt
#0  _poll () at _poll.S:4
#1  0x00000000891c1850 in __thr_poll (fds=0x4, nfds=1, timeout=-1) at /usr/src/lib/libthr/thread/thr_syscalls.c:338
#2  0x000000000076e930 in WaitEventSetWaitBlock (nevents=1, occurred_events=0x811ed188, cur_timeout=-1, set=0x9ba2e590) at latch.c:1171
#3  WaitEventSetWait (set=set@entry=0x9ba2e590, timeout=timeout@entry=-1, occurred_events=occurred_events@entry=0x811ed188, nevents=nevents@entry=1, wait_event_info=wait_event_info@entry=134217731) at latch.c:1000
#4  0x000000000076ee18 in WaitLatchOrSocket (latch=0x9abe49c0, wakeEvents=wakeEvents@entry=1, sock=sock@entry=-1, timeout=-1, timeout@entry=0, wait_event_info=wait_event_info@entry=134217731) at latch.c:385
#5  0x000000000076eef0 in WaitLatch (latch=<optimized out>, wakeEvents=wakeEvents@entry=1, timeout=timeout@entry=0, wait_event_info=wait_event_info@entry=134217731) at latch.c:339
#6  0x00000000006481ec in gather_readnext (gatherstate=<optimized out>) at nodeGather.c:367
#7  gather_getnext (gatherstate=0x9b824818) at nodeGather.c:256
#8  ExecGather (pstate=0x9b824818) at nodeGather.c:207
#9  0x0000000000638824 in ExecProcNodeInstr (node=0x9b824818) at execProcnode.c:462
#10 0x0000000000641708 in ExecProcNode (node=0x9b824818) at ../../../src/include/executor/executor.h:248
#11 fetch_input_tuple (aggstate=aggstate@entry=0x9b824368) at nodeAgg.c:407
#12 0x0000000000642ee8 in agg_retrieve_direct (aggstate=0x9b824368) at nodeAgg.c:1746
#13 ExecAgg (pstate=0x9b824368) at nodeAgg.c:1561
#14 0x0000000000638824 in ExecProcNodeInstr (node=0x9b824368) at execProcnode.c:462
#15 0x00000000006313a4 in ExecProcNode (node=0x9b824368) at ../../../src/include/executor/executor.h:248
#16 ExecutePlan (execute_once=<optimized out>, dest=0xbbac78 <donothingDR>, direction=<optimized out>, numberTuples=0, sendTuples=<optimized out>, operation=CMD_SELECT, use_parallel_mode=<optimized out>, planstate=0x9b824368, 
    estate=0x9b824118) at execMain.c:1712
#17 standard_ExecutorRun (queryDesc=0x9b93d550, direction=<optimized out>, count=0, execute_once=<optimized out>) at execMain.c:353
#18 0x00000000005ca960 in ExplainOnePlan (plannedstmt=plannedstmt@entry=0x9b93d438, into=into@entry=0x0, es=es@entry=0x905b39f8, 
    queryString=queryString@entry=0x905e2918 "explain (analyze, format 'json') \n  select count(*) from simple r join simple s using (id);\n", params=params@entry=0x0, queryEnv=queryEnv@entry=0x0, 
    planduration=planduration@entry=0x811ed450) at explain.c:536
#19 0x00000000005cacac in ExplainOneQuery (query=<optimized out>, cursorOptions=256, into=0x0, es=0x905b39f8, queryString=0x905e2918 "explain (analyze, format 'json') \n  select count(*) from simple r join simple s using (id);\n", 
    params=0x0, queryEnv=0x0) at explain.c:372
#20 0x00000000005cb228 in ExplainQuery (pstate=0x905b38e0, stmt=0x905e2b28, queryString=0x905e2918 "explain (analyze, format 'json') \n  select count(*) from simple r join simple s using (id);\n", params=0x0, queryEnv=0x0, 
    dest=0x905b3848) at ../../../src/include/nodes/nodes.h:582
#21 0x000000000079bcc4 in standard_ProcessUtility (pstmt=0x905e2a10, queryString=0x905e2918 "explain (analyze, format 'json') \n  select count(*) from simple r join simple s using (id);\n", context=PROCESS_UTILITY_QUERY, params=0x0, 
    queryEnv=0x0, dest=0x905b3848, completionTag=0x811ed5e0 "") at utility.c:675
#22 0x0000000000799c50 in PortalRunUtility (portal=portal@entry=0x90664230, pstmt=0x905e2a10, isTopLevel=isTopLevel@entry=false, setHoldSnapshot=setHoldSnapshot@entry=true, dest=dest@entry=0x905b3848, 
    completionTag=completionTag@entry=0x811ed5e0 "") at pquery.c:1174
#23 0x000000000079a150 in FillPortalStore (portal=portal@entry=0x90664230, isTopLevel=isTopLevel@entry=false) at ../../../src/include/nodes/nodes.h:582
#24 0x000000000079a734 in PortalRunFetch (portal=portal@entry=0x90664230, fdirection=fdirection@entry=FETCH_FORWARD, count=count@entry=10, dest=dest@entry=0xbbacc8 <spi_printtupDR>) at pquery.c:1463
#25 0x0000000000664054 in _SPI_cursor_operation (portal=0x90664230, direction=FETCH_FORWARD, count=10, dest=0xbbacc8 <spi_printtupDR>) at spi.c:2711
#26 0x00000000a3bd1998 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
