Bug 757172 - nss_ldap segfault when some user is touched and server is not available
Summary: nss_ldap segfault when some user is touched and server is not available
Keywords:
Status: CLOSED DUPLICATE of bug 756783
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nss_ldap
Version: 5.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Nalin Dahyabhai
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 754028
TreeView+ depends on / blocked
 
Reported: 2011-11-25 16:48 UTC by Aleš Mareček
Modified: 2012-03-20 16:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-28 09:19:35 UTC
Target Upstream Version:


Attachments (Terms of Use)
Valgrind log (189.14 KB, application/octet-stream)
2011-11-25 16:49 UTC, Aleš Mareček
no flags Details

Description Aleš Mareček 2011-11-25 16:48:03 UTC
Description of problem:
nss_ldap-253-47.el5
glibc-2.5-72

$ useradd SudoUser1; echo $?; useradd sudouser; echo $?
Segmentation fault
139
Segmentation fault
139
i:x86_64|m:x86_64 root@sgi-xe310-03 [bz632235-sudo-using-active-directory-gives-a-cache-error]# cat /etc/nsswitch.conf 
passwd:     files [!NOTFOUND=return] ldap
shadow:     files [!NOTFOUND=return] ldap
group:      files [!NOTFOUND=return] ldap
hosts:      files dns
bootparams: nisplus [NOTFOUND=return] files
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
netgroup:   nisplus
publickey:  nisplus
automount:  files nisplus
aliases:    files nisplus


i:x86_64|m:x86_64 root@sgi-xe310-03 [bz632235-sudo-using-active-directory-gives-a-cache-error]# gdb --args useradd SudoUser1
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-42.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/useradd...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/sbin/useradd SudoUser1
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaaab000

Program received signal SIGSEGV, Segmentation fault.
0x00002aaaae388e2c in _nss_ldap_db_get () from /lib64/libnss_ldap.so.2

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. See the description part

  
Actual results:
Segfault.

Expected results:
No segfault.

Additional info:
As you can see in valgrind log it seems there is some unfreed space.

Comment 1 Aleš Mareček 2011-11-25 16:49:48 UTC
Created attachment 536376 [details]
Valgrind log

Comment 4 Jakub Hrozek 2011-11-28 09:19:35 UTC

*** This bug has been marked as a duplicate of bug 756783 ***


Note You need to log in before you can comment on or make changes to this bug.