Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@dot.cygnus.com>
Subject: Re: foo=malloc(),realloc(foo) =&gt; SIGSEGV ?!
Date: Sun, 19 Oct 1997 22:43:29 -0700	[thread overview]
Message-ID: <c49b1b0a00e7a8c5b7beedd335dde41c.axp-list@archive.invalid> (raw)
In-Reply-To: <199710181920.MAA07898@wasatch.ps.uci.edu>

On Sat, Oct 18, 1997 at 12:20:45PM -0700, Christopher J. Grayce wrote:
> 
> Can anyone shed light on this?  I get SIGSEGV when calling realloc
> with what I reall think is a legitimate pointer. 

My guess is that you've corrupted the heap by writing outside the memory
you actually allocated.  This would be consistent with the program
happening to work on DU, since the arena meta-data is stored at different
places.

I don't recall what version of malloc is in Red Hat 4.2's libc, but
you can try setting the environment variable MALLOC_CHECK_=1, which
will detect some problems and print messages to stderr.

r~

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-10-20  5:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199710181920.MAA07898@wasatch.ps.uci.edu>
1997-10-20  5:43 ` Richard Henderson [this message]
1997-10-18 19:20 foo=malloc(),realloc(foo) =&gt; SIGSEGV ?! Christopher J. Grayce
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox