• Stars
    star
    3,589
  • Rank 12,354 (Top 0.3 %)
  • Language
  • Created over 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of debugging stories. PRs welcome (sorry for the backlog) :-)

Debugging stories

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

Non Fiction stories

An unprecedented look at STUXNET, the world's first digital weapon

Atop segfaults

Breakpoint takes 15ms

Bug that hides from breakpoints

C64 Variable Screen Position crash

Chrome development branch crashes with x87 FPU stack overflow

Crash Bandicoot memory card corruption

Crashes only on Wednesdays

Custom Rust OS crashes

Debian package data corruption, but only on sparc64

Debugging an evil Go runtime bug

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

Email only goes 500 miles

How I cut GTA Online loading times by 70%

Impossible random number collision happened in practice

Incorrect sign masking operation

iOS file corruption

First Instance of Actual Computer Bug Being Found

FIRST robotics dashboard segfaults due to finalizer

Fixing A Bug In An 18 Year Old Shockwave Game

FriendNet / WoW message corruption

FPGA / CPU timing bug

Gdb set follow-fork-mode child doesn't work

git - pack corruption post-mortem

Grep segfaults

GWT test passes during normal runs but fails during coverage runs

Java 8 webapp performance problems

JVM has 6-7 second GC pauses

Linux kernel CPU contention

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

Mandrill stops sending messages

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

Memory-corruption / threading bug

Mouse won't move while processes are dying

MS Money crashes. Includes reverse engineered binary patch fix!

Multicast to 237.0.0.1 acts craters performance

Network link instability due to DB caching policies

NFS bug hunting on GitLab

Node.js memory leak

OpenOffice + Ubuntu|2009-04-28 - "My wife has complained that OpenOffice will never print on Tuesdays" (bug is actually with the file utility)

OS crashes on boot if machine was used recently

PDP-11 crashes only when live cattle are being shipped from northern Ukraine and western Russia

Perl can't read from TMPDIR? (separate analysis of the same issue here)

Polish S doesn't appear on medium

Python hashes files differently on different days

Python/Flask/S3 absurd memory usage

Register allocation algorithm in JIT uses extra register

Script crashes before 10 a.m

SIGALRM timer hangs

Signal fails only when returning from page fault handler

Signal handling on 286 emulator for Xenix

The Case of Veeerrry Slow Logons

SSH sometimes fails from cron

Stack corruption when using select()

Switch crashes machine despite not being connected

The Debug heap that created bugs

Tmux/vim strangeness

Tracking down a CPU bug in Solaris across multiple OS layers

uint32_t gets truncated to 16 bits

Unit tests fail when run in Australia

Windows crash dump of nonsensical instruction

HTTP/HTTPS not working inside your VM? Wait for it.

The big handle gamble

Fictional stories

Coding Machines

Contributors

  • Alexandros Tasos
  • Arthur Axel fREW Schmidt
  • André Luiz
  • Bill Smith
  • Brad Parker
  • Bruce Dawson
  • bussiere
  • crazymerlyn
  • Dan Luu
  • Dan Nguyen
  • Darek Kay
  • Dima Kogan
  • Dimitry (unknownexception)
  • Florent Viel
  • Howard Mao
  • Jakub KÄ…dzioÅ‚ka
  • Jani Patokallio
  • Jessie Weinstein
  • José Manuel Díez
  • Jouke Waleson
  • Jyrki Vesterinen
  • Kartik Agaram
  • Kevin D. Clark
  • Kirtan Gajjar
  • Louis Vela
  • Matteo Castellini
  • Mark Jason Dominus
  • michaelx386
  • Nan Xiao
  • Nathan Isom
  • Nikola Brežnjak
  • Pietro Menna
  • Rafik Draoui
  • Ramon Fried
  • Sean Cassidy
  • Vladimír Kotal
  • James Porter

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.

More Repositories

1

post-mortems

A collection of postmortems. Sorry for the delay in merging PRs!
10,556
star
2

UFLDL-tutorial

Deep Learning and Unsupervised Feature Learning Tutorial Solutions
Jupyter Notebook
389
star
3

malloc-tutorial

A quick tutorial on how to implement malloc/free/calloc/realloc
C
150
star
4

setjmp-longjmp-ucontext-snippets

Implementing coroutines, channels, message passing, etc.
C
131
star
5

storrent

Toy scala/akka Bittorrent client. Written while learning scala and now unmaintained
Scala
76
star
6

sega-system-for-fpga

FPGA Sega in Verilog, for Xilinx Virtex, circa 2002. Has an emulator thrown in, to simplify FPGA debugging.
Assembly
68
star
7

Fuzz.jl

World's dumbest fuzzer
Julia
50
star
8

akka-concurrency-wyatt

Worked through Derek Wyatt's Akka Concurrency book
Scala
47
star
9

dump

Experiments and preliminary implementations of things
PostScript
23
star
10

fs-errors

Reproducing resuts from old papers on modern filesystems
Python
22
star
11

julia-cookbook

julialang cookbook
CSS
16
star
12

ninety-nine-scala-problems

Solutions and tests for Phil Gold's S-99: Ninety-Nine Scala Problems
Scala
14
star
13

secvisor-formal-verification

Formal verification of SecVisor, a secure hypervisor
Common Lisp
12
star
14

gnu-pth

Copy of latest source from http://ftp.gnu.org/gnu/pth/
C
10
star
15

ncverilog-error-messages

Explanation of ncverilog error messages. Nothing fancy; just a text file.
9
star
16

danluu-hugo-theme

Basic blog theme, "works for me"-quality. This is only here because someone wanted a copy; I don't suggest that you use it :-)
HTML
8
star
17

neural-nets-101

Just playing around with basic neural net stuff, with a brief sojourn into deep learning via RBMs
MATLAB
6
star
18

madison-hack-and-tell

Madison Hack and Tell presentations
5
star
19

hydra

Fork of Hydra source
Haskell
4
star
20

verilog-dump

Verilog
4
star
21

ocaml-llvm-tutorial

Working through Erick Tryzelaar's LLVM tutorial
OCaml
3
star
22

buzzword-bingo

Buzzword bingo game from 1993
C
2
star
23

bluespec-tutorials

Playing around with some bluespec tutorials
2
star
24

mta-analysis

Protocol Buffer
2
star
25

hello-world

Just working through the tutorial at http://blog.ksplice.com/2010/03/libc-free-world/
C
2
star
26

Xv6

Copy of http://pdos.csail.mit.edu/6.828/2012/xv6.html
C
2
star
27

thompson-haskell

Exercises from Thompson's "Haskell: The Craft of Functional Programming"
Haskell
2
star
28

dineroIV

Repo for some experiments using dineroIV
C
2
star
29

csv

Testing CSV implementations
Python
1
star
30

Project-Euler

Learning F# and bluespec via Project Euler
F#
1
star
31

julia-metaprogramming

1
star
32

config

.emacs, and perhaps some other things
Emacs Lisp
1
star
33

isotropic

Client/server code from an early version of isotropic
Python
1
star
34

notes

1
star
35

n2t

nand2tetris, verilog
Verilog
1
star
36

rust-experiments

Learning rust
Rust
1
star
37

latency

An abandoned experiment
Python
1
star
38

kodkod-clj

Messing around with a SAT solver in clojure
Clojure
1
star