This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdbindex crash: Re: Regression: Re: RFC: implement typed DWARF stack


On Fri, 13 May 2011 17:43:43 +0200, Tom Tromey wrote:
> I didn't run the final version through the
> tester, neglecting that I had made a major change.
> 
> Here is the fix I am checking in.

The new testcase crashes with .gdb_index:
	print j
	ERROR: Process no longer exists
	UNRESOLVED: gdb.dwarf2/typeddwarf.exp: check value of j at typeddwarf.c:29


Thanks,
Jan


#0  0x08365f0f in follow_die_offset (offset=48, ref_cu=0xffdec0a4) at dwarf2read.c:13555
13555	  gdb_assert (cu->per_cu != NULL);
(gdb) p cu
$1 = (struct dwarf2_cu *) 0x0
(gdb) bt
#0  in follow_die_offset (offset=48, ref_cu=0xffdec0a4) at dwarf2read.c:13555
#1  in dwarf2_get_die_type (die_offset=48, per_cu=0xb566398) at dwarf2read.c:13680
#2  in dwarf_expr_get_base_type (ctx=0xb811838, die_offset=48) at dwarf2loc.c:296
#3  in dwarf_get_base_type (ctx=0xb811838, die=48, size=0) at dwarf2expr.c:449
#4  in execute_stack_op (ctx=0xb811838, op_ptr=0xb5675a2 "\367)\237\006l", op_end=0xb5675a5 "\006l") at dwarf2expr.c:850
#5  in dwarf_expr_eval (ctx=0xb811838, addr=0xb56759d "\221\030\366\004\060\367)\237\006l", len=8) at dwarf2expr.c:343
#6  in dwarf2_evaluate_loc_desc_full (type=0xb567e84, frame=0xb56646c, data=0xb56759d "\221\030\366\004\060\367)\237\006l", size=8, per_cu=0xb566398, 
#7  in dwarf2_evaluate_loc_desc (type=0xb567e84, frame=0xb56646c, data=0xb56759d "\221\030\366\004\060\367)\237\006l", size=8, per_cu=0xb566398)
#8  in locexpr_read_variable (symbol=0xb569f1c, frame=0xb56646c) at dwarf2loc.c:2163
#9  in read_var_value (var=0xb569f1c, frame=0xb56646c) at findvar.c:555
#10 in value_of_variable (var=0xb569f1c, b=0x0) at valops.c:1510
#11 in evaluate_subexp_standard (expect_type=0x0, exp=0xb54ed08, pos=0xffdec7dc, noside=EVAL_NORMAL) at eval.c:847
#12 in evaluate_subexp_c (expect_type=0x0, exp=0xb54ed08, pos=0xffdec7dc, noside=EVAL_NORMAL) at c-lang.c:1076
#13 in evaluate_subexp (expect_type=0x0, exp=0xb54ed08, pos=0xffdec7dc, noside=EVAL_NORMAL) at eval.c:76
#14 in evaluate_expression (exp=0xb54ed08) at eval.c:151
#15 in print_command_1 (exp=0xb2f624e "j", inspect=0, voidprint=1) at ./printcmd.c:973
#16 in print_command (exp=0xb2f624e "j", from_tty=1) at ./printcmd.c:1021


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]