Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Odd it is dying in the memory freeing at executor close --- not in the
> ltree code.
Doesn't seem odd. The glibc complaint previously shown already
indicates this is a memory stomp problem.
--enable-cassert might (or might not) provide additional help.
regards, tom lane