Bug 1727152

Summary: glibc: Avoid nscd assertion failure during persistent db check
Product: Red Hat Enterprise Linux 8 Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: ashankar, codonell, dj, fweimer, mnewsome, pfrankli, skolosov
Target Milestone: rcKeywords: Patch
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.28-70.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 21:29:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1684559    

Description Florian Weimer 2019-07-04 17:29:55 UTC
We need to backport this upstream patch:

commit 61595e3d36ded374f97961503e843a314b0203c2
Author: Andreas Schwab <schwab>
Date:   Tue May 15 14:42:37 2018 +0200

    nscd: avoid assertion failure during persistent db check
    
    nscd should not abort when it finds inconsistencies in the persistent db.

Comment 7 Sergey Kolosov 2019-09-26 18:26:39 UTC
Verified by corrupting a record of /var/db/passwd file:

on glibc-2.28-69.el8 nscd crashes:
 nscd: connections.c:307: check_use: Assertion `len >= 2' failed.
Aborted (core dumped)

on glibc-2.28-70.el8 nscd reports about invalid DB and continue works:
 invalid persistent database file "/var/db/nscd/passwd": verification failed

Comment 11 errata-xmlrpc 2019-11-05 21:29:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:3513