From owner-freebsd-questions Thu Aug 12 3:26:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relex.relex.ru (slip.relex.ru [195.98.69.100]) by hub.freebsd.org (Postfix) with ESMTP id EF59815715 for ; Thu, 12 Aug 1999 03:25:27 -0700 (PDT) (envelope-from alec@relex.relex.ru) Received: from alec.relex.ru (alec.relex.ru [195.98.69.163]) by relex.relex.ru (8.8.8/Relcom-2A) with SMTP id OAA08815 for ;Thu, 12 Aug 1999 14:11:50 +0400 (MSD) Message-ID: <00e001bee4ac$024ef770$a34562c3@alec.relex.ru> From: "Alec Kalinin" To: Subject: Problem with allocation memory in FreeBSD-3.2-RELEASE Date: Thu, 12 Aug 1999 14:18:23 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! I have a problem with allocation memory in FreeBSD-3.2-RELEASE. This simple program hungs my system: ------------------- begin program ----------------------------- #include #include #define NALLOC 1000 #define SIZEALLOC 1024*1024 #define WAIT 100 void main() { char *p_mem; int i, j; if (fork() != 0) return; for (i=0; i