This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gdb internal error: Memory corruption
- To: Philipp Thomas <kthomas at gwdg dot de>
- Subject: Re: gdb internal error: Memory corruption
- From: Ronald dot Wahl at informatik dot tu-chemnitz dot de
- Date: Wed, 1 Oct 1997 18:53:30 +0200 (CEST)
- cc: egcs-bugs at cygnus dot com
On Wed, 1 Oct 1997, Philipp Thomas wrote:
> On Wed, 1 Oct 1997 17:41:37 +0200 (CEST), you wrote:
>
> >GDB 4.16 (i586-unknown-linux), Copyright 1996 Free Software Foundation,
> >gdb internal error: Memory corruption
>
> I would try to locate the error. Previous gdbs had some bugs in the memory
> allocation routines and it could be quite possible that egcs just uncovered
> one.
>
> I remember having problems with recompiling gdb (not sure if it was 4.16) when
> I switched to the glibc 2.1 snapshots. The solution was to do a dummy calloc()
> call for 1 byte at the start of gdb's main(). Could be you're stumbling over
> the same bug.
Hmm, this doesn't help. I tried the calloc(1,1) before and after the
call to init_malloc().
ron
--
\ Ronald Wahl --- rwa@informatik.tu-chemnitz.de \
\ WWW: http://www.tu-chemnitz.de/~row \
\ Talk: rwa@goliath.csn.tu-chemnitz.de \
\ PGP key available by finger to my email address \