From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,20bed0f2cc70afe1 X-Google-Attributes: gidfee84,public From: Craig Neth Subject: Re: SIGSEGV INSIDE malloc: HELP!!! Date: 1999/04/02 Message-ID: <37052FF2.260A39D1@compaq.com>#1/1 X-Deja-AN: 462070165 Content-Transfer-Encoding: 7bit References: <37029976.1CAB9443@ornl.gov> To: locasciop@ornl.gov X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Phil LoCascio wrote: > > Hi, > > using OSF1 machine.name V4.0 878 alpha , I keep getting segmentation > faults INSIDE the systems malloc!! > > Anyone seen this or know a solution? > Well, it _might_ mean there is a bug in malloc, but it's unlikely. Much more likely is that your application has corrupted the heap. Malloc has control structures in the heap that it uses to keep track of your allocations; if you write off the 'end' of a block of memory that has been allocated to you then these structures will be trashed. You might find the 'third degree' tool useful - it helps find places in your application where you are 'scribbling' on memory that doesn't belong to you. Do a 'man third' to learn more about this tool. -- ---------------------------------------------------------------------------- Craig Neth ! craig.neth@compaq.com Compaq Computer Corporation ! 110 Spit Brook Road ZKO3-2/W17 ! Nashua, NH 03062 ! Opinions expressed herein are my own. ============================================================================