Fireship · @fireship
25 crazy software bugs explained
Uploaded November 1, 2024 · Length 16:50
Summary
Fireship explains 25 crazy software bugs that changed the world, from the Sid Meier's Civilization Gandhi bug to the 2024 Chase ATM glitch.
- software bugs
- programming mistakes
- coding errors
- tech disasters
- computer glitches
- coding stories
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
it's not a bug it's a feature but
- 0:02
programmers often use that excuse to
- 0:03
justify their garbage code and sometimes
- 0:05
it actually works like in the original
- 0:07
sidm civilization game Gandhi's
- 0:09
aggression level was set to an unsigned
- 0:11
integer of one making him a super chill
- 0:13
pacifist but when another Civ adopts
- 0:15
diplomacy it reduces aggression by two 1
- 0:18
- 2 = 255 or an unsigned integer
- 0:21
underflow which max out Gandhi's
- 0:23
aggression and turned him into a
- 0:24
diabolical thermonuclear Enthusiast the
- 0:27
Civ players love this bug so much that
- 0:28
it became a feature that the urban
- 0:30
legend anyway but it's all fun in games
- 0:32
until people start losing money and
- 0:33
getting blown up in real life real men
- 0:35
test in production and in today's video
- 0:37
we're going to take this carbon fiber
- 0:39
submarine and travel down the software
- 0:41
bug Iceberg to look at 25 examples of
- 0:43
bad code that changed the world where
- 0:45
the deeper we go the more severe the
- 0:47
consequences if you survive until the
- 0:48
end you'll understand why to-do fix it
- 0:51
later might be the last line of code you
- 0:52
ever write our journey begins in the
- 0:54
year 2008 a time when people still use
- 0:56
devices like iPods to listen to music
- 0:59
Microsoft had its own crappy knockoff
- 1:00
called Zoom the device worked great
- 1:02
until December 31st New Year's Eve when
- 1:05
every zoon around the world froze and
- 1:06
became a very stylish brick the screen
- 1:09
displayed a loading bar and would get
- 1:10
stuck at 100% And then just stay there
- 1:13
it could only be fixed manually by
- 1:14
removing the battery this happened
- 1:16
because it wasn't programmed to account
- 1:17
for the extra day in a leap year when
- 1:19
reaching the 366th day of a leap year
- 1:22
the software attempted to reset but a
- 1:24
logic error in handling the day count
- 1:26
meant the device could not exit the loop
- 1:28
causing it to freeze permanently this
- 1:29
this code could be easily fixed by
- 1:31
simply breaking out of the loop when the
- 1:32
number of days reach 367 but not all
- 1:35
bugs are that easy to fix like the
- 1:37
infamous Pentium fdiv bug of 94
- 1:40
occasionally when a program did floating
- 1:41
Point division on a Pentium chip it
- 1:43
would return an incorrect value it only
- 1:45
happened in about 1 in N billion
- 1:47
division operations but was discovered
- 1:49
by a professor at Lynchberg College
- 1:51
while doing computational number Theory
- 1:53
originally he thought it was his own bug
- 1:55
but after extensive testing he reported
- 1:56
it to Intel Intel tried to downplay it
- 1:59
but then IBM suspended Intel chips in


