[cvsnt-dev] cvsnt - bug in tag operation

Krzysztof Nowak k.nowak at osmosys.tv
Tue Jul 21 08:18:21 BST 2009


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hi,

We have found serious bug while performing two RTAG operations in parallel.
The problem was that changes of first RTAG operations where removed by 
second RTAG operation.

The problem comes from using not locked file, original source code in 
function rcsbuf_open()
opens the file before locking the file.

The scenario is as follows:
1) process 1 opens file and locks file
2) process 2 opens file
3) process 1 modifies file, unlocks an closes file
4) process 2 locks file and modifies file overwriting modifications of 
first process because it has opened file before locking it!

Please find attached out patch.

Regards,
Krzysztof Nowak


More information about the cvsnt-dev mailing list