Get the latest tech news
The Hunt for Error -22
This article is a linear retrospective of how we searched for and eventually fixed a hard-to-find bug in our embedded software. If you're only interested in the outcome, then make sure to read the ...
But we do have unsafe code in our codebase; Especially on embedded, you can't do without, because we need to talk to the hardware and implement very low-level datastructures to be efficient (and to avoid allocations in some cases). After some consideration, the client decided to give us more time to look into this problem and we also involved our good friend and former colleague Wouter Geraedts(aka Wassasin online). In the working version, I found a section that had two interesting words: one seemed to be a pointer to the TX shared memory and the other had a value of 44, which was the length of the message we were sending to the server.
Or read this on Hacker News