you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years ago (1 child)

Well, threadsanitizer catches them in runtime. Not sure about GCC static analyser and other SA tools.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago* (1 child)

    I use thread sanitizer and address sanitizer in my CI, and they have certainly helped in some cases, but they don't catch everything. In fact it's the cases that they miss which are by far the most subtle instances of undefined behavior of all.

    They also slow down execution so severely that I can't use them when trying to recreate issues that occur in production.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago

    They caught lock inversion, that helped to fix obscure hangs, that I couldn't reproduce on my machine, but were constantly happening on machine with more cores.

  • source
  • parent