Skip to content

Conversation

@andriisoldatenko
Copy link

No description provided.

@andriisoldatenko andriisoldatenko changed the title [WIP] Add GSSApi Authentication Add GSSApi Authentication Jul 22, 2022
karankhanchandani pushed a commit that referenced this pull request Nov 20, 2025
…bouncer#700)

Encountered this on CentOS7, package pgbouncer-1.16.1-10.rhel7.x86_64

Speculting that client->link can be NULL in client_proto if client connection gets closed/errors before a connection to the server is set up.

```
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/pgbouncer /etc/pgbouncer/pgbouncer.ini'.
Program terminated with signal 11, Segmentation fault.
#0 disconnect_server (server=0x0, notify=notify@entry=false, reason=reason@entry=0x436a67 "server connection closed") at src/objects.c:806
806 PgPool *pool = server->pool;
Missing separate debuginfos, use: debuginfo-install audit-libs-2.8.5-4.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-51.el7_9.x86_64 libcap-ng-0.7.5-4.el7.x86_64 libcom_err-1.42.9-19.el7.x86_64 libevent-2.0.21-4.el7.x86_64 libselinux-2.5-15.el7.x86_64 pam-1.1.8-23.el7.x86_64
(gdb) bt
#0 disconnect_server (server=0x0, notify=notify@entry=false, reason=reason@entry=0x436a67 "server connection closed") at src/objects.c:806
#1 0x000000000040d1c7 in client_proto (sbuf=0x192ae98, evtype=<optimized out>, data=0x7ffd0c5b6660) at src/client.c:1002
#2 0x000000000041a21e in sbuf_call_proto (sbuf=sbuf@entry=0x192ae98, event=event@entry=2) at src/sbuf.c:387
#3 0x000000000041a4a6 in sbuf_send_pending (sbuf=0x192ae98) at src/sbuf.c:537
pgbouncer#4 0x000000000041ada0 in sbuf_main_loop (sbuf=0x192ae98, skip_recv=<optimized out>) at src/sbuf.c:759
pgbouncer#5 0x00007fd7e46f4a14 in event_base_loop () from /lib64/libevent-2.0.so.5
pgbouncer#6 0x0000000000411b9a in main_loop_once () at src/main.c:740
pgbouncer#7 0x0000000000407156 in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:999
```

Fixes pgbouncer#699 

Co-authored-by: Pino de Candia <pinod@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants