Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2024 13:45:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279910] database/postgresql16-server: GSSAPI dumps core
Message-ID:  <bug-279910-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279910

            Bug ID: 279910
           Summary: database/postgresql16-server: GSSAPI dumps core
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: simon.anthony@hotmail.com

When compiling postgresql16-server with MIT krb5 clients cannot connect as
postgres server crashes.

root@freebsd:/usr/ports/databases/postgresql16-server # pkg info -b krb5
krb5-1.21.2_3:
        libverto.so.0.0
        libkrb5support.so.0.1
        libkrb5.so.3.3
        libkrad.so.0.0
        libkdb5.so.10.0
        libkadm5srv_mit.so.12.0
        libkadm5clnt_mit.so.12.0
        libk5crypto.so.3.1
        libgssrpc.so.4.2
        libgssapi_krb5.so.2.2
        libcom_err.so.3.0

root@freebsd:/usr/ports/databases/postgresql16-server # make showconfig
=3D=3D=3D> The following configuration options are available for
postgresql16-server-16.3:
     DEBUG=3Don: Build with debugging support
     DOCS=3Don: Build and/or install documentation
     DTRACE=3Doff: Build with DTrace probes
     GSSAPI=3Don: Build with GSSAPI support
     LDAP=3Doff: Build with LDAP authentication support
     LLVM=3Don: Build with support for JIT-compiling expressions
     LZ4=3Don: Build with LZ4 compression support
     NLS=3Don: Use internationalized messages
     OPTIMIZED_CFLAGS=3Doff: Builds with compiler optimizations (-O3)
     PAM=3Don: Build with PAM Support
     SSL=3Don: Build with OpenSSL support
     TZDATA=3Doff: Use internal timezone database
     XML=3Don: Build with XML data type
     ZSTD=3Don: Build with ZSTD compression support

client$ psql -U user -h freebsd.example.com ...
psql16: error: connection to server at "freebsd.example.com" (192.168.101.1=
49),
port 5432 failed: connection to server at "freebsd.example.com"
(192.168.101.149), port 5432 failed: server closed the connection unexpecte=
dly
        This probably means the server terminated abnormally
        before or while processing the request.


Postgresql log:

024-06-22 11:48:58.436 BST [4056] LOG:  server process (PID 5216) was
terminated by signal 11: Segmentation fault
2024-06-22 11:48:58.436 BST [4056] LOG:  terminating any other active server
processes
2024-06-22 11:48:58.440 BST [4056] LOG:  all server processes terminated;
reinitializing
2024-06-22 11:48:58.448 BST [5218] LOG:  database system was interrupted; l=
ast
known up at 2024-06-22 11:48:25 BST
2024-06-22 11:48:58.476 BST [5218] LOG:  database system was not properly s=
hut
down; automatic recovery in progress
2024-06-22 11:48:58.480 BST [5218] LOG:  redo starts at 0/B000488

root@freebsd:/pg/data # gdb /usr/local/bin/postgres postgres.core
GNU gdb (GDB) 14.1 [GDB v14.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.htm=
l>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/postgres...
(No debugging symbols found in /usr/local/bin/postgres)
[New LWP 100530]
Core was generated by `/usr/local/bin/postgres -D /pg/data'.
Program terminated with signal SIGSEGV, Segmentation fault.
Address not mapped to object.
#0  0x000000082cdf6f46 in ?? () from /usr/local/lib/libkrb5.so.3.3
(gdb) where
#0  0x000000082cdf6f46 in ?? () from /usr/local/lib/libkrb5.so.3.3
#1  0x000000082cdc8b7a in ?? () from /usr/local/lib/libkrb5.so.3.3
#2  0x000000082cdc812d in krb5_kt_get_entry () from
/usr/local/lib/libkrb5.so.3.3
#3  0x000000083d1d78b5 in ?? () from /usr/lib/libkrb5.so.11
#4  0x000000083d1d7475 in krb5_rd_req_ctx () from /usr/lib/libkrb5.so.11
#5  0x000000083ce181de in _gsskrb5_accept_sec_context () from
/usr/lib/libgssapi_krb5.so.10
#6  0x00000008220d2acb in gss_accept_sec_context () from
/usr/lib/libgssapi.so.10
#7  0x0000000000750847 in secure_open_gssapi ()
#8  0x000000000082c99f in ?? ()
#9  0x000000000082c06c in ?? ()
#10 0x000000000082aae9 in ?? ()
#11 0x00000000008280b5 in PostmasterMain ()
#12 0x000000000075103f in main ()
(gdb)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279910-7788>