Simon Riggs <simon@2ndquadrant.com> writes:
> On 13 June 2017 at 04:25, Robert Haas <robertmhaas@gmail.com> wrote:
>> 'make check' was failing: 'psql' repeatedly died with an abort
>> trap. Binaries worked fine when I ran them from the command line
>> (sometimes with DYLD_LIBRARY_PATH, if needed) but when run via
>> pg_regress, nothing worked.
> I've not had that problem, though running it hasn't been trouble free.
> So I guess there must be some sequence of actions that works.
It works fine if you "make install" first, or if the install tree
exists and contains a copy of libpq.dylib that's not so old as to
break your test.
If you haven't got any install tree, the dynamic linker tries to
fall back on /usr/lib/libpq.dylib, which is too old, and you get
nasty core dumps.
regards, tom lane