public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nscd/10402] New: nscd locking severely broken
@ 2009-07-16 14:38 pasky at suse dot cz
  2009-07-16 14:39 ` [Bug nscd/10402] " pasky at suse dot cz
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: pasky at suse dot cz @ 2009-07-16 14:38 UTC (permalink / raw)
  To: glibc-bugs

The commit 20e498bd removes the pthread_mutex_rdlock() calls, but not the
corresponding pthread_mutex_unlock() calls. Also, the database lock is never
unlocked in one branch of the mempool_alloc() if.

I think unreproducible random assert(dh->usable) crashes in prune_cache() were
caused by this. But an easy way to make nscd threads hang with the broken
locking was

  while true; do id root; id tttest; nscd -i passwd; done

-- 
           Summary: nscd locking severely broken
           Product: glibc
           Version: 2.10
            Status: NEW
          Severity: critical
          Priority: P2
         Component: nscd
        AssignedTo: drepper at redhat dot com
        ReportedBy: pasky at suse dot cz
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10402

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-10402-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-07-01  7:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-16 14:38 [Bug nscd/10402] New: nscd locking severely broken pasky at suse dot cz
2009-07-16 14:39 ` [Bug nscd/10402] " pasky at suse dot cz
2009-07-16 17:11 ` drepper at redhat dot com
2009-07-17 14:51 ` drepper at redhat dot com
2009-07-17 14:51 ` drepper at redhat dot com
2009-07-21 10:18 ` pasky at suse dot cz
2009-07-21 10:46 ` jakub at redhat dot com
2009-08-25 14:37 ` pasky at suse dot cz
2009-08-25 22:46 ` pasky at suse dot cz
     [not found] <bug-10402-131@http.sourceware.org/bugzilla/>
2014-07-01  7:48 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).