Watch as we stomp the seemingly simple bug… That turns out to be something seriously sinister! (Spoiler: Static Vars are broken) That Header File wa

Fixing a uname bug (Apache NuttX RTOS)

submited by
Style Pass
2025-01-18 22:30:06

Watch as we stomp the seemingly simple bug… That turns out to be something seriously sinister! (Spoiler: Static Vars are broken)

That Header File was created at build time from a Hidden File that you can find in the top-level nuttx directory called .version.

And that’s our CONFIG_VERSION_BUILD with Commit Hash! Looks hunky dory, why wasn’t it returned correctly to uname and NuttX Shell?

Now we chase the uname raving rabbid inside our NuttX App. Normally we’d dump the RISC-V Disassembly for our Hello App ELF…

Next Article: Why Sync-Build-Ingest is super important for NuttX Continuous Integration. And how we monitor it with our Magic Disco Light.

After That: Since we can Rewind NuttX Builds and automatically Git Bisect… Can we create a Bot that will fetch the Failed Builds from NuttX Dashboard, identify the Breaking PR, and escalate to the right folks?

Leave a Comment