What sorts of crashes can a lack of threadsafety cause? (Sort of a follow-up to Under what circumstances are atomic properties useful?).
Can anyone reproduce a crash example (even if sporadically) with a test case?
I'm trying to sort out from a large number of crash logs what percent of them are related to a particular integer variable being accessed from multiple threads. (Yes, I've already confirmed that this access can happen in my iOS app, the question is just how often does it happen.)
Obviously improper variable access can lead to unexpected effects and more crashes downstream, but I'm interested only in those related directly to the access/mutation of the variable (since downstream effects won't generally be the same from one app to another). Also, only interested in integer (or other completely immutable) variables.
I'm seeking any example error codes / exceptions / crash logs from which I can extract keywords and regular expressions. Even better would be a test app or unit test case which can reproduce a crash with high probability. I tried a simple example in a unit test but couldn't seem to cause a crash.