Re: A newbie recursion problem...:-))))
ken (k.y.) chan wrote:
> In message "A newbie recursion problem...:-))))",
> 'firstname.lastname@example.org.Uni-Koeln.de' writes:
> >Hi to all,
> >well I do not know whether this is a bug or not...
> >Suppose a user would create a file with say ten lines, each line
> >containig just the word test. Then s/he will save it as test and s/he
> >will make it executable. Now s/he will open say 4 xterminals and in each
> >he will just type test & (followed by enter). On my Debian this will
> >cause the system to nearly "stop" and the load of the system will never
> In fact, if you have 10 lines of "test &" in each test file instead,
> you would be creating new process at a rate of 4*10 process per
> *cycle* :).
> Also, you don't need to have ten lines of "test" in your executable
> called test. All you need is one line of "test", then you will have
> an infinite execution recursion if you are running it under the
> same directory..etc, at a rate of 4 new processes per *execution* :)
> >I remember that when this user types test & in each line of the file the
> >system will slow down too and I think it never stops swapping...
> >The system did not crash but was no more usable untill killing of X.
> >Well I'm a newbie, but someone knows, whether there is a cure to this???
> >I think that the kernel should prevent this recursion...any
> >propositions??? Solutions are welcome....
> If you are not running as a root, then you should be restricted to
> a limited of number of processes that you can have at any time (I
> forgot where it is defined). Linux should always reserve one process
> *space* in the system so that if you have too many processes running,
> you can still
> spawn a KILL process to kill them all. If not, I consider that
> a bug in the kernel.
I was running as a user not root, and I think that I was not restricted
a limited number of processes, well in a way...
I only got the error Message:
./test: fork: Try again
This message "never" stopped and the system slowed down every second...
The only way for me to stop all this was to close the xterminal...the
I could move the pointer...or later only by killing X with <Ctrl-Alt-F1>
I suppose that this IS a bug, because I know, that e.g. on a sparc or
dec or HP a
recursion like this is just killed by the OS. My system has 40MB of RAM
and finally I
had just 400KB of free memory, only after running this little
BTW I'm running the 2.0.25 kernel. Oh...where can I define the max
number of processes
for a user???
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com