Re: pg_receivewal.exe unhandled exception in zlib1.dll

2022-02-22 Thread Juan José Santamaría Flecha
Please excuse my late reply. On Wed, Feb 16, 2022 at 12:20 PM Juan José Santamaría Flecha < juanjo.santama...@gmail.com> wrote: > On Tue, Feb 15, 2022 at 5:25 PM Andres Freund wrote: > >> >> FWIW, I've looked at using either vcpkg or conan to more easily >> install / >> > build dependencies o

Re: pg_receivewal.exe unhandled exception in zlib1.dll

2022-02-16 Thread Juan José Santamaría Flecha
On Tue, Feb 15, 2022 at 5:25 PM Andres Freund wrote: > > > If this is something we want to discard altogether, we can check at build > > time with 'dumpbin' to ensure that all dlls share the same vcruntime.dll. > > I think these days it's mostly a question of ucrtbase.dll vs ucrtbased.dll, > righ

Re: pg_receivewal.exe unhandled exception in zlib1.dll

2022-02-15 Thread Andres Freund
Hi, On 2022-02-15 11:21:42 +0100, Juan José Santamaría Flecha wrote: > Building with a mix of debug and release components is not a good practice > for issues like this, but is not something that MSVC forbids. It's not a problem if you never need share memory, file descriptors, locales, ... state

Re: pg_receivewal.exe unhandled exception in zlib1.dll

2022-02-15 Thread Juan José Santamaría Flecha
On Mon, Feb 14, 2022 at 7:31 AM Michael Paquier wrote: > On Fri, Feb 11, 2022 at 07:50:44AM -0800, Andres Freund wrote: > > > I hit this as well. The problem is really caused by using a debug build > of > > postgres vs a production build of zlib. The use different C runtimes, > with > > different

Re: pg_receivewal.exe unhandled exception in zlib1.dll

2022-02-13 Thread Michael Paquier
On Fri, Feb 11, 2022 at 07:50:44AM -0800, Andres Freund wrote: > On 2022-02-11 16:33:11 +0100, Juan José Santamaría Flecha wrote: >> The problem comes from the file descriptor passed to gzdopen() in >> 'src/bin/pg_basebackup/walmethods.c'. Using gzopen() instead, solves the >> issue without ifdefin

Re: pg_receivewal.exe unhandled exception in zlib1.dll

2022-02-11 Thread Andres Freund
Hi, On 2022-02-11 16:33:11 +0100, Juan José Santamaría Flecha wrote: > If you execute pg_receivewal.exe with the option "--compression-method > gzip" it will fail with no error. You can see an error in the db log: > > 2022-02-10 11:46:32.725 CET [11664][walsender] [pg_receivewal][3/0:0] LOG: > co

pg_receivewal.exe unhandled exception in zlib1.dll

2022-02-11 Thread Juan José Santamaría Flecha
Hello, If you execute pg_receivewal.exe with the option "--compression-method gzip" it will fail with no error. You can see an error in the db log: 2022-02-10 11:46:32.725 CET [11664][walsender] [pg_receivewal][3/0:0] LOG: could not receive data from client: An existing connection was forcibly cl