This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nscd/22161] New: nscd cache prune for netgroups hangs after timeout bump
- From: "dj at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 20 Sep 2017 21:46:54 +0000
- Subject: [Bug nscd/22161] New: nscd cache prune for netgroups hangs after timeout bump
- Auto-submitted: auto-generated
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.