Fireship · @fireship

25 crazy software bugs explained

Uploaded November 1, 2024 · Length 16:50

25 crazy software bugs explained

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.

  1. 0:00

    it's not a bug it's a feature but

  2. 0:02

    programmers often use that excuse to

  3. 0:03

    justify their garbage code and sometimes

  4. 0:05

    it actually works like in the original

  5. 0:07

    sidm civilization game Gandhi's

  6. 0:09

    aggression level was set to an unsigned

  7. 0:11

    integer of one making him a super chill

  8. 0:13

    pacifist but when another Civ adopts

  9. 0:15

    diplomacy it reduces aggression by two 1

  10. 0:18

    - 2 = 255 or an unsigned integer

  11. 0:21

    underflow which max out Gandhi's

  12. 0:23

    aggression and turned him into a

  13. 0:24

    diabolical thermonuclear Enthusiast the

  14. 0:27

    Civ players love this bug so much that

  15. 0:28

    it became a feature that the urban

  16. 0:30

    legend anyway but it's all fun in games

  17. 0:32

    until people start losing money and

  18. 0:33

    getting blown up in real life real men

  19. 0:35

    test in production and in today's video

  20. 0:37

    we're going to take this carbon fiber

  21. 0:39

    submarine and travel down the software

  22. 0:41

    bug Iceberg to look at 25 examples of

  23. 0:43

    bad code that changed the world where

  24. 0:45

    the deeper we go the more severe the

  25. 0:47

    consequences if you survive until the

  26. 0:48

    end you'll understand why to-do fix it

  27. 0:51

    later might be the last line of code you

  28. 0:52

    ever write our journey begins in the

  29. 0:54

    year 2008 a time when people still use

  30. 0:56

    devices like iPods to listen to music

  31. 0:59

    Microsoft had its own crappy knockoff

  32. 1:00

    called Zoom the device worked great

  33. 1:02

    until December 31st New Year's Eve when

  34. 1:05

    every zoon around the world froze and

  35. 1:06

    became a very stylish brick the screen

  36. 1:09

    displayed a loading bar and would get

  37. 1:10

    stuck at 100% And then just stay there

  38. 1:13

    it could only be fixed manually by

  39. 1:14

    removing the battery this happened

  40. 1:16

    because it wasn't programmed to account

  41. 1:17

    for the extra day in a leap year when

  42. 1:19

    reaching the 366th day of a leap year

  43. 1:22

    the software attempted to reset but a

  44. 1:24

    logic error in handling the day count

  45. 1:26

    meant the device could not exit the loop

  46. 1:28

    causing it to freeze permanently this

  47. 1:29

    this code could be easily fixed by

  48. 1:31

    simply breaking out of the loop when the

  49. 1:32

    number of days reach 367 but not all

  50. 1:35

    bugs are that easy to fix like the

  51. 1:37

    infamous Pentium fdiv bug of 94

  52. 1:40

    occasionally when a program did floating

  53. 1:41

    Point division on a Pentium chip it

  54. 1:43

    would return an incorrect value it only

  55. 1:45

    happened in about 1 in N billion

  56. 1:47

    division operations but was discovered

  57. 1:49

    by a professor at Lynchberg College

  58. 1:51

    while doing computational number Theory

  59. 1:53

    originally he thought it was his own bug

  60. 1:55

    but after extensive testing he reported

  61. 1:56

    it to Intel Intel tried to downplay it

  62. 1:59

    but then IBM suspended Intel chips in