From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E59DEC54E4A for ; Tue, 12 May 2020 14:58:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BBAC8206D3 for ; Tue, 12 May 2020 14:58:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730462AbgELO6N (ORCPT ); Tue, 12 May 2020 10:58:13 -0400 Received: from mga05.intel.com ([192.55.52.43]:29779 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727912AbgELO6N (ORCPT ); Tue, 12 May 2020 10:58:13 -0400 IronPort-SDR: Y41I0xLE8wmnmHL3BtnM24PMCzt0s8mePGGrN29wLy5lQsTnY+n5RewmWQq7GDwQttyFv7vISK +yLURmfvugPg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2020 07:58:12 -0700 IronPort-SDR: HEQpGG6V3WEjupYQZXv0To3iANPRzMPV3ldqpz6cyh8MtoTvjF/PVbVrXbgNXSIZc2cUEr3WBC yBTLTKfUsAUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,384,1583222400"; d="scan'208";a="262145585" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.157]) ([10.237.72.157]) by orsmga003.jf.intel.com with ESMTP; 12 May 2020 07:58:10 -0700 Subject: Re: perf seg fault From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , LKML References: <0cad7834-07b4-ec2f-13b5-d6a10b21ce48@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <0517775a-3e0f-f900-4687-069d115077bd@intel.com> Date: Tue, 12 May 2020 17:58:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <0cad7834-07b4-ec2f-13b5-d6a10b21ce48@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Forgot to cc mailing list On 12/05/20 5:50 pm, Adrian Hunter wrote: > Hi > > I am getting a seg fault from your perf/core branch, as follows: > > # perf record uname > Linux > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.005 MB perf.data (7 samples) ] > perf: Segmentation fault > Obtained 6 stack frames. > [0x4e75b4] > [0x5d1ad0] > [0x5c9860] > [0x4a6e5c] > [0x5cb39b] > [0x76c89f] > Segmentation fault > > It goes away with --no-bpf-event: > > # perf record --no-bpf-event uname > Linux > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.005 MB perf.data (7 samples) ] > # > > kernel is from the same branch > > # uname -a > Linux buildroot 5.7.0-rc2-00028-g0fdddf5a583a #165 SMP Tue May 12 16:27:53 > EEST 2020 x86_64 GNU/Linux > > # perf version --build-options > perf version 5.6.g0fdddf5a583a > dwarf: [ OFF ] # HAVE_DWARF_SUPPORT > dwarf_getlocations: [ OFF ] # HAVE_DWARF_GETLOCATIONS_SUPPORT > glibc: [ on ] # HAVE_GLIBC_SUPPORT > gtk2: [ OFF ] # HAVE_GTK2_SUPPORT > syscall_table: [ on ] # HAVE_SYSCALL_TABLE_SUPPORT > libbfd: [ on ] # HAVE_LIBBFD_SUPPORT > libelf: [ on ] # HAVE_LIBELF_SUPPORT > libnuma: [ OFF ] # HAVE_LIBNUMA_SUPPORT > numa_num_possible_cpus: [ OFF ] # HAVE_LIBNUMA_SUPPORT > libperl: [ OFF ] # HAVE_LIBPERL_SUPPORT > libpython: [ OFF ] # HAVE_LIBPYTHON_SUPPORT > libslang: [ on ] # HAVE_SLANG_SUPPORT > libcrypto: [ on ] # HAVE_LIBCRYPTO_SUPPORT > libunwind: [ OFF ] # HAVE_LIBUNWIND_SUPPORT > libdw-dwarf-unwind: [ OFF ] # HAVE_DWARF_SUPPORT > zlib: [ OFF ] # HAVE_ZLIB_SUPPORT > lzma: [ OFF ] # HAVE_LZMA_SUPPORT > get_cpuid: [ on ] # HAVE_AUXTRACE_SUPPORT > bpf: [ OFF ] # HAVE_LIBBPF_SUPPORT > aio: [ on ] # HAVE_AIO_SUPPORT > zstd: [ OFF ] # HAVE_ZSTD_SUPPORT > > > Any thoughts? > > Regards > Adrian > >