{"id":13394660,"url":"https://github.com/danluu/debugging-stories","last_synced_at":"2026-01-27T01:31:40.430Z","repository":{"id":16414280,"uuid":"19165364","full_name":"danluu/debugging-stories","owner":"danluu","description":"A collection of debugging stories. PRs welcome (sorry for the backlog) :-)","archived":false,"fork":false,"pushed_at":"2025-11-19T01:27:31.000Z","size":128,"stargazers_count":3819,"open_issues_count":6,"forks_count":144,"subscribers_count":192,"default_branch":"master","last_synced_at":"2025-12-17T04:27:28.183Z","etag":null,"topics":["debugging"],"latest_commit_sha":null,"homepage":"http://danluu.com/teach-debugging/","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sobolevn/awesome-cryptography","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danluu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-26T01:04:01.000Z","updated_at":"2025-12-16T16:29:46.000Z","dependencies_parsed_at":"2025-03-24T18:44:18.408Z","dependency_job_id":null,"html_url":"https://github.com/danluu/debugging-stories","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danluu/debugging-stories","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danluu%2Fdebugging-stories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danluu%2Fdebugging-stories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danluu%2Fdebugging-stories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danluu%2Fdebugging-stories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danluu","download_url":"https://codeload.github.com/danluu/debugging-stories/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danluu%2Fdebugging-stories/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28795468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"ssl_error","status_checked_at":"2026-01-27T01:07:06.974Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging"],"created_at":"2024-07-30T17:01:27.413Z","updated_at":"2026-01-27T01:31:40.424Z","avatar_url":"https://github.com/danluu.png","language":null,"readme":"\n# Debugging stories\n\nDebugging stories are fun! This is a collection of links to various debugging stories.\n\n## Non Fiction stories\n\n[An unprecedented look at STUXNET, the world's first digital weapon](https://www.wired.com/2014/11/countdown-to-zero-day-stuxnet/)\n\n[Atop segfaults](http://rachelbythebay.com/w/2014/03/02/sync/)\n\n[Breakpoint takes 15ms](https://www.jwhitham.org/2015/04/the-mystery-of-fifteen-millisecond.html)\n\n[Bug that hides from breakpoints](https://drewdevault.com/2014/02/02/The-worst-bugs.html)\n\n[C64 Variable Screen Position crash](http://www.linusakesson.net/scene/safevsp/index.php)\n\n[Chrome development branch crashes with x87 FPU stack overflow](https://randomascii.wordpress.com/2016/09/16/everything-old-is-new-again-and-a-compiler-bug/)\n\n[Crash Bandicoot memory card corruption](https://www.gamedeveloper.com/programming/my-hardest-bug-ever)\n\n[Crashes only on Wednesdays](https://gyrovague.com/2015/07/29/crashes-only-on-wednesdays/)\n\n[Custom Rust OS crashes](https://jvns.ca/blog/2013/12/04/day-37-how-a-keyboard-works/)\n\n[Debian package data corruption, but only on sparc64](https://web.archive.org/web/20060612203753/http://vger.kernel.org/~davem/cgi-bin/blog.cgi/index.html)\n\n[Debugging an evil Go runtime bug](https://marcan.st/2017/12/debugging-an-evil-go-runtime-bug/)\n\n[Debugging Insights](http://debuggingrules.com/?page_id=46) (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\")\n\n[Digital divider with wrong output](http://danluu.com/teach-debugging/)\n\n[Email only goes 500 miles](http://www.ibiblio.org/harris/500milemail.html)\n\n[How I cut GTA Online loading times by 70%](https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times-by-70/)\n\n[Impossible random number collision happened in practice](https://medium.com/@betable/tifu-by-using-math-random-f1c308c4fd9d)\n\n[Incorrect sign masking operation](https://labs.spotify.com/2015/08/27/underflow-bug/)\n\n[iOS file corruption](https://engineering.fb.com/ios/debugging-file-corruption-on-ios/)\n\n[First Instance of Actual Computer Bug Being Found](https://www.computerhistory.org/tdih/september/9/)\n\n[FIRST robotics dashboard segfaults due to finalizer](https://www.lukeshu.com/blog/java-segfault.html)\n\n[Fixing A Bug In An 18 Year Old Shockwave Game](https://mattbruv.github.io/ccsr-bugfix/)\n\n[FriendNet / WoW message corruption](https://blog.makandra.com/2010/04/the-greatest-bug-i-never-fixed/)\n\n[FPGA / CPU timing bug](https://eli.thegreenplace.net/2003/10/30/hardware-debugging-is-hard)\n\n[Gdb set follow-fork-mode child doesn't work](https://nanxiao.me/en/use-dtrace-to-diagnose-gdb-issues/)\n\n[git - pack corruption post-mortem](http://git.661346.n2.nabble.com/pack-corruption-post-mortem-td7597765.html)\n\n[Grep segfaults](http://blog.loadzero.com/blog/tracking-down-a-segfault-in-grep/)\n\n[GWT test passes during normal runs but fails during coverage runs](http://ismail.badawi.io/blog/an-obscure-bug-story/)\n\n[Java 8 webapp performance problems](https://engineering.indeedblog.com/blog/2016/09/job-search-web-app-java-8-migration/)\n\n[JVM has 6-7 second GC pauses](https://www.evanjones.ca/jvm-mmap-pause-finding.html)\n\n[Linux kernel CPU contention](http://notes.secretsauce.net/notes/2015/09/05_a-kernel-debugging-story.html)\n\n[Login only works when sitting down (and other stories)](https://books.google.ca/books?id=kse_7qbWbjsC\u0026lpg=PP1\u0026pg=PA56). From Jon Bentley's _Programming Pearls_, section 5.10\n\n[Mandrill stops sending messages](https://www.seancassidy.me/sherlock-holmes-debugging.html)\n\n[Matrix transformation is 10x faster in a test harness than in the game](https://randomascii.wordpress.com/2015/01/19/knowing-where-to-type-zero/)\n\n[Memory-corruption / threading bug](https://nanxiao.me/en/an-experience-of-fixing-a-memory-corruption-bug/)\n\n[Mouse won't move while processes are dying](https://randomascii.wordpress.com/2017/07/09/24-core-cpu-and-i-cant-move-my-mouse/)\n\n[MS Money crashes](https://devblogs.microsoft.com/oldnewthing/?p=6103). Includes reverse engineered binary patch fix!\n\n[Multicast to 237.0.0.1 acts craters performance](https://www.outerthoughts.com/2004/10/perfect-multicast-storm/)\n\n[Network link instability due to DB caching policies](https://engineering.fb.com/production-engineering/solving-the-mystery-of-link-imbalance-a-metastable-failure-state-at-scale/)\n\n[NFS bug hunting on GitLab](https://about.gitlab.com/blog/2018/11/14/how-we-spent-two-weeks-hunting-an-nfs-bug/)\n\n[Node.js memory leak](https://www.tritondatacenter.com/blog/walmart-node-js-memory-leak)\n\n[OpenOffice + Ubuntu|2009-04-28](https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/255161/comments/28) - \"My wife has complained that OpenOffice will never print on Tuesdays\" (bug is actually with the [file utility](https://bugs.launchpad.net/ubuntu/+source/file/+bug/248619))\n\n[OS crashes on boot if machine was used recently](https://blog.valerieaurora.org/2013/12/17/heres-my-favorite-operating-systems-war-story-whats-yours/)\n\n[PDP-11 crashes only when live cattle are being shipped from northern Ukraine and western Russia](https://www.jakepoz.com/debugging-behind-the-iron-curtain/)\n\n[Perl can't read from TMPDIR?](https://blog.afoolishmanifesto.com/posts/investigation-into-why-perl-cant-read-from-tmpdir/) [(separate analysis of the same issue here)](https://blog.plover.com/tech/tmpdir.html)\n\n[Polish S doesn't appear on medium](https://medium.engineering/the-curious-case-of-disappearing-polish-s-fa398313d4df)\n\n[PS2 SDK doesn't zero the .bss segment](https://fobes.dev/general/2024/02/29/inline-assembly-dangers.html)\n\n[Python hashes files differently on different days](https://dpb.bitbucket.io/unexpected-behavior-from-the-python-3-built-in-hash-function.html)\n\n[Python/Flask/S3 absurd memory usage](https://www.jamesporter.me/2015/12/09/mysterious-memory-consumption.html)\n\n[Register allocation algorithm in JIT uses extra register](http://bitfunnel.org/debugging-nativejit/)\n\n[Script crashes before 10 a.m](https://darekkay.com/blog/script-crashes-before-10/)\n\n[SIGALRM timer hangs](https://nativeguru.wordpress.com/2015/02/19/why-you-should-avoid-using-sigalrm-for-timer/)\n\n[Signal fails only when returning from page fault handler](https://news.ycombinator.com/item?id=7684824)\n\n[Signal handling on 286 emulator for Xenix](https://news.ycombinator.com/item?id=7684827)\n\n[The Case of Veeerrry Slow Logons](https://techcommunity.microsoft.com/t5/windows-blog-archive/the-case-of-the-veeerrry-slow-logons/ba-p/724275)\n\n[SSH sometimes fails from cron](http://mina.naguib.ca/blog/2012/10/22/the-little-ssh-that-sometimes-couldnt.html)\n\n[Stack corruption when using select()](https://blogs.unity3d.com/2016/04/25/debugging-memory-corruption-who-the-hell-writes-2-into-my-stack-2/)\n\n[Switch crashes machine despite not being connected](http://www.catb.org/jargon/html/magic-story.html)\n\n[The Debug heap that created bugs\n](http://lectem.github.io/windows/heap/appverifier/detours/2020/01/02/The-debug-heap-that-created-bugs.html)\n\n[The Wi-Fi only works when it's raining](https://predr.ag/blog/wifi-only-works-when-its-raining/)\n\n[Tmux/vim strangeness](http://www.daniellesucher.com/2014/04/24/my-new-favorite-vim-tmux-bug/)\n\n[Tracking down a CPU bug in Solaris across multiple OS layers](https://gist.github.com/vladak/d7edf765fe2763b698b06488230d5886)\n\n[uint32_t gets truncated to 16 bits](http://kdc-blog.blogspot.com/2008/03/one-day-one-of-my-co-workers-stopped-me.html)\n\n[Unit tests fail when run in Australia](https://github.com/angular/angular.js/issues/5017)\n\n[Windows crash dump of nonsensical instruction](https://devblogs.microsoft.com/oldnewthing/?p=43293)\n\n[HTTP/HTTPS not working inside your VM? Wait for it.](https://rachelbythebay.com/w/2016/03/22/6nat/)\n\n[The big handle gamble](https://x64dbg.com/blog/2017/11/04/the-big-handle-gamble.html)\n\n[We had a unit test once which only failed on Sundays](https://qntm.org/unit)\n\n## Fictional stories\n\n[Coding Machines](https://www.teamten.com/lawrence/writings/coding-machines/)\n\n## Contributors\n\n* Adriano Gil\n* Alexandros Tasos\n* Arthur Axel fREW Schmidt\n* André Luiz\n* Bill Smith\n* Brad Parker\n* Bruce Dawson\n* bussiere\n* crazymerlyn\n* Dan Luu\n* Dan Nguyen\n* Darek Kay\n* Dima Kogan\n* Dimitry (unknownexception)\n* Florent Viel\n* Howard Mao\n* Jakub Kądziołka\n* Jani Patokallio\n* Jessie Weinstein\n* José Manuel Díez\n* Jouke Waleson\n* Jyrki Vesterinen\n* Kartik Agaram\n* Kevin D. Clark\n* Kirtan Gajjar\n* Louis Vela\n* Matteo Castellini\n* Mark Jason Dominus\n* michaelx386\n* Nan Xiao\n* Nathan Isom\n* Nikola Brežnjak\n* Pietro Menna\n* Predrag Gruevski\n* Rafik Draoui\n* Ramon Fried\n* Sean Cassidy\n* Ty Lamontagne\n* Vladimír Kotal\n* James Porter\n\n## TODOs:\n\n* Improve formatting.\n\n* Write up some interesting bugs: 40 hour hang, hardware bug caused by copying behavior of Intel engineering sample found on ebay, etc.\n","funding_links":[],"categories":["miscellaneous","Others","Technical"],"sub_categories":["ramanihiteshc@gmail.com"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanluu%2Fdebugging-stories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanluu%2Fdebugging-stories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanluu%2Fdebugging-stories/lists"}