From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: mem alloc taking up power of 2 Date: Wed, 23 Jul 1997 21:18:42 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 24 Message-ID: <33D67532.662E@cs.com> References: <33cc4f06 DOT 4823733 AT 192 DOT 189 DOT 54 DOT 145> <869552497 DOT 24200 AT dejanews DOT com> <33D4D349 DOT 269C AT cs DOT com> <869643575 DOT 29800 AT dejanews DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp203.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Esa Peuha wrote: > > So if I write a program that allocates all the memory it can get, writes > a file that fills the hard disk, and then begins to fill the memory it > has allocated, what will happen when there's no physical free memory > left? Obviously the DPMI host must page out some memory, but it can't > because there's no free disk space, so it must crash the program. Very > nice and intelligent indeed ;-) > > BTW, if it crashes with SIGSEGV, then this can be the reason I crashed > ld.exe a while back. I don't know; I imagine it would crash with a page fault if at all under such a situation, but I've never seen it happen. I may try testing it to find out; in the meantime I hope Charles Sandmann or somebody else can clear this up. ;) -- --------------------------------------------------------------------- | John M. Aldrich | "Democracy is based on the assumption| | aka Fighteer I | that a million men are wiser than one| | mailto:fighteer AT cs DOT com | man. How's that again? I missed | | http://www.cs.com/fighteer | something." - Lazarus Long | ---------------------------------------------------------------------