Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bu.edu!m2c!risky.ecs.umass.edu!jog From: jog@ganzer.ecs.umass.edu (Ashwini ) Newsgroups: comp.lang.c Subject: Failure INSIDE malloc() ?? Message-ID: <1991Jun19.131709.13260@risky.ecs.umass.edu> Date: 19 Jun 91 13:17:09 GMT Sender: jog@risky.ecs.umass.edu (Ashwini ) Organization: University of Massachusetts, Amherst Lines: 15 Hello Everyone, I'm having a problem with malloc routine. I have a large program, so I may run out of memory (im using free wherever possible) but my program still crashes INSIDE malloc. Isnt this routine supposed to return a null pointer if it runs out of allocatable memory? The program crashes at the following statement which is inside malloc.(got by running through dbx). movb $ffffffff, (r10) I couldnt find anything in the faq list. ANY help would be greatly appreciated. Thanks Ashwini jog@ecs.umass.edu