this post was submitted on 11 Nov 2025
556 points (97.4% liked)
Programmer Humor
27322 readers
2231 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
On my computer, this pushes one core to ~60%, eats ~40MB of memory over the course of about a minute and then segfaults.
I did make one small change to the condition which would mean that it would bail out if available memory got too low, but 40MB barely even registered so it was basically true the whole time. In retrospect, I probably should have been monitoring process count instead (or done both), but I guess I got away with it.
As OP says, you need to create subprocesses with
&to cause real problems.*Bash 5.2.15 / LMDE6 / who knows what other factors. Try these things at your own risk. Or better, just don't.