From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31464 invoked by alias); 23 Feb 2009 16:57:35 -0000 Received: (qmail 31431 invoked by uid 48); 23 Feb 2009 16:57:23 -0000 Date: Mon, 23 Feb 2009 20:03:00 -0000 Message-ID: <20090223165723.31430.qmail@sourceware.org> From: "mjw at redhat dot com" To: systemtap@sources.redhat.com In-Reply-To: <20090223163041.9883.tralamazza@gmail.com> References: <20090223163041.9883.tralamazza@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/9883] static markers in userspace libraries segfaults X-Bugzilla-Reason: AssignedTo 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: 2009-q1/txt/msg00503.txt.bz2 ------- Additional Comments From mjw at redhat dot com 2009-02-23 16:57 ------- Seems, we forget to check whether the die has any children to begin with in tapsets.cxx (iterate_over_cu_labels) Testing following fix: diff --git a/tapsets.cxx b/tapsets.cxx index 78d5a5b..5d9d062 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1330,7 +1330,10 @@ struct dwflpp const char * sym = label_val.c_str(); Dwarf_Die die; - dwarf_child (cu, &die); + int res = dwarf_child (cu, &die); + if (res != 0) + return; // die without children, bail out. + static string function_name; do { -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|systemtap at sources dot |mjw at redhat dot com |redhat dot com | Status|NEW |ASSIGNED http://sourceware.org/bugzilla/show_bug.cgi?id=9883 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.