Both actually... When just the "return" is commented out the routine goes into a loop and the following shows up in the logs...
<rdoug...@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 <rdoug...@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 <rdoug...@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 <rdoug...@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... <[unkno...@[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... <[unkno...@[unknown] 2009-10-16 01:15:05.330 EDT>LOG: connection received: host=10.0.20.38 port=32816 <[unkno...@[unknown] 2009-10-16 01:15:17.436 EDT>LOG: connection received: host=10.0.20.38 port=32817 <rdoug...@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:t...@sss.pgh.pa.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" <rdoug...@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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs