From owner-freebsd-hackers Mon Jan 17 18:50: 5 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from aspirin.bulnet.com (ns1.bulnet.com [212.124.82.3]) by hub.freebsd.org (Postfix) with ESMTP id 9FAB414DDA for ; Mon, 17 Jan 2000 18:50:00 -0800 (PST) (envelope-from ian@bulinfo.net) Received: from cserv.oksys.bg (root@ppp13.bulnet.com [212.124.82.40]) by aspirin.bulnet.com (8.9.3/8.9.3) with ESMTP id EAA21973; Tue, 18 Jan 2000 04:46:12 +0200 Received: from bulinfo.net (ian@localhost [127.0.0.1]) by cserv.oksys.bg (8.9.3/8.9.3) with ESMTP id EAA18546; Tue, 18 Jan 2000 04:49:40 +0200 (EET) (envelope-from ian@bulinfo.net) Message-ID: <3883D4C4.E87573FC@bulinfo.net> Date: Tue, 18 Jan 2000 04:49:40 +0200 From: Iani Brankov Organization: ok systems X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Cc: Matthew Dillon Subject: Re: The stack size for a process? References: <3883AC8A.7A6F7D5F@bulinfo.net> <200001180231.SAA18439@apollo.backplane.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Dillon wrote: [snip] > At your csh prompt type 'limit'. If you are using bash type 'ulimit -a'. > > When I compile and run your program it works fine on my box. I tried > compiling it -O0, -O1, and -O2. > > % cc x.c -o x -O0 > % ./x > % Here's the ~>ulimit -a core file size (blocks) unlimited data seg size (kbytes) 524288 file size (blocks) unlimited max locked memory (kbytes) unlimited max memory size (kbytes) unlimited open files 2088 pipe size (512 bytes) 1 stack size (kbytes) 65536 cpu time (seconds) unlimited max user processes 1043 virtual memory (kbytes) 589824 The machine has enough RAM & swap space. (256/512MB) I feel Daniel is right. The problem can be in the fact that it uses threads. I don't know do the threads share share the same stack space and how. My main point was that the application worked before `making the world'. Thanks, --iani To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message