Re: Kerberos support broken on MSVC builds for Windows x64? - Mailing list pgsql-hackers

From Dave Page
Subject Re: Kerberos support broken on MSVC builds for Windows x64?
Date
Msg-id CA+OCxoxHsD0sm9JAQiPPMTXpftNjdoUL-oQHOPvX=pV6Ro3tMg@mail.gmail.com
Whole thread Raw
In response to Re: Kerberos support broken on MSVC builds for Windows x64?  (Dave Page <dpage@pgadmin.org>)
List pgsql-hackers


On Thu, Sep 3, 2020 at 4:15 PM Dave Page <dpage@pgadmin.org> wrote:

So having rebuilt PostgreSQL against that, I'm now in the situation where the server never even attempts to get a ticket as far as I can see, and psql just crashes with nothing more than a useless error in the event log:

Faulting application name: psql.exe, version: 14.0.0.20246, time stamp: 0x5f50e477
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x0000000000000000
Faulting process id: 0xd10
Faulting application start time: 0x01d681f189a17360
Faulting application path: C:\pg\bin\psql.exe
Faulting module path: unknown
Report Id: eb68d787-1c82-420d-8878-bc0648932a5d
Faulting package full name:
Faulting package-relative application ID: 

So I'm going to have to break out the debugger, though I suspect this may require more effort than I have time for right now.

Yeah, this is almost certainly well beyond what I have the time to figure out. Happy to do any testing etc. that may be needed, but I think this needs someone familiar with the GSS API to take the lead.

Here's what I got from psql in the debugger:

Exception thrown at 0x0000000000000000 in psql.exe: 0xC0000005: Access violation executing location 0x0000000000000000. occurred

0000000000000000()
krb5_64.dll!0000000051942807()
krb5_64.dll!000000005194214b()
krb5_64.dll!0000000051980611()
krb5_64.dll!00000000519766cb()
krb5_64.dll!00000000519670ff()
gssapi64.dll!0000000051bb1839()
gssapi64.dll!0000000051bb48e4()
gssapi64.dll!0000000051bb4575()
gssapi64.dll!0000000051b993df()
libpq.dll!pqsecure_open_gss(pg_conn * conn) Line 632
at c:\users\dpage\downloads\postgresql\src\interfaces\libpq\fe-secure-gssapi.c(632)
libpq.dll!PQconnectPoll(pg_conn * conn) Line 3173
at c:\users\dpage\downloads\postgresql\src\interfaces\libpq\fe-connect.c(3173)
libpq.dll!connectDBComplete(pg_conn * conn) Line 2187
at c:\users\dpage\downloads\postgresql\src\interfaces\libpq\fe-connect.c(2187)
libpq.dll!PQconnectdbParams(const char * const * keywords, const char * const * values, int expand_dbname) Line 655
at c:\users\dpage\downloads\postgresql\src\interfaces\libpq\fe-connect.c(655)
psql.exe!main(int argc, char * * argv) Line 266
at c:\users\dpage\downloads\postgresql\src\bin\psql\startup.c(266)
[External Code]
 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EDB: http://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Jesse Zhang
Date:
Subject: Re: Fix for configure error in 9.5/9.6 on macOS 11.0 Big Sur
Next
From: Konstantin Knizhnik
Date:
Subject: Re: INSERT ON CONFLICT and RETURNING