[HN Gopher] Fixing a uname bug (Apache NuttX RTOS)
       ___________________________________________________________________
        
       Fixing a uname bug (Apache NuttX RTOS)
        
       Author : lupyuen
       Score  : 29 points
       Date   : 2025-01-18 22:03 UTC (3 days ago)
        
 (HTM) web link (lupyuen.org)
 (TXT) w3m dump (lupyuen.org)
        
       | InfiniteRand wrote:
       | There 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 wrote:
       | Bugs 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.
        
       | zxilly wrote:
       | I 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 wrote:
       | ... what was the bug?
        
         | colejohnson66 wrote:
         | The loader was fixing up the ELF's .data section incorrectly:
         | 
         | https://github.com/apache/nuttx/issues/15526
         | 
         | https://github.com/apache/nuttx/pull/15527
        
       | ge96 wrote:
       | I like his work on the pinephone
        
       ___________________________________________________________________
       (page generated 2025-01-21 23:03 UTC)