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: Phil LoCascio Subject: Re: SIGSEGV INSIDE malloc: HELP!!! Date: 1999/04/05 Message-ID: <3708F497.739DF516@ornl.gov>#1/1 X-Deja-AN: 462934748 Content-Transfer-Encoding: 7bit References: <37029976.1CAB9443@ornl.gov> <37052FF2.260A39D1@compaq.com> Content-Type: text/plain; charset=us-ascii Organization: Oak Ridge National Lab, Oak Ridge, TN Mime-Version: 1.0 Reply-To: locasciop@ornl.gov Newsgroups: comp.unix.osf.osf1 Craig Neth wrote: > 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. > ============================================================================ Hi, Working on a hunch I used my malloc "wrappers" to catch strdup, and I have discovered that forcing allocations to be >=32bytes seems to prevent SIGSEGV. This might be a malloc bug, or a strdup one. Since I received identical errors using ElectricFence, I am assuming that it might have been a strdup one combined with some other. For now everyting seems to work ok; Thank You!! Cheers PHiL