Most common reasons for unstable bugs in C++?

后端 未结 9 1806
终归单人心
终归单人心 2020-12-28 23:16

I am currently working on a large project, and I spend most of the time debugging. While debugging is a normal process, there are bugs, that are unstable, and these bugs are

9条回答
  •  北荒
    北荒 (楼主)
    2020-12-28 23:55

    Race conditions.

    These are one of the few things that still sends a shiver down my spine when it comes up in debugging (or in the issue tracker). Inherently horrible to debug, and extremely easy to create. The three most common causes of bugs in my C++ software have been race conditions, reliance on uninitialised memory, and reliance on static constructor order.

    And if you don't know what race conditions are, chances are they're the cause of your instability ;)

提交回复
热议问题