To: | krb5-bugs@mit.edu |
From: | Ken Raeburn <raeburn@mit.edu> |
Date: | Wed, 12 Jan 2005 20:28:05 -0500 |
Subject: | locking bug in file ccache |
There seems to be a locking bug in cc_file.c where one thread,
changing the "OPENCLOSE" mode, wants to release disk_file_lock when
it's locked by a different thread. This seems to show up on x86-linux
under valgrind with Jeff Altman's modified multithreaded gss sample
program, but not without valgrind.
My locking strategy overall in that file is poorly thought out and
needs some work (and documentation). This should be fixed for 1.4.
Ken
changing the "OPENCLOSE" mode, wants to release disk_file_lock when
it's locked by a different thread. This seems to show up on x86-linux
under valgrind with Jeff Altman's modified multithreaded gss sample
program, but not without valgrind.
My locking strategy overall in that file is poorly thought out and
needs some work (and documentation). This should be fixed for 1.4.
Ken