[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#143496: marked as done (libnss-ldap: Segfault when used for host resolution)



Your message dated Wed, 16 Nov 2022 01:20:11 +0000
with message-id <E1ov763-0016tp-7a@fasolo.debian.org>
and subject line Bug#1024140: Removed package(s) from unstable
has caused the Debian Bug report #143496,
regarding libnss-ldap: Segfault when used for host resolution
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
143496: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143496
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libnss-ldap
Version: 184-2
Severity: normal 

Hi,
when using "hosts: file ldap dns" in /etc/nsswith.conf I get a
reproducible segfault with "getent passwd username" if username is a
user stored in the ldap tree, gdb backtrace:

[..snip..] 
#24978 0x400fc3db in gethostbyname_r () from /lib/libc.so.6
#24979 0x4018f906 in ldap_pvt_gethostbyname_a () from /usr/lib/libldap.so.2
#24980 0x4018faa1 in ldap_pvt_get_fqdn () from /usr/lib/libldap.so.2
#24981 0x4018ec8e in ldap_int_initialize () from /usr/lib/libldap.so.2
#24982 0x4017b7b1 in ldap_create () from /usr/lib/libldap.so.2
#24983 0x4017b91b in ldap_init () from /usr/lib/libldap.so.2
#24984 0x40163924 in _nss_ldap_init () from /lib/libnss_ldap.so.2
#24985 0x401648ea in _nss_ldap_search_s () from /lib/libnss_ldap.so.2
#24986 0x40164c66 in _nss_ldap_getbyname () from /lib/libnss_ldap.so.2
#24987 0x40166118 in _nss_ldap_gethostbyname_r () from /lib/libnss_ldap.so.2
#24988 0x400fc3db in gethostbyname_r () from /lib/libc.so.6
#24989 0x4018f906 in ldap_pvt_gethostbyname_a () from /usr/lib/libldap.so.2
#24990 0x4018faa1 in ldap_pvt_get_fqdn () from /usr/lib/libldap.so.2
#24991 0x4018ec8e in ldap_int_initialize () from /usr/lib/libldap.so.2
#24992 0x4017b7b1 in ldap_create () from /usr/lib/libldap.so.2
#24993 0x4017b91b in ldap_init () from /usr/lib/libldap.so.2
#24994 0x40163924 in _nss_ldap_init () from /lib/libnss_ldap.so.2
#24995 0x401648ea in _nss_ldap_search_s () from /lib/libnss_ldap.so.2
Cannot access memory at address 0xbfead2ec

The same pattern repeats over and over again in the backtrace which
looks pretty much like a recursive loop. Some details:
 - the ldap servers name is resolvable via files and dns, adding it to
   the ldap tree doesn't change anything. 
 - it doesn't matter if one uses the ldap servers hostname or ip in
   /etc/libnss_ldap.conf
 - without using ldap for host resolution like "hosts: files dns"
   everything works fine
 - the problem goes away when *enabling* nscd
Cheers,
 -- Guido

P.S.: I know that gethostbyname2 is still missing from libnss-ldap, but
that shouldn't be the problem here?

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux phyma04 2.4.17-clients #1 Tue Mar 26 15:57:54 CET 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libnss-ldap depends on:
ii  debconf                       1.0.31     Debian configuration management sy
ii  libc6                         2.2.5-4    GNU C Library: Shared libraries an
ii  libldap2                      2.0.23-5   OpenLDAP libraries.


--- End Message ---
--- Begin Message ---
Version: 265-6+rm

Dear submitter,

as the package libnss-ldap has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1024140

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: