From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20355 invoked by alias); 2 May 2012 14:06:28 -0000 Received: (qmail 20343 invoked by uid 22791); 2 May 2012 14:06:26 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_MJ X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 May 2012 14:06:14 +0000 From: "mjw at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/14026] print_ubacktrace doesn't resolve the symbol name Date: Wed, 02 May 2012 14:06:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mjw at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00095.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14026 --- Comment #7 from Mark Wielaard 2012-05-02 14:05:25 UTC --- (In reply to comment #6) > The patch below made it work for me: > > > diff --git a/runtime/unwind.c b/runtime/unwind.c > index e440177..3ac7f8d 100644 > --- a/runtime/unwind.c > +++ b/runtime/unwind.c > @@ -610,7 +610,7 @@ static int processCFI(const u8 *start, const u8 *end, > unsigned long targetLoc, > break; > } > dbug_unwind(1, "targetLoc=%lx state->loc=%lx\n", targetLoc, > state->loc); > - if (ptr.p8 > end) > + if (ptr.p8 >= end) > result = 0; > if (result && targetLoc != 0 && targetLoc < state->loc) > return 1; I am not sure that is correct. In principle ptr being equal to end should be fine (see also the last return condition in ProcessCFI). It means we read everything, the last instruction and arguments (and nothing more). If you hit this case then processCFI () will fail, which will make unwind_frame () also fail. So I am somewhat surprised this seems to work for you. Do you have debug output for before/after this patch? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.