News for hackers. Stuff that matters.
Re:We stopped roadmap work for a week and fixed 189 bugs by snovv_crash on Monday November 24, 2025 @02:46AM (#46031409)
This is why a test suite and mock application running on the host is so important. Tools like valgrind can be user to validate that you won't have any memory errors once you deploy to the platform that doesn't have protections against invalid accesses.

It wouldn't have caught your issue in this case. But it would have eliminated a huge part of the search space your embedded engineers had to explore while hunting down the bug.

Re:We stopped roadmap work for a week and fixed 189 bugs by com2kid on Monday November 24, 2025 @11:54AM (#46036160)
Custom OS, cross compiling from Windows, using Arm's old C compiler so tools like valgrid weren't available to us.

Since it was embedded, no malloc. Everything being static allocations made the search possible in the first place.

This wasn't the only HW bug we found, ugh.

Re:We stopped roadmap work for a week and fixed 189 bugs by paulf38 on Tuesday November 25, 2025 @12:44AM (#46042693)
Valgrind (and the sanitizers) are only as good as your test coverage.

Static analysis can cover all your code, though generally with a significant rate of false positives that you will need to analyse.