This is the mail archive of the libc-hacker@sourceware.cygnus.com 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]

Re: IO deadlock


Thorsten Kukuk <kukuk@weber-eb.uni-paderborn.de> writes:

> I have found the problem: We have a lock deadlock.
> fflush() locks the stream, and _IO_SYNC, too. It will hang in _IO_SYNC
> in flockfile().

I've changed _IO_file_sync.  I don't know why I've added locking
there.  It's not necessary and not wanted.

> There are some more functions, which makes a double lock on the stream.
> Haven't found them all yet, but getpwuid_r will also hang.

Well, as I've said double locking shouldn't be a problem normally...

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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