34
5
Write some code that causes a BSOD or kernel panic!
Rules:
- On Windows, you must cause a BugCheck (Blue Screen of Death), on Linux (or other *nix systems) you must cause a kernel panic.
- Must not damage the system (i.e. it should work on reboot)
- Kernel-mode drivers are allowed.
- State your OS and version information.
- Explain how the crash is caused.
- It's not against the rules to use tools that are specifically designed to cause a crash, but doing so isn't very creative!
- Highest upvotes wins.
Kernel mode drivers are allowed? Doesn't it make
1/0
a valid answer? – ugoren – 2012-06-07T20:37:25.9273@urogen - Last time I checked, putting
1/0
in a file calleddriver.c
doesn't constitute a valid kernel-mode driver. Regardless, the winner is based on upvotes, not code length. – Polynomial – 2012-06-07T20:40:37.620Trying to say that using kernel drivers makes it uninteresting. Every crash in a driver crashes the kernel, and writing code that crashes isn't a challenge for most of us. – ugoren – 2012-06-08T21:21:08.797
@ugoren - Sure, but a generic kernel driver crash won't get many upvotes, so it's unlikely to win. If you can make the system crash due to some strange or obscure trick in kernel-mode, that's likely to win you some votes. – Polynomial – 2012-06-11T09:15:58.613
1I haven't been following Meta Code Golf lately - is "highest-upvoted" now allowed? (If this is the case, this website just got 100x more awesome!) – Ry- – 2012-06-12T03:55:08.643
1@minitech It's an objective criteria, so I don't see why it shouldn't be allowed. – Polynomial – 2012-06-12T07:40:10.130
I'm voting to close this question as off-topic because questions without objective winning criteria are off-topic – cat – 2016-04-29T12:36:54.613
@cat See my reply to minitech's now-deleted comment. – Polynomial – 2016-04-29T14:18:37.117
@Polynomial this was on-topic when it was asked, and when it was asked(and up until a few months ago) "most votes" was objective. this is no longer the case: http://meta.codegolf.stackexchange.com/a/8134/46231
– cat – 2016-04-29T16:17:42.817@Polynomial you will find this has been closed by community consensus, but you are free to appeal this closure on meta or by voting to reopen.
– cat – 2016-04-29T16:18:51.163@cat Doesn't really matter now anyway. It got plenty of answers. – Polynomial – 2016-04-29T16:36:12.630
2@Polynomial I've upvoted it and almost all of the answers, they're great and the community genuinely wish these sorts of challenges could be allowed, but that doesn't fit with the SE model. – cat – 2016-04-29T16:41:09.573
@cat I don't think this question is lacking objective criteria. I think the bigger problem with this question is that it's about potentially harmful code. Granted, none of the code is malicious but it's still harmful.
– James – 2016-04-29T19:47:37.7401@DrGreenEggsandHamDJ Well, my intention was certainly not harmful. I work in security, so if I wanted to write my own malicious code, I would! – Polynomial – 2016-04-29T19:48:23.900
@DrGreenEggsandHamDJ Indeed, the top answer is potentially harmful, but if you read the thingy I linked, there's a consensus that votes isn't objective, because people aren't. – cat – 2016-04-29T19:52:13.120
1
@cat If you look through here and here you'll see that nowhere is it explicitly stated that popularity contests are off-topic. They're discouraged because they tend to be off-topic, but they aren't inherently off-topic. I think this question (harmful code aside) is very high-quality as far as popcons go.
– James – 2016-04-29T19:55:31.943@DrGreenEggsandHamDJ You are correct in all you say. popcons themselves are not inherently off-topic, it's just that popcons are off-topic when the provided primary winning criterion is not an objective one. – cat – 2016-04-29T20:12:41.917
@cat In every popcon, the primary winning criteria is votes. Granted, saying "Most votes wins" doesn't necessarily make it a high quality challenge. How is this challenge more objective than this challenge, when they are both scored by votes?
– James – 2016-04-29T20:17:44.103@DrGreenEggsandHamDJ That question is special primarily because it's not a challenge by any sense of the word. It's not objective; the winner is M. Buettner's Mathematica because it's a damn amazing answer. Helka, being a well-known great-challenge-writer thought that might be an interesting experiment but we can only ever have one of those. – cat – 2016-04-29T20:36:10.270
@DrGreenEggsandHamDJ So if the code is potentially harmful, disregarding its validity as a popcon, why does this have 4 reopen votes? That's kinda scary since this definitely shouldn't stay open in a self-respecting graduated PPCG – cat – 2016-04-29T20:51:20.387
@cat I don't know. Although I still disagree with your opinion on this questions validity as a popcon. This comment chain is getting a little long. We should probably take it to chat or meta. (Or maybe even both) – James – 2016-04-29T20:53:41.943
Let us continue this discussion in chat.
– James – 2016-04-29T21:04:03.3574
I'm voting to close this question as off-topic because it requires malicious code, which violates our rules. http://meta.codegolf.stackexchange.com/a/4831/34718
– mbomb007 – 2016-09-07T20:45:46.377BSOD in 3 key presses: http://www.howtogeek.com/howto/windows-vista/keyboard-ninja-kill-windows-with-the-blue-screen-of-death-in-3-keystrokes/
– mbomb007 – 2016-09-19T21:11:17.207