create account

The simplest yet the most hilarious and the most destructive bug ever in history? by lilacse

View this thread on: hive.blogpeakd.comecency.com
· @lilacse ·
$2.76
The simplest yet the most hilarious and the most destructive bug ever in history?
So today Quora decided to give me a thread on "what is the most dangerous code you have seen?"

Honestly, I expected code that kills - code that makes machines crash and burn, code that makes planes fly into space, code that accidentally fires nuclear weapons, code that makes your toaster a torturing monster, burning your every inch of skin whenever it likes...etc. Indeed, there are a bunch of replies there, including most of the things I mentioned above - _almost_ wrongly firing nuclear weapons, dangerous code that _almost_ kill pilots, code that makes programmable robots do things unusually, code that sneaks so well that you never know you get infected (Stuxnet, if you are interested in it. The [Wikipedia article](https://en.wikipedia.org/wiki/Stuxnet) is worth a read), etc. No, there is still no code that makes your toaster a monster. At least for now. I hope that it won't happen too. 

But, there's a reply that caught my attention. It's just a tiny reply, mentioning...

"**Nvidia graphics driver for Linux that killed the system**"

Great, that's something I'm looking for. 

---

![](https://steemitimages.com/DQmQ7vfXQd8yFh9NKvVEmsxBBoPftsQ8Z1QPeY8dv4SwXQW/image.png)

First sight: Wow. 

Then: Okay let's see where went wrong. 

Later: \*cried while laughing on the floor for 5 minutes*

![](https://steemitimages.com/DQmQHnT3G567re2NPm8MohZYJtsKdE17P3V6ZGHaWk9CNRn/image.png)

Alright, if you don't catch this, let me do some explanation. 

1. `rm` is a command used to delete things. 
2. `-rf` tells the deletion command that it should delete everything in that folder, including folders in it. Besides that, it should forcefully delete everything - leave nothing behind. 
3. `/usr/lib/nvidia-current/xorg/xorg` is the place where the graphics driver lives. Basically, deleting this equals to uninstalling the driver. 

Sounds nothing wrong till now. But, there was a space between /usr and /lib/... 

That would mean...deleting the entire /usr folder instead of the driver folder. If you are a Windows person, then here's some extra information - the name of the folder (usr) means "user usable programs and data" or "user system resources". Deleting this somehow equals to deleting a huge part of C:\Windows\system32 and C:\Program Files, C:\Users, etc. 

In short, it breaks your system. 

All by having an extra space in that single command. That one character killed a bunch of PCs before the developer realise how big a mess he caused. The commit went viral and tons of memes regarding it came out...wow. I never knew that a GitHub commit could go viral and be remembered to this day. It's still the commit with the most amount of comments on GitHub today. 

It is indeed the simplest and the deadliest bug we can find in history. Probably nothing else can surpass it in the long future. 

To developers, always test your code. You know, if you do not dare to test it...then something should be wrong. Believe your instincts. Plus, don't write code when you are tired, there are also a big bunch of tragics (probably comedies) caused by writing code late at night...

<center>![](https://steemitimages.com/DQmVw9bcCX3sTepHRNJswY4LVaTWrM5zK9gmjmXrRfy3Lx8/image.png)</center>

Source: [One of the issue pages on that repo](https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123)

And this. 

<center>![](https://steemitimages.com/DQmb6x4tUdEEhHh44AFFSnoeoGD29kSHKuUo8ETgFbN4s65/image.png)</center>

Source: [The commit link on GitHub here](https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac#diff-3fbb47e318cd8802bd325e7da9aaabe8)

:)

If you have the time, go and scroll the commit thread (link right above). It's full of laughter instead of rage...and embrace the memes. Even if you read it before, it is still some nice stuff to brighten up your day. 

Have fun, 

--Lilacse
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 29 others
properties (23)
authorlilacse
permlinkthe-simplest-yet-the-most-hilarious-and-the-most-destructive-bug-ever-in-history
categoryprogramming
json_metadata{"tags":["programming","linux","technology","blog","teammalaysia"],"image":["https://steemitimages.com/DQmQ7vfXQd8yFh9NKvVEmsxBBoPftsQ8Z1QPeY8dv4SwXQW/image.png","https://steemitimages.com/DQmQHnT3G567re2NPm8MohZYJtsKdE17P3V6ZGHaWk9CNRn/image.png","https://steemitimages.com/DQmVw9bcCX3sTepHRNJswY4LVaTWrM5zK9gmjmXrRfy3Lx8/image.png","https://steemitimages.com/DQmb6x4tUdEEhHh44AFFSnoeoGD29kSHKuUo8ETgFbN4s65/image.png"],"links":["https://en.wikipedia.org/wiki/Stuxnet","https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123","https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac#diff-3fbb47e318cd8802bd325e7da9aaabe8"],"app":"steemit/0.1","format":"markdown"}
created2018-05-14 16:18:36
last_update2018-05-14 16:18:36
depth0
children3
last_payout2018-05-21 16:18:36
cashout_time1969-12-31 23:59:59
total_payout_value2.157 HBD
curator_payout_value0.600 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,867
author_reputation19,250,085,524,596
root_title"The simplest yet the most hilarious and the most destructive bug ever in history?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id55,665,331
net_rshares558,857,109,614
author_curate_reward""
vote details (93)
@superoo7 ·
$0.03
`sudo rm -rf /` still the classic

Question: does `rm -rf` work on window's powershell? I've using UNIX for a while din know about it.
👍  
properties (23)
authorsuperoo7
permlinkre-lilacse-the-simplest-yet-the-most-hilarious-and-the-most-destructive-bug-ever-in-history-20180514t175704175z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2018-05-14 17:56:45
last_update2018-05-14 17:56:45
depth1
children1
last_payout2018-05-21 17:56:45
cashout_time1969-12-31 23:59:59
total_payout_value0.027 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length134
author_reputation27,763,618,634,121
root_title"The simplest yet the most hilarious and the most destructive bug ever in history?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id55,680,468
net_rshares6,890,508,376
author_curate_reward""
vote details (1)
@lilacse · (edited)
Yea...someone did said that the bug is already shown its mercy by not doing `rm -rf / usr/lib/nvidia-current/xorg/xorg`😂😂

![](https://steemitimages.com/DQmYEtYx5foDnf2U7jq8FgvTVJi5g88jJcCf14otuCpHhUD/image.png)

Apparently...no. :P but `rm -r` did work.
properties (22)
authorlilacse
permlinkre-superoo7-re-lilacse-the-simplest-yet-the-most-hilarious-and-the-most-destructive-bug-ever-in-history-20180515t013418635z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1","image":["https://steemitimages.com/DQmYEtYx5foDnf2U7jq8FgvTVJi5g88jJcCf14otuCpHhUD/image.png"]}
created2018-05-15 01:34:24
last_update2018-05-15 01:36:03
depth2
children0
last_payout2018-05-22 01:34:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length254
author_reputation19,250,085,524,596
root_title"The simplest yet the most hilarious and the most destructive bug ever in history?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id55,736,579
net_rshares0
@teammalaysia ·
#### You've been upvoted by **TeamMalaysia** Community :- 
To support the growth of TeamMalaysia Follow our upvotes by using **steemauto.com** and follow trail of @myach

Vote **TeamMalaysia** witness bitrocker2020 using this link <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=bitrocker2020&approve=true">vote for witness</a>
properties (22)
authorteammalaysia
permlinkthe-simplest-yet-the-most-hilarious-and-the-most-destructive-bug-ever-in-history
categoryprogramming
json_metadata{"tags":["teammalaysiadevtest","teammalaysia"],"app":"stephard/0.1"}
created2018-05-16 00:27:15
last_update2018-05-16 00:27:15
depth1
children0
last_payout2018-05-23 00:27:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length351
author_reputation197,980,348,668
root_title"The simplest yet the most hilarious and the most destructive bug ever in history?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id55,912,822
net_rshares0