This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/778: gdb 20021001 (gdb 5.2.1+) sparc-sun-solaris2.8 bus error when eval expr
- From: rrh at cray dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 1 Oct 2002 23:22:13 -0000
- Subject: gdb/778: gdb 20021001 (gdb 5.2.1+) sparc-sun-solaris2.8 bus error when eval expr
- Reply-to: rrh at cray dot com
>Number: 778
>Category: gdb
>Synopsis: gdb 20021001 (gdb 5.2.1+) sparc-sun-solaris2.8 bus error when eval expr
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 01 16:28:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: rrh@cray.com
>Release: GNU gdb 20021001 "sparc-sun-solaris2.8"
>Organization:
>Environment:
"sparc-sun-solaris2.8"
>Description:
Evaluating an expression in the gdb prompt that requires
invoking a virtual member function on the debugee causes the
debugger to take a bus error. I couldn't create a simple
example. The debugee was compiled using gcc 3.2.
#0 check_typedef (type=0x63617365) at gdbtypes.c:1340
1340 while (TYPE_CODE (type) == TYPE_CODE_TYPEDEF)
(note that the pointer 0x63617365 is the string 'case'!)
Here's the backtrace of the debugger at the point of its bus error
#0 check_typedef (type=0x63617365) at gdbtypes.c:1340
#1 0x0005d67c in unpack_field_as_long (type=0x49f828, valaddr=0x536f48 "",
fieldno=-24) at values.c:1050
#2 0x0005d368 in value_primitive_field (arg1=0x14f2338, offset=0, fieldno=-1,
arg_type=0xc522a0) at values.c:906
#3 0x0005d544 in value_field (arg1=0xffffffe8, fieldno=-1) at values.c:965
#4 0x00128780 in gnuv3_virtual_fn_field (value_p=0xffbedefc, f=0x13e0490,
j=0, type=0xc53a18, offset=0) at gnu-v3-abi.c:342
#5 0x000db718 in value_virtual_fn_field (arg1p=0x140a258, f=0x13e0490, j=0,
type=0xc53a18, offset=0) at cp-abi.c:79
#6 0x000663b0 in find_overload_match (arg_types=0xffbedf80, nargs=1,
name=0xffbee040 "dump", method=1, lax=20830792, objp=0xffbedfd8, fsym=0x0,
valp=0xffbedfd4, symp=0x0, staticp=0xffbedfd0) at valops.c:2962
#7 0x0005f6c8 in evaluate_subexp_standard (expect_type=0xffbedf88,
exp=0x1374c60, pos=0xffbee234, noside=EVAL_NORMAL) at eval.c:839
#8 0x0005dd50 in evaluate_subexp (expect_type=0x0, exp=0x1374c60,
pos=0xffbee234, noside=EVAL_NORMAL) at eval.c:69
#9 0x0005dee8 in evaluate_expression (exp=0x1374c60) at eval.c:158
#10 0x0006d540 in print_command_1 (exp=0x2657c6 "$1->dump()", inspect=0,
voidprint=1) at printcmd.c:926
#11 0x0006d6a0 in print_command (exp=0x2657c6 "$1->dump()", from_tty=1)
at printcmd.c:970
#12 0x0003ec48 in do_cfunc (c=0x2714b8, args=0x2657c6 "$1->dump()", from_tty=1)
---Type <return> to continue, or q <return> to quit---
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: