Alex Hunsaker <badalex(at)gmail(dot)com> writes:
> So I tracked it down to "-fgcse", that is CFLAGS="-O2 -fno-gcse"
> ./configure works. I then took a few guesses and compiled all of
> postgres with -O2, then manually recompiled xlog.c with -f-no-gcse.
> that combination seems to work.
Huh, interesting. So the bug must be lurking somewhere around the logic
that deals with failedSources: somehow we're getting to the
ShutdownWalRcv call in XLogPageRead.
regards, tom lane