Re: BUG #5121: Segmentation Fault when using pam w/ krb5 - Mailing list pgsql-bugs
| From | Douglas, Ryan |
|---|---|
| Subject | Re: BUG #5121: Segmentation Fault when using pam w/ krb5 |
| Date | |
| Msg-id | 706C25916A1ADD489F69906EC24FC07E026FDE93@vamail02.TheXchange.com Whole thread Raw |
| In response to | BUG #5121: Segmentation Fault when using pam w/ krb5 ("Ryan Douglas" <rdouglas@arbinet.com>) |
| Responses |
Re: BUG #5121: Segmentation Fault when using pam w/ krb5
|
| List | pgsql-bugs |
Both actually...=20=20
When just the "return" is commented out the routine goes into a loop and
the following shows up in the logs...
<rdouglas@tacacs 10.0.20.38(47254) 2009-10-16 01:12:18.935 EDT>LOG:
could not receive data from client: Connection reset by peer
<rdouglas@tacacs 10.0.20.38(47254) 2009-10-16 01:12:18.935 EDT>LOG:
could not receive data from client: Connection reset by peer
<rdouglas@tacacs 10.0.20.38(47254) 2009-10-16 01:12:18.935 EDT>LOG:
could not receive data from client: Connection reset by peer
<rdouglas@tacacs 10.0.20.38(47254) 2009-10-16 01:12:18.935 EDT>LOG:
could not receive data from client: Connection reset by peer
When just "ereport" is commented out I still get a sigfault...=20
<[unknown]@[unknown] 2009-10-16 01:13:49.211 EDT>LOG: connection
received: host=3D10.0.20.38 port=3D32815
<@ 2009-10-16 01:13:49.258 EDT>LOG: server process (PID 13201) was
terminated by signal 11: Segmentation fault
<@ 2009-10-16 01:13:49.258 EDT>LOG: terminating any other active
server processes
<@ 2009-10-16 01:13:49.262 EDT>LOG: all server processes terminated;
reinitializing
<@ 2009-10-16 01:13:49.381 EDT>LOG: database system was interrupted;
last known up at 2009-10-16 01:13:37 EDT
<@ 2009-10-16 01:13:49.382 EDT>LOG: database system was not properly
shut down; automatic recovery in progress
<@ 2009-10-16 01:13:49.382 EDT>LOG: record with zero length at
3/B7D75538
<@ 2009-10-16 01:13:49.383 EDT>LOG: redo is not required
<@ 2009-10-16 01:13:49.409 EDT>LOG: autovacuum launcher started
<@ 2009-10-16 01:13:49.410 EDT>LOG: database system is ready to accept
connections
But when both are commented it seems to work...
<[unknown]@[unknown] 2009-10-16 01:15:05.330 EDT>LOG: connection
received: host=3D10.0.20.38 port=3D32816
<[unknown]@[unknown] 2009-10-16 01:15:17.436 EDT>LOG: connection
received: host=3D10.0.20.38 port=3D32817
<rdouglas@tacacs 10.0.20.38(32817) 2009-10-16 01:15:17.486 EDT>LOG:
connection authorized: user=3Drdouglas database=3Dtacacs
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20
Sent: Friday, October 16, 2009 1:01 AM
To: Douglas, Ryan
Subject: Re: [BUGS] BUG #5121: Segmentation Fault when using pam w/ krb5
"Douglas, Ryan" <RDouglas@arbinet.com> writes:
> Ok... I compiled 8.2.14 and 8.3.8 with the same configure options.
They
> both segfaut when doing the authentication. Note that when I use -W
> option with psql everything works ok. I went back to 8.4.1 enabled
the
> max debug level then re-tested and got the info below in the log. I
went
> to line 769 in pqcomm.c and commented the ereport and return EOF lines
> and recompiled. Now when I connect it works without a segfault. Hope
> this narrows things down.
Which is it that makes the difference ... the ereport or the return?
regards, tom lane
pgsql-bugs by date: