GDB 4.16 dumps core with egcs-1.0

tdowney@newscorp.com tdowney@newscorp.com
Thu Dec 11 13:38:00 GMT 1997


Hi folks

Has anyone else had trouble with gdb-4.16 and egcs-1.0 under Solaris
2.6.  I recently recompiled gdb with egcs and now it dumps core every
time I run it.  The core dump does not occur until I actually finish
using gdb.

It appears to actual work correctly during the debugging, but will dump
core every time i exit.  It will also dumps core under a simple run of:

 
nutbrown:~(13)> gdb -v
GDB 4.16 (sparc-sun-solaris2.6), Copyright 1996 Free Software Foundation, Inc.

gdb internal error: Memory corruption
Quit (core dumped)


Doing a debug of the core file that gdb generated with a stack trace
shows:

(gdb) bt
#0  0xef6c72e0 in _libc_kill ()
#1  0x9ba58 in fatal_dump_core (string=0x105ca8 "Memory corruption")
    at utils.c:403
#2  0x9bd1c in malloc_botch () at utils.c:674
#3  0xd8914 in checkhdr (mdp=0x147000, hdr=0x14aff8) at mmcheck.c:65
#4  0xd8958 in mfree_check (md=0x0, ptr=0x14aff8) at mmcheck.c:78
#5  0xd8150 in mfree (md=0x0, ptr=0x14b000) at mfree.c:227
#6  0xd8180 in free (ptr=0x14b000) at mfree.c:246
#7  0xe1c78 in __deregister_frame (begin=0x1348f8)
#8  0x27f50 in __do_global_dtors_aux ()
#9  0xe1e48 in _fini ()
#10 0xef658d30 in _exithandle ()
#11 0xef6c7380 in exit ()
#12 0x9e7fc in main (argc=2, argv=0xeffff10c) at main.c:336
(gdb) 


Has anyone else seen this or have any suggestions?

Thanks!
-tim

-- 
+-------------------------------------------------------------------------+
|Tim Downey                                           tdowney@newscorp.com|
|News Internet Services                  tdowney@nutbrown.nis.newscorp.com|
|900 Chelmsford Street                          Principal Systems Engineer|
|Lowell, MA  01851                                           (978)551-1125|
+-------------------------------------------------------------------------+




More information about the Gcc-bugs mailing list