gdb internal error: Memory corruption

Philipp Thomas kthomas@gwdg.de
Wed Oct 1 09:40:00 GMT 1997


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.

Philipp




More information about the Gcc-bugs mailing list