From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5644 invoked by alias); 15 May 2011 08:26:26 -0000 Received: (qmail 5610 invoked by uid 22791); 15 May 2011 08:26:25 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 May 2011 08:26:07 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4F8Q5kv002287 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 15 May 2011 04:26:05 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4F8Q2er016776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 May 2011 04:26:04 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p4F8Q2iU030153; Sun, 15 May 2011 10:26:02 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p4F8Q1rE030148; Sun, 15 May 2011 10:26:01 +0200 Date: Sun, 15 May 2011 08:26:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: Ulrich Weigand , gdb-patches@sourceware.org Subject: gdbindex crash: Re: Regression: Re: RFC: implement typed DWARF stack Message-ID: <20110515082601.GA30005@host1.jankratochvil.net> References: <201105120003.p4C03V9u022585@d06av02.portsmouth.uk.ibm.com> <20110513075220.GA7000@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00347.txt.bz2 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