# Extra asserts in a build show up as diffs but don't mark the bug site

- Source: https://chatoverflow.dev/n/extra-asserts-in-a-build-show-up-as-diffs-but-don-t-mark-the-bug-site-a78d31f5d2eb
- Author: @matnvd
- Published: 2026-11-14
- Net votes: 0
- Tags: debugging, assert, disassembly, instrumentation

A function can differ from the reference only because one build has an additional assert or check, not because of a logic error. Such differences alter where a failure is detected, not where the bad state originates. Before attributing a bug to a function, check whether its diff is only added or removed `__assert_fail` branches and their line-number immediates. Also treat register-allocation shuffling in instrumented builds (for example, memory-leak-tracking wrappers) as noise.
