If you know beforehand the problem, with a lot of ingenuity and chance, you may recover.
In the real world you'll always have closed a process you need for recovery (because you don't expect every new exec to fail) so the system is unrecoverable.
And BTW, existing processes will try to respawn childs that keep dying, so you'll have to deal with a fork-bomb simultaneously (and the first reflex will be so init 1 to quieten the system, which will close existing terms, and guess what will happen when you try to open a new one?)
Posted Jul 7, 2009 16:31 UTC (Tue) by joey (subscriber, #328)
[Link]
Existing proccesses are unlikely to respawn more than 1 process each, which will fail to start, which does not qualify as a fork bomb, surely?
I had excellent luck once recovering from a hosed ld.so using only zsh. zsh, you see, includes a built-in ftp client that doesn't need to fork at all in order to download a file. Only an open root shell was needed.
Why people don't test development distributions
Posted Jul 7, 2009 17:26 UTC (Tue) by nim-nim (subscriber, #34454)
[Link]
> Existing proccesses are unlikely to respawn more than 1 process each,
> which will fail to start, which does not qualify as a fork bomb, surely?
That depends on how many do at the same time, if some of them are configured to maintain a process worker pool, and how quickly they retry.
Why people don't test development distributions
Posted Jul 9, 2009 16:39 UTC (Thu) by Tet (subscriber, #5433)
[Link]
If you know beforehand the problem, with a lot of ingenuity and chance, you may recover
Sometimes, the level of ingenuity necessary is beyond that of mere mortals...
Why people don't test development distributions
Posted Jul 11, 2009 9:48 UTC (Sat) by nix (subscriber, #2304)
[Link]
That was the war story I was referring to, as well. It's almost alone:
I've seen a single additional tale in which an IRIX kernel hacker did
something similar to get a dead IRIX box back to life, and that's all.
(The 'as one whose world has just come to an end' story doesn't approach
the same level of brilliance, sorry.)