Article View: gnu.gdb.bug
Article #8769gdb 4.7 on sparc running SunOS4.1.2
From: Robert Forsman
Date: Wed, 02 Dec 1992 18:27
Date: Wed, 02 Dec 1992 18:27
140 lines
5953 bytes
5953 bytes
I managed to make gdb 4.7 dump core. I don't know how to help you guys
reproduce it, though.
As you can see from the "info loc" statment, your auto demangle selection
does not work perfectly yet, and my experience is that even when I set
demangle to cfront explicitly I still can't access local variables easily
and accessing sub-parts of a structure is almost impossible.
cove:21 % gdb test004
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...
(gdb) run
Starting program:
/amd/lightning/cis/lightning3/thoth/work/iac++/src/pointset/test004
ready to fill the arrays
array 1 filled
array 2 filled
array 1 sorted
array 2 sorted
ips 1 tested
ips 2 tested
^Z
Program received signal 18, Stopped
index__8YoderIPSCFUi (__0this=0x5a558, __0_result=0xf7fff5e0,
i::i(double, long long)=1) at YoderIPS.c:329
329 bottom = middle;
(gdb) where
#0 index__8YoderIPSCFUi (__0this=0x5a558, __0_result=0xf7fff5e0,
i::i(double, long long)=1) at YoderIPS.c:329
#1 0x16184 in index__8YoderIPSCFUi (__0this=0x5a3f0, __0_result=0xf7fff688,
i::i(double, long long)=1) at YoderIPS.c:336
#2 0x8804 in test_iter (p::p(short)=0xf7fff7d0) at generic-tests.c:629
#3 0x2f34 in main (__1argc=1, __1argv=0xf7fff8ac) at test004.c:98
(gdb) list
324 while (bottom<top) {
325 middle = (bottom+top)/2;
326 if (idx<slices[middle].count_last)
327 top = middle;
328 else
329 bottom = middle;
330 }
331
332 idx -= (bottom>0) ? slices[bottom-1].count_last : 0;
333
(gdb) print top
No symbol "top" in current context.
(gdb) info loc
__0this = (struct YoderIPS *) 0x5a558
__1bottom = 1
__1top = 2
m::m(int, double, double, long,...) = 1
(gdb) print *this
No symbol "this" in current context.
(gdb) set dem cfront
(gdb) print *this
gdb internal error: Memory corruption
Quit (core dumped)
cove:22 % gdb gdb
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...
(gdb) where
No stack.
(gdb) core core
Core was generated by `gdb'.
Program terminated with signal 3, Quit.
where#0 0xf770f178 in kill ()
(gdb) where
#0 0xf770f178 in kill ()
#1 0x3acdc in fatal_dump_core (__builtin_va_alist=1170840) at utils.c:306
#2 0x3b00c in malloc_botch () at utils.c:482
#3 0xf8a00 in checkhdr (mdp=0x151000, hdr=0x157600) at mmcheck.c:65
#4 0xf8a84 in mfree_check (md=0x0, ptr=0x157608 "intSetFRC8YoderIPS")
at mmcheck.c:78
#5 0xf7ae8 in mfree (md=0x0, ptr=0x157608 "intSetFRC8YoderIPS") at
mfree.c:227#6 0xf7b28 in free (ptr=0x157608 "intSetFRC8YoderIPS") at mfree.c:246
#7 0x3ce30 in demangle_and_match (
name=0x1d20a9
"__vtbl__42LazyUnaryPS__pt__23_11IntPointSet8IntPoint__IntPointSet_c",
lookfor=0xf7fff4d8 "this", options=3) at utils.c:1439
#8 0x28d18 in lookup_symbol (name=0xf7fff4d8 "this", block=0x2165b0,
namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0x0)
at symtab.c:570
#9 0x4eb20 in c_lex () at ./c-exp.y:1437
#10 0x4f2f8 in c_parse () at /usr/lib/yaccpar:184
#11 0x4b6a4 in parse_exp_1 (stringptr=0xf7fff58c, block=0x0, comma=0)
at parse.c:556
#12 0x4b770 in parse_expression (string=0x15600e "*this") at parse.c:578
#13 0x25264 in print_command_1 (exp=0x15600e "*this", inspect=0, voidprint=1)
at printcmd.c:749
#14 0x25494 in print_command (exp=0x15600e "*this", from_tty=1)
at printcmd.c:803
---Type <return> to continue---
#15 0x3664 in execute_command (p=0x15600e "*this", from_tty=1) at main.c:931
#16 0x38e4 in command_loop () at main.c:990
#17 0x33b8 in main (argc=2, argv=0xf7fff8ac) at main.c:857
(gdb) up
#1 0x3acdc in fatal_dump_core (__builtin_va_alist=1170840) at utils.c:306
306 kill (getpid (), SIGQUIT);
(gdb)
#2 0x3b00c in malloc_botch () at utils.c:482
482 fatal_dump_core ("Memory corruption");
(gdb)
#3 0xf8a00 in checkhdr (mdp=0x151000, hdr=0x157600) at mmcheck.c:65
65 (*mdp -> abortfunc)();
(gdb)
#4 0xf8a84 in mfree_check (md=0x0, ptr=0x157608 "intSetFRC8YoderIPS")
at mmcheck.c:78
78 checkhdr (mdp, hdr);
(gdb)
#5 0xf7ae8 in mfree (md=0x0, ptr=0x157608 "intSetFRC8YoderIPS") at
mfree.c:227227 (*mdp -> mfree_hook) (md, ptr);
(gdb)
#6 0xf7b28 in free (ptr=0x157608 "intSetFRC8YoderIPS") at mfree.c:246
246 mfree ((PTR) NULL, ptr);
(gdb)
#7 0x3ce30 in demangle_and_match (
name=0x1d20a9
"__vtbl__42LazyUnaryPS__pt__23_11IntPointSet8IntPoint__IntPointSet_c",
lookfor=0xf7fff4d8 "this", options=3) at utils.c:1439
1439 free (demangled);
(gdb) list
1434
1435 if ((demangled = cplus_demangle (name, options)) != NULL)
1436 {
1437 if (strcmp_iw (demangled, lookfor) != 0)
1438 {
1439 free (demangled);
1440 demangled = NULL;
1441 }
1442 }
1443 return (demangled);
(gdb)
Technical Details
Message-ID:
<9212021827.AA04455@cove.cis.ufl.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cove.cis.ufl.edu!thothShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,18a314048a011854,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1992-12-02 14:48:17 PST Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cove.cis.ufl.edu!thoth From: thoth@cove.cis.ufl.edu (Robert Forsman) Subject: gdb 4.7 on sparc running SunOS4.1.2 Message-ID: <9212021827.AA04455@cove.cis.ufl.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 2 Dec 1992 18:27:14 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 141