From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b56a2953f52acc6 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-12-06 05:40:18 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!crl.dec.com!crl.dec.com!jac.zko.dec.com!lueck From: lueck@gurgi.zk3.dec.com (Greg Lueck Development Environment) Newsgroups: comp.unix.osf.osf1 Subject: Re: OSF/1 3.0 virt mem failure in C pgm Date: 6 Dec 1994 13:35:43 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <3c1pbf$nl7@jac.zko.dec.com> References: <3c0fek$jjs@narnia.ccs.neu.edu> Reply-To: lueck@zk3.dec.com (Greg Lueck Development Environment) NNTP-Posting-Host: gurgi.zk3.dec.com X-Newsreader: mxrn 6.18-5 Your program is not showing a virtual memory bug, but is exceeding the process's default stack size limit. By default, a process can have only 2M of stack. If a process exceeds this limit, the kernel reports an access violation for the memory reference that causes the stack to grow too big. You can change the stack size limit from the shell by doing this: >From the csh: % limit stacksize unlimited >From the bourne or korn shells: $ ulimit -s 32768 You can also change the limit from within the program by using this code fragment near the beginning: #include struct rlimit rlim; getrlimit(RLIMIT_STACK, &rlim); rlim.rlim_cur = rlim.rlim_max; setrlimit(RLIMIT_STACK, &rlim); -- ------------------------------------------------------------------------------- Greg Lueck Opinions expressed herein are my own. lueck@zk3.dec.com ------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------- Greg Lueck Opinions expressed herein are my own. lueck@zk3.dec.com -------------------------------------------------------------------------------