Subject: misc/11215: netbsd ending up in db mode
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/13/2000 11:52:16
>Number:         11215
>Category:       misc
>Synopsis:       netbsd ending up in db mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 13 11:52:00 PDT 2000
>Originator:     Mipam
>Release:        NetBSD-release 3 sept
              just Mipam :)	
System: NetBSD 1.4.3_ALPHA NetBSD 1.4.3_ALPHA (Mipam) #0: Sun Sep 3 18:43:18 CEST 2000 i386

Compile this program:

int main()
 while ( fork() )

call this program fun, make a little script under the name: toy
with these contents:

chmod u+x toy and run toy as just a user.
After a few seconds netbsd ends up in db mode.
Okay... i guess you all know 100000 ways to make this happen, but i
guess i seems a user can claim much memory per process and netbsd will
run outta memory and ands up in debugger mode.
Perhaps this shouldnt be so or is there a way to restrict the amount
of memory and proceses a user can fork, allocate memory?
Btw this will work with all netbsd's until 1.4.3_alpha... also
on 1.4, 1.4.1, 1.4.2 it'll work for x86 platform that is
Run toy, and it's repeated... 
Restrict the amount of processes a user can fork ( i guess this is allrdy
done?) restrict the amount of memory a user can allocate.