This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nscd/22161] New: nscd cache prune for netgroups hangs after timeout bump


https://sourceware.org/bugzilla/show_bug.cgi?id=22161

            Bug ID: 22161
           Summary: nscd cache prune for netgroups hangs after timeout
                    bump
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nscd
          Assignee: unassigned at sourceware dot org
          Reporter: dj at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

in nscd/netgroupcache.c in addinnetgrX() we call mempool_alloc(..., 1) which
takes a lock on the database.  If we exit via the "bump timeout" clause, the
lock is not released.

This can be reproduced by requesting the same query multiple times within the
timeout, then waiting for a cache prune cycle that needs to time those entries
out... the prune thread waits forever for a write lock.  Reads from the
database continue but prunes stop.  To the user, it appears as if the cache
just keeps stale data.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]