Brent Verner <brent(at)rcfile(dot)org> writes:
> (gdb) p *resSlot
> Error accessing memory address 0x40141830: Invalid argument.
Oooh. resSlot has been truncated to 32 bits --- judging by the other
nearby pointer values, it almost certainly should have been 0x140141830.
Now we have a lead.
I am guessing that the truncation happened somewhere in
executor/functions.c, but don't see it right away...
regards, tom lane