Fwd: Bug#249083: postgresql: Postgres SIGSEGV if wins in nsswitch.conf

From: Martin Pitt <martin(at)piware(dot)de>
To: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Fwd: Bug#249083: postgresql: Postgres SIGSEGV if wins in nsswitch.conf
Date: 2004-05-25 08:04:23
Message-ID: 20040525080419.GA5922@donald.intranet.fbn-dd.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi PostgreSQL developers!

Does anybody happen to use Postgresql with winbind authentication? We
got the bug report below where this seems to crash.

Is this problem known?

Thanks and have a nice day!

Martin

----- Forwarded message from Cory Dodt <cdodt(at)turing> -----

Subject: Bug#249083: postgresql: Postgres SIGSEGV if wins in nsswitch.conf
Reply-To: Cory Dodt <cdodt(at)turing>, 249083(at)bugs(dot)debian(dot)org
From: Cory Dodt <cdodt(at)turing>
To: Debian Bug Tracking System <submit(at)bugs(dot)debian(dot)org>
Date: Fri, 14 May 2004 14:56:11 -0700
X-Spam-Status: No, hits=1.6 required=4.0 tests=BAYES_44,NO_DNS_FOR_FROM
autolearn=no version=2.61

Package: postgresql
Version: 7.4.2-4
Severity: normal

[system information]

When configured to look up names with winbind (3.0.2a-1/sarge), postmaster
crashes with the following:

2004-05-14 14:50:14 [8725] LOG: could not create IPv6 socket: Address family not supported by protocol
2004-05-14 14:50:14 [8725] LOG: authentication file token too long, skipping: "˜.íñ
Segmentation fault
--------------------
... the nsswitch.conf that goes with the above contains:
hosts: wins files dns

However if I change the name lookup order to:
hosts: files dns wins

pg starts up normally and the authentication file token error disappears.
(The IPV6 error remains.)
I tried to get a stack trace; unfortunately the stack is corrupted but this
much (truncated) looks for real:
...
#8 0x40ecb020 in ?? () from /lib/libnss_wins.so.2
...
#35 0x4028efce in __errno_location () from /lib/libc.so.6

Winbind name lookup works fine normally, still I wouldn't be too much surprised
if this was in fact a winbind bug.

----- End forwarded message -----

--
Martin Pitt Debian GNU/Linux Developer
martin(at)piware(dot)de mpitt(at)debian(dot)org
http://www.piware.de http://www.debian.org

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Richard Huxton 2004-05-25 13:56:45 Re: Fwd: Bug#249083: postgresql: Postgres SIGSEGV if wins
Previous Message Kris Jurka 2004-05-24 19:05:02 Re: BUG #1155: AbstractJdbc2ResultSet:parseQuery ; in tablename