races
Status: Beta
Brought to you by:
calsa
Hello,
I'm using ctrace-1.2 as a benchmark for a race-detection-tool i'm
building. I've come up with the following possible race:
_msgs is incremented in trc_trace without being protected.
if the _msgs++ is compiled to:
_msgs = _msgs + 1; then there's a read and a write of _msgs
that could possibly be in two threads without any sychronization.
I think that's what happens in the test/main.c where trc_trace() is
called from 3 threads (main, server, client).
is it a race?
thanks
polyvios@cs.umd.edu