That's just the lovely way windows handles a "segfault". Gotta be really

Bruce Momjian <bruce@momjian.us>

Commit: 7fad5fff0df0476ca80716153963d90c5776acf3
Author: Bruce Momjian <bruce@momjian.us>
Date: 2004-11-01T19:21:50Z
Releases: 8.0.0
That's just the lovely way windows handles a "segfault". Gotta be really
interesting for MS to catch all those dumps...

Anyway. Oops. Seems I ran my regression tests with the old psql, and
just managed to update the backend, when I tested that patch. Turns out
there are codepaths where we'd access the Critical Section before it was
initialized. Attached patch breaks the initializeation off to a separate
part and adds that one to a much earlier position in the program.

Magnus Hagander

Files

PathChange+/−
src/bin/psql/common.c modified +7 −2
src/bin/psql/common.h modified +2 −1
src/bin/psql/startup.c modified +2 −1