Re: BUG #5121: Segmentation Fault when using pam w/ krb5

From: "Douglas, Ryan" <RDouglas(at)arbinet(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-bugs(at)postgreSQL(dot)org>
Subject: Re: BUG #5121: Segmentation Fault when using pam w/ krb5
Date: 2009-10-16 05:27:40
Message-ID: 706C25916A1ADD489F69906EC24FC07E026FDE93@vamail02.TheXchange.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Both actually...

When just the "return" is commented out the routine goes into a loop and
the following shows up in the logs...

<rdouglas(at)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(at)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(at)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(at)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...

<[unknown](at)[unknown] 2009-10-16 01:13:49.211 EDT>LOG: connection
received: host=10.0.20.38 port=32815
<@ 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](at)[unknown] 2009-10-16 01:15:05.330 EDT>LOG: connection
received: host=10.0.20.38 port=32816
<[unknown](at)[unknown] 2009-10-16 01:15:17.436 EDT>LOG: connection
received: host=10.0.20.38 port=32817
<rdouglas(at)tacacs 10.0.20.38(32817) 2009-10-16 01:15:17.486 EDT>LOG:
connection authorized: user=rdouglas database=tacacs

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
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(at)arbinet(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Muris Pucic 2009-10-16 07:26:14 BUG #5122: Subqueries - inner select statement bug
Previous Message Douglas, Ryan 2009-10-16 04:54:59 Re: BUG #5121: Segmentation Fault when using pam w/ krb5