8 ms·
Fixing a uname bug (Apache NuttX RTOS)
- InfiniteRand 2y agoThere are a number of edge cases in embedded where static variables can become unreliable. I am not saying it is common exactly but it is certainly not unheard of. I usually keep it in my list of things to check when stuff is mysteriously going wrong
- Avamander 2y agoBugs like these are fun to read about, but never fun to debug if you need to get something else done. Nice writeup by Lup Yuen Lee once again.
- lupyuen 2y agoThank you so much! :-)
- zxilly 2y agoI had recently run into an embedded problem where when switching the order of two functions in the source code, one of them would refuse to work. I tried a number of things without identifying the real error, and finally had to add a comment warning any later parties not to do this. I even checked the assembly and they seem to be consistent. But when I upload to firmware, the error keeps coming back over and over again.
- blueflow 2y ago... what was the bug?
- colejohnson66 2y agoThe loader was fixing up the ELF's .data section incorrectly: https://github.com/apache/nuttx/issues/15526 https://github.com/apache/nuttx/issues/15526 https://github.com/apache/nuttx/pull/15527 https://github.com/apache/nuttx/pull/15527
- ge96 2y agoI like his work on the pinephone
- amiga386 2y agoThis is a fascinating article with a good detective story, and juicy details, but the images are very distracting. They auto-scale to the correct aspect ratio to fill most of the width of the screen. On a mobile phone, sure, that's fine. On a widescreen monitor on a desktop computer, they are monstrously huge and don't fit on the screen. In the CSS, rustdoc.css has img{max-width: 100%;}, but it also has .content,nav{max-width: 960px;} which is what's contraining the width of the article's text. The images look a lot better on widescreen with img{max-width: 960px;} to match... but then they don't scale correctly on the mobile layout.