Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp880959imm; Wed, 10 Oct 2018 05:55:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV61zn4Re4Yhf5RWbfD0YGuPADcAMnywk7OBBKP/6XEMZBMOf2WvxBg2zLJd0xLfEG4E7GLRd X-Received: by 2002:a62:4301:: with SMTP id q1-v6mr33267134pfa.163.1539176103125; Wed, 10 Oct 2018 05:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539176103; cv=none; d=google.com; s=arc-20160816; b=Og2D0qRNo6eBwISDTDIY0KzxiBQrVAIFyzl19eQW3/ZblGOEaxUTH49Dg83K9lPX8f kw9dtgPZ7yfohT08UKzUa9mHd2aWRJWHZ49SpjzV01nNQrtG2qAVyH+6x5B/wrx0d+SC iMr2HmaHC51G7Li5nfFWB2flyz7xhB83C7pkv0JnrwRo8UTzcAA+S6G8rj4hNvwy+QB6 up2XTUS/lO2mKz9y0SFTWm3IsA4SIY1U0DQZdfERxEHBIo6mkw3ClYH5MByAOtruADVu dyXe78UeumZNCF8Uv7yIXuuMOJCG0SoDR3h5fyOgyZeISvBvVF1hhnDmUFQ8ZPOb1GW2 22ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oUOM2z2JYmfftV8wqXRcCwqZJaIk1NIsbqC9ffBTtlY=; b=0F2Ezx5uF2E/rzBwqWiyV7Epyt6SjC6YCzUVKhm1c8XXohAsoR6Y5DzKThKBPP9UDe 6k4RJx0PfevcPIHqTEDYX6ZZj55h5fIU4nSRPeFwBOPNmpNMjKJpJjG9DA71TaKVo+pB rIbfk52cPm/mlrO9Hxa3IoS0fjgaiixytY9ZW3cIJrMB75yfQLKBliolHCj1vLEFMkpL f7iX56hCnQ6RWREkAkP5Zcziy30G6C+vJi3N5xmNxxtey4r4I/50hrp2mPR7JJd3WuAe pgCxaYKieRjkZWQ0mwYR1jsw5MfoVKXnda/qFFoH7+v4dCSoWhQH68rYXWAf6gK68hAa TmMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EGMBl+US; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8-v6si23995865pgj.352.2018.10.10.05.54.47; Wed, 10 Oct 2018 05:55:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EGMBl+US; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726771AbeJJUQW (ORCPT + 99 others); Wed, 10 Oct 2018 16:16:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:40644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbeJJUQV (ORCPT ); Wed, 10 Oct 2018 16:16:21 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2BB3220870; Wed, 10 Oct 2018 12:54:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539176058; bh=o96/5jiP/BKu9E3KyAAWWGjtpyi4QHKfj/60dZgy6M4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EGMBl+US7jImTMox3Wgxz4DzkufLTkgo/83MZkouiJTa9mHoajR72EM5Y07smqJ/0 BjP1gD0FZjFrLAGiSPVflEhi1wz8E5flaX3G4o4pUm+rf+5CFESoUILJealuqREfIh amXAmeBU/zY8rhs4CYBxHHGjm9vyEp13wmaLb3f8= Received: by jouet.infradead.org (Postfix, from userid 1000) id B8524142C5E; Wed, 10 Oct 2018 09:54:15 -0300 (-03) Date: Wed, 10 Oct 2018 09:54:15 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Anthony LaTorre , andipan Das , peterz@infradead.org, mingo@redhat.com, jolsa@kernel.org, alexander.shishkin@linux.intel.com, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: Re: perf report segfault Message-ID: <20181010125415.GG10775@kernel.org> References: <20181009164743.GA22886@krava> <20181009214158.GB31206@krava> <20181009222004.GA19295@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181009222004.GA19295@krava> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Oct 10, 2018 at 12:20:04AM +0200, Jiri Olsa escreveu: > On Tue, Oct 09, 2018 at 04:47:31PM -0500, Anthony LaTorre wrote: > > I can try building perf from the latest sources. I've attached the > > perf.data and perf.data.tar.bz2 from the test program I sent earlier. > > cool, reproduced.. it seems to get introduced by: > 2a9d5050dc84 perf script: Show correct offsets for DWARF-based unwinding > > reverting that patch fixes the issue for me, but looks like > we could just make th attached check and prevent the crash > > adding Sandipan Das to the loop, the author of that commit, any idea? commit ff4ce2885af8f9e8e99864d78dbeb4673f089c76 Author: Milian Wolff Date: Wed Sep 26 15:52:05 2018 +0200 perf report: Don't try to map ip to invalid map Fixes a crash when the report encounters an address that could not be associated with an mmaped region: #0 0x00005555557bdc4a in callchain_srcline (ip=, sym=0x0, map=0x0) at util/machine.c:2329 #1 unwind_entry (entry=entry@entry=0x7fffffff9180, arg=arg@entry=0x7ffff5642498) at util/machine.c:2329 #2 0x00005555558370af in entry (arg=0x7ffff5642498, cb=0x5555557bdb50 , thread=, ip=18446744073709551615) at util/unwind-libunwind-local.c:586 #3 get_entries (ui=ui@entry=0x7fffffff9620, cb=0x5555557bdb50 , arg=0x7ffff5642498, max_stack=) at util/unwind-libunwind-local.c:703 #4 0x0000555555837192 in _unwind__get_entries (cb=, arg=, thread=, data=, max_stack=) at util/unwind-libunwind- local.c:725 #5 0x00005555557c310f in thread__resolve_callchain_unwind (max_stack=127, sample=0x7fffffff9830, evsel=0x555555c7b3b0, cursor=0x7ffff5642498, thread=0x555555c7f6f0) at util/machine.c:235 1 #6 thread__resolve_callchain (thread=0x555555c7f6f0, cursor=0x7ffff5642498, evsel=0x555555c7b3b0, sample=0x7fffffff9830, parent=0x7fffffff97b8, root_al=0x7fffffff9750, max_stack=127) at util/machine.c:2378 #7 0x00005555557ba4ee in sample__resolve_callchain (sample=, cursor=, parent=parent@entry=0x7fffffff97b8, evsel=, al=al@entry=0x7fffffff9750, max_stack=) at util/callchain.c:1085 Signed-off-by: Milian Wolff Tested-by: Sandipan Das Acked-by: Jiri Olsa Cc: Jin Yao Cc: Namhyung Kim Fixes: 2a9d5050dc84 ("perf script: Show correct offsets for DWARF-based unwinding") Link: http://lkml.kernel.org/r/20180926135207.30263-1-milian.wolff@kdab.com Signed-off-by: Arnaldo Carvalho de Melo