Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1207962ybh; Sat, 3 Aug 2019 20:38:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTRu9LjtJ+uy5l+qXLxpu2wV6clcQG5HzTSfRFBhUFpuTnHA5SnIvpSxFeO8i4sYsu95mo X-Received: by 2002:a17:902:934a:: with SMTP id g10mr140952064plp.18.1564889903054; Sat, 03 Aug 2019 20:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564889903; cv=none; d=google.com; s=arc-20160816; b=gIsjCYR5HF/Pc4TuK4oAVvbahnYsLeGvWBoxWeJ/+kqfro50WA3H/0naIFzMVi9BjA 7li8lptAmX1tVCmTLZJs/My7+ep1MMN3UHiyHRVydRP1XQvwQ9mO3NhoA4AkZDzEC48q csQRgC3udsfT1jiRUhjWV/xIUeFyq/g1USG6yE8XU3J8hK1iB2HSFXW1yL1HxepyEbYl sg8piaklPFiInppNtlHPLL01PygE9OcxrCT41peT6tPvHfHaG1fnaAqK4NDzmDf1f+Xf b6ZkjakIdKAgdNVa0qbY2KPJahkbJvKY5NmWtHaFudJIdF7FIGI3qohoWh/PJEYehW+b 2CSw== 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; bh=GRYeuPQMZdAdCZtZEW4VN3VKRNaj+ljPPv9zSDTI8WY=; b=mxx7HnysZLEWa7BAljg+ypKjet5TLOxcezxxycefk3m9Uv8qz1kyAUgD7pBvOoEni0 fxGbAzbhgSQkBJiXPAl6M9+JUlXqMQLdQqifjwuA/2YgXz8NMmuJe6ranmvunMfX2EWg lljqvdF+VDQxGj2WLIXoRBM42XUUzhZlLPI0Kx1uanL0sQR00qPi/JrAsy8Tb+gESL2x RrnRAr0nLkSagvOs4Re86FkYJJlOlRbZB1TDVQ+EbvNjv3IYXI2cv2Alr62ZEBDjwmc6 omx5+RIx2JN4pEE3Y2Yc4gEQ7taxLTrQIKJ0qfGEzOZmswQQzLnkHk++wp9Yu+q0CEWx v2YQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si36969280plk.428.2019.08.03.20.38.08; Sat, 03 Aug 2019 20:38:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387747AbfHCIpX (ORCPT + 99 others); Sat, 3 Aug 2019 04:45:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59030 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387692AbfHCIpX (ORCPT ); Sat, 3 Aug 2019 04:45:23 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EA437308C38B; Sat, 3 Aug 2019 08:45:22 +0000 (UTC) Received: from krava (ovpn-204-59.brq.redhat.com [10.40.204.59]) by smtp.corp.redhat.com (Postfix) with SMTP id DFB4D60922; Sat, 3 Aug 2019 08:45:21 +0000 (UTC) Date: Sat, 3 Aug 2019 10:45:20 +0200 From: Jiri Olsa To: Stephane Eranian Cc: LKML , Arnaldo Carvalho de Melo Subject: Re: [BUG] perf report: segfault with --no-group in pipe mode Message-ID: <20190803084520.GA1008@krava> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Sat, 03 Aug 2019 08:45:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 02, 2019 at 09:38:49AM -0700, Stephane Eranian wrote: > Hi, > > When trying the following command line with perf from tip,git, I got: > > $ perf record --group -c 100000 -e '{branch-misses,branches}' -a -o - > sleep 1| perf report --no-group -F sample,cpu,period -i - > # To display the perf.data header info, please use > --header/--header-only options. > # > Segmentation fault (core dumped) > > (gdb) r report --no-group -F sample,cpu,period -i - < tt > Starting program: /export/hda3/perftest/perf.tip report --no-group -F > sample,cpu,period -i - < tt > # To display the perf.data header info, please use > --header/--header-only options. > # > > Program received signal SIGSEGV, Segmentation fault. > hlist_add_head (h=0xeb9ed8, n=0xebdfd0) at > /usr/local/google/home/eranian/G/bnw.tip/tools/include/linux/list.h:644 > 644 /usr/local/google/home/eranian/G/bnw.tip/tools/include/linux/list.h: > No such file or directory. > (gdb) > > Can you reproduce this? hi, looks like it's you might be hitting this one: 79b2fe5e7561 perf tools: Fix proper buffer size for feature processing please try Arnaldo's perf/urgent, it's in there jirka