Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!agate!garnet.berkeley.edu!ked From: ked@garnet.berkeley.edu (Earl H. Kinmonth) Newsgroups: comp.lang.c Subject: Re: malloc hangs indefinitely Message-ID: <19725@agate.BERKELEY.EDU> Date: 31 Jan 89 05:33:01 GMT References: <489@marob.MASA.COM> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 8 In article <489@marob.MASA.COM> daveh@marob.masa.com (Dave Hammond) writes: >space in its heap. Any suggestions on what might cause malloc to >spin its wheels? Have I perhaps trashed malloc's heap list? In those versions of malloc where the heap list is maintained through a header just before the portion returned to you, this is very probable. Copy a too long string into an area returned by malloc or assign with a negative subscript and you will often do this.