OhmsCode.
CURATED LIST · 30 PROBLEMS

Debugging drills

Thirty bug reports from real-world failure classes. Explain the cause, the evidence and the fix.

Status# ↑TitleTopicTypeDifficultyAcceptance
Not attempted1The length that wrappedEmbedded CDebugMedium—
Not attempted2A torn timestampInterrupts & concurrencyDebugMedium—
Not attempted3I2C stuck after resetFREECommunication interfacesDebugMedium—
Not attempted4SPI shifted by one bitCommunication interfacesDebugMedium—
Not attempted5The starving loggerRTOS conceptsDebugMedium—
Not attempted6Reset every two secondsMicrocontrollersDebugMedium—
Not attempted7Debugger changes the bugDebugging & bring-upDebugMedium—
Not attempted8ADC always near full scaleDebugging & bring-upDebugMedium—
Not attempted9Mutex from an interruptRTOS conceptsDebugMedium—
Not attempted10A claim without evidenceProject explanationDebugMedium—
Not attempted11The callback kept a stack addressEmbedded CDebugMedium—
Not attempted12The truncated string that kept readingEmbedded CDebugMedium—
Not attempted13Negative length becomes a huge transferEmbedded CDebugMedium—
Not attempted14The pointer lost on realloc failureEmbedded CDebugMedium—
Not attempted15The unsigned reverse loop never stopsEmbedded CDebugMedium—
Not attempted16The packet length read through a castEmbedded CDebugMedium—
Not attempted17Structure equality changes between buildsEmbedded CDebugMedium—
Not attempted18A macro consumed two samplesEmbedded CDebugMedium—
Not attempted19Release-only behavior from signed overflowEmbedded CDebugMedium—
Not attempted20A shared formatting buffer corrupted logsEmbedded CDebugMedium—
Not attempted21Acknowledging one flag cleared anotherBits & registersDebugMedium—
Not attempted22The field grew into its neighborBits & registersDebugMedium—
Not attempted23A debugger consumed the eventBits & registersDebugMedium—
Not attempted24GPIO updates clobber another taskBits & registersDebugMedium—
Not attempted25The mask worked until bit thirty-twoBits & registersDebugMedium—
Not attempted26A byte store did not acknowledge statusBits & registersDebugMedium—
Not attempted27The bit-field driver changed with compilerBits & registersDebugMedium—
Not attempted28A protected setting silently stayed unchangedBits & registersDebugMedium—
Not attempted29DMA transmitted yesterday's payloadMicrocontrollersDebugMedium—
Not attempted30DMA receive buffer looks unchangedMicrocontrollersDebugMedium—