> It is sometimes necessary to debug issues with the production version of > the > code too. It might be useful to include a command line option that will > emit > these messages in any version of the code. Perhaps --debug-race would work. > > This uses a GCC compile time option to inject race detectors into the code. The code as a result runs a lot slower. Since, there is no code that I have written as part of this, I don't see how it would be possible to add this to the production executable.
However, it should be possible to debug an issue by replicating the same environment and running the race-detection compiled code. This should work since the flags used detect potential race conditions, and hence should detect if there will exist any races in that run. Else, the problem probably lies somewhere else. -- Thanking You, Darshit Shah
