Article View: gnu.gdb.bug
Article #8gdb 4.7 internal error on Sparc 4.1.2 w/ Sun C++ 2.1
From: Dave Brennan
Date: Tue, 27 Oct 1992 19:20
Date: Tue, 27 Oct 1992 19:20
62 lines
3281 bytes
3281 bytes
Any attempt to quote a function name kills gdb. I used main here for
simplicity, but it happens with any C++ symbol.
I built gdb 4.7 with "configure sun4" and "make". Has anyone used gdb 4.7
successfully with Sun C++ on SunOS 4.1.2??
% gdb folio
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.7, Copyright 1992 Free Software Foundation, Inc...
OLIASPATH=/aus2e/rtp/doc/infolib.tabs
(gdb) break "main"
gdb internal error: Memory corruption
Quit (core dumped)
Here's the backtrace:
Core was generated by `gdb'.
Program terminated with signal 3, Quit.
#0 0xf775c120 in kill ()
OLIASPATH=/aus2e/rtp/doc/infolib.tabs
(gdb) bt
#0 0xf775c120 in kill ()
#1 0x3acdc in fatal_dump_core (__builtin_va_alist=1170832) at utils.c:306
#2 0x3b00c in malloc_botch () at utils.c:482
#3 0xf8a00 in checkhdr (mdp=0x152000, hdr=0x16ed00) at mmcheck.c:65
#4 0xf8c3c in mrealloc_check (md=0x0, ptr=0x16ed08 "rsorFv", size=1098)
at mmcheck.c:120
#5 0xf929c in mrealloc (md=0x0, ptr=0x16ed08 "rsorFv", size=1098)
at mrealloc.c:59
#6 0x3b168 in xmrealloc (md=0x0, ptr=0x16ed08 "rsorFv", size=1098)
at utils.c:565
#7 0x3b214 in xrealloc (ptr=0x16ed08 "rsorFv", size=1098) at utils.c:595
#8 0xfe2bc in string_need (s=0xf7ffed74, n=1098) at cplus-dem.c:2071
#9 0xfe5d8 in string_prependn (p=0xf7ffed74, s=0x54061f "v_cursorFv", n=478)
at cplus-dem.c:2191
#10 0xfc058 in cfront_special (work=0xf7ffed50, mangled=0xf7ffedc4,
declp=0xf7ffed74) at cplus-dem.c:1171
#11 0xfbbe4 in demangle_prefix (work=0xf7ffed50, mangled=0xf7ffedc4,
declp=0xf7ffed74) at cplus-dem.c:1008
#12 0xfa940 in cplus_demangle (mangled=0x54061f "v_cursorFv", options=3)
at cplus-dem.c:402
#13 0x3cdf8 in demangle_and_match (
name=0x5405c8 "__vtbl__8v_cursor__cursor_traits_cc",
lookfor=0xf7ffeec9 "", options=3) at utils.c:1435
#14 0x2db70 in expensive_mangler (lookfor=0xf7ffeec9 "") at symtab.c:2705
#15 0x2ba5c in decode_line_1 (argptr=0xf7fff004, funfirstline=1,
default_symtab=0x0, default_line=0) at symtab.c:1817
#16 0x9f20 in break_command_1 (arg=0x15700e "\"main\"", tempflag=0, from_tty=1)
at breakpoint.c:1497
#17 0xa2ec in break_command (arg=0x15700e "\"main\"", from_tty=1)
at breakpoint.c:1582
#18 0x3664 in execute_command (p=0x15700e "\"main\"", from_tty=1) at main.c:931
#19 0x38e4 in command_loop () at main.c:990
--
Dave Brennan HaL Computer Systems
brennan@hal.com (512) 794-2855
Technical Details
Message-ID:
<BRENNAN.92Oct27132025@hysteria.hal.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!jvnc.net!yale.edu!think.com!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!hal.com!brennanShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!jvnc.net!yale.edu!think.com!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!hal.com!brennan From: brennan@hal.com (Dave Brennan) Subject: gdb 4.7 internal error on Sparc 4.1.2 w/ Sun C++ 2.1 Message-ID: <BRENNAN.92Oct27132025@hysteria.hal.com> Sender: gnulists@ai.mit.edu Organization: HaL Computer Systems, Austin, TX Distribution: gnu Date: Tue, 27 Oct 1992 19:20:25 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 63