crash @ malloc.c:2777

Isselmou Ould-Dellahy iod@ccrl.mot.com
Wed Oct 27 07:40:00 GMT 1999


You're very likely right but, I think malloc's internal
data structures should be better protected to give a message
rather than crashing.
Le me add that this crash happens only on a pc under linux
with gcc version 2.95.1 19990816 (release).
I run it on HP-UX and Solaris and it works fine;
(I know that it can run on an other platform while
it contains a bug!).
Also I run it under "purify" and nothing was triggered.
Right now I'm trying to minimize its size and I plan to
send it to the mailing list.
Let me mention that in this program I'm using both
malloc function and new operator.

Thank you for replying
--
Isselmou

On Wed, Oct 27, 1999 at 01:25:49AM -0200, Alexandre Oliva wrote:
> On Oct 26, 1999, "Isselmou Ould-Dellahy" <iod@ccrl.mot.com> wrote:
> 
> > Does anybody understand the crash below ?
> 
> Yup.  There's a bug in your program that's corrupting malloc's
> internal data structures.  Watch out for dangling pointers.
> 
> -- 
> Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il


More information about the Gcc-bugs mailing list