Skip to content

JesseWeinstein/debugging-stories

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 

Repository files navigation

Debugging stories are fun! This is a collection of links to various debugging stories.

An experience of fixing a memory-corruption bug

Atop segfaults

Bug that hides from breakpoints

Crash Bandicoot Memory Card Corruption

Crashes only on Wednesdays

Custom Rust OS crashes

Debugging Behind the Iron Curtain

Debugging file corruption on iOS

Debugging Insights (collection of stories on separate pages, submitted to Dave Agans, the author of "Debugging: The 9 Indispensable Rules for Finding Even the Most Elusive Software and Hardware Problems")

Digital divider with wrong output

FIRST robotics dashboard segfaults due to finalizer

Grep segfaults

GWT test passes during normal runs but fails during coverage runs

hardware debugging is hard

How to find a bug... (Wayback Machine copy; scroll down for post)

I don't always use logging, but when I do I make sure it's to /dev/null

JVM has 6-7 second GC pauses

Login only works when sitting down (and other stories). From Jon Bentley's Programming Pearls, section 5.10

Matrix transformation is 10x faster in a test harness than in the game

MS Money crashes. Includes reverse engineered binary patch fix!

Network link instability due to DB caching policies

OS crashes on boot if machine was used recently

Perfect multicast storm

Python hashes files differently on different days

Sherlock Holmes Debugging

Signal fails only when returning from page fault handler

Signal handling on 286 emulator for Xenix

The case of the 500-mile email

The curious case of the disappearing Polish S

The greatest bug I never fixed

The little ssh that (sometimes) couldn't

The mystery of the fifteen-millisecond breakpoint instruction

Tracking down tmux/vim strangeness

Use DTrace to diagnose gdb issues

Veeerrry Slow Logons

Walmart Node.js Memory Leak

Why Did CHICKEN Cross the... oh nevermind (Wayback Machine copy; scroll down to find the actual post)

[Why you should avoid using SIGALRM for timers] (https://nativeguru.wordpress.com/2015/02/19/why-you-should-avoid-using-sigalrm-for-timer)

Windows crash dump of nonsensical instruction

When Solid State Drives are not that solid

Magic or 'more magic'

Cosmic ray ?

Sometimes a bug is hit only after code was executed 100 trillion times -- Spotify's underflow bug

Rebuilding the 747 at 35,000 Feet

The "Buggy" C Compiler

I am a fan of Programming by Contract and gcc's -Wcast-qual

Contributors

  • Dan Luu
  • Dimitry (unknownexception)
  • Florent Viel
  • Howard Mao
  • Jani Patokallio
  • Jouke Waleson
  • Jyrki Vesterinen
  • Louis Vela
  • Matteo Castellini
  • michaelx386
  • Nan Xiao
  • Nathan Isom
  • Ramon Fried
  • Sean Cassidy
  • Florent Viel
  • Kirtan Gajjar
  • Kevin D. Clark

TODOs:

Improve formatting.

Write up some interesting bugs: 40 hour hang, hardware bug caused by copying behavior of Intel engineering sample found on ebay, etc.

About

A collection of debugging stories. PRs welcome!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published