Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp470169ybb; Fri, 3 Apr 2020 06:18:29 -0700 (PDT) X-Google-Smtp-Source: APiQypLQ0w/LpppRijRGBAhcOlG4XoGnXr22bQ3b/OQ1FfWl847dP7V6+wg7s2GOEhp8M/eQ8aUy X-Received: by 2002:a9d:64cd:: with SMTP id n13mr6325536otl.274.1585919909707; Fri, 03 Apr 2020 06:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585919909; cv=none; d=google.com; s=arc-20160816; b=VDJHSQm4zDWRbMJKeAj4EXkf85GkBQLuZgNGsTZU0nXRv60ibLTKY8pFA1U5zke2WV IjDQmTrdBKR+FCM05G6duY+GJyHAGItmKMqUzIydRhmorY8d3mFRBA24AZ2/GgpojGTP /z4ULwTSzQaLDQru7WyCFGywD3ITASgSVdDYRpCALqWjLf6myi3dhmWgwTGCLDBhBiTZ nRL0gir8JxekgZ+rZuHRa+CJJTle6Fcd/PrgVKTB70zYj3FsoaY0iEEUWHgBisPbvnp/ yRTFrpmP5Th+4sGI0qAhcjfgTkw+a9XeFoPs5QeTOK9fZjAsPcd6i5iUVicOcT+Lt1og GkEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=izOkr1BSQDJulAYByg5NgaMKcJ6WHmg0z2BChcgtZ1o=; b=TyzxwRnySgjALW6KB3lmM8bCLbOhWJa/E3R7zgEAxmsumfI+8CASGiB95jtZa9Omyi hHzwHgfLK6imiGPsmL0Cl2aQtAl5QVLaZddneohYk+KCeuop077lWRxV5HVfAwxLnXJv iaOjHR/OKf9szBALGKAaCcNHJyGrL7PeXGSc2tZrwQEUVu2m7aTqteNg/r0/nw2Zdp5m i/h6BwDpksdkO2sy+4b3ihYB1L9OPZ1ohWKoVal2psapPmTQyRJhX0cMWYighF2LI5kg oYNuNAAP1gj590s1TWuOkm5oV27/MURuJLGR+89zCOF5ak6YOVMGBiLB05htErSVDzcQ MgjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IvhLgMBr; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si3642331oig.147.2020.04.03.06.18.12; Fri, 03 Apr 2020 06:18:29 -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=@redhat.com header.s=mimecast20190719 header.b=IvhLgMBr; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403859AbgDCNQ4 (ORCPT + 99 others); Fri, 3 Apr 2020 09:16:56 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:26806 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390852AbgDCNQz (ORCPT ); Fri, 3 Apr 2020 09:16:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585919813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=izOkr1BSQDJulAYByg5NgaMKcJ6WHmg0z2BChcgtZ1o=; b=IvhLgMBrLjQopJ1l6WCp7lH5HfLvXxtPWXEYqyHHTHh5mlg1ZQVYpJc4XI5k95Wa6Bg3nl J35b4tG0xpQgM4fflfQgbXKrRmKwWVEITeq2nY+I/G28GUSj6TMDpPou5z0S3v1ijm7Xyh IDMI5mgyZFvmpbXiEpRorJF4EAV5WBs= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-255-86jLnN6fPgepMkzE4Mu15A-1; Fri, 03 Apr 2020 09:16:52 -0400 X-MC-Unique: 86jLnN6fPgepMkzE4Mu15A-1 Received: by mail-wm1-f70.google.com with SMTP id s22so2024877wmh.8 for ; Fri, 03 Apr 2020 06:16:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=izOkr1BSQDJulAYByg5NgaMKcJ6WHmg0z2BChcgtZ1o=; b=T+a2b0y0q7xg7L4C9j394CqrpKgQpQfTUBfWYHxUENjxpCD9PGgfTlZIwYHxeB9Bqv yUSSXaD4gvlzDmETN/KQ3SCFz2g0+t3/pTC+qFvaLduLdzQDII74RmAvw2HhCiY7JEsI aQaXCXAT1qzRuwGKKuh83b3uoh1rcCMtG5yFxU6eoM9fdl6FIbbuk+WtuaOipuM3TRWd eEvuxoRn8ViQMNV9jIM0fTNTNvmNeIrxA/ygVbD9wIQw3wEBBIV8BQfMysjmC46VKlV7 2PLYmwCJxkzLBRNImcMmUSIk4U2mQCPRJjgLykpOuMJbagVdbooiELjhGc3kO1EhxJyp fM9A== X-Gm-Message-State: AGi0Pubh/lpV5IAqWtB/8C4Kx29IFV5kiAIHUXwCkYLkzyLF9OBZWp65 mQcP8AwAHDUqbCLfr/HXV1FxBagfDoKBGdQvcxhgUarmNVdhirYVyb0lOSUykivLAv6vywKCe/j F8na0bxU2gwYJnQ4AbQlgvuas X-Received: by 2002:adf:fe4b:: with SMTP id m11mr8924891wrs.20.1585919811103; Fri, 03 Apr 2020 06:16:51 -0700 (PDT) X-Received: by 2002:adf:fe4b:: with SMTP id m11mr8924870wrs.20.1585919810807; Fri, 03 Apr 2020 06:16:50 -0700 (PDT) Received: from ?IPv6:2a02:8388:7c1:1280:a281:9dab:554b:2fdc? (2a02-8388-07c1-1280-a281-9dab-554b-2fdc.cable.dynamic.v6.surfer.at. [2a02:8388:7c1:1280:a281:9dab:554b:2fdc]) by smtp.gmail.com with ESMTPSA id b5sm1812721wrs.16.2020.04.03.06.16.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Apr 2020 06:16:49 -0700 (PDT) Subject: Re: [PATCH] perf script report: fix segfault when using DWARF mode To: Arnaldo Carvalho de Melo , Kim Phillips Cc: linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , "Steven Rostedt (VMware)" , Kan Liang , linux-kernel@vger.kernel.org References: <05e0d633-54b4-fb3b-3d08-8963271017ea@amd.com> <20200402125417.422232-1-agerstmayr@redhat.com> <6a098ce1-1981-dcff-ea62-af5fc07ec7fb@amd.com> <20200403124028.GA18559@kernel.org> From: Andreas Gerstmayr Message-ID: Date: Fri, 3 Apr 2020 15:16:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200403124028.GA18559@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed 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 On 03.04.20 14:40, Arnaldo Carvalho de Melo wrote: > Em Thu, Apr 02, 2020 at 02:07:51PM -0500, Kim Phillips escreveu: >> On 4/2/20 7:54 AM, Andreas Gerstmayr wrote: >>> When running perf script report with a Python script and a callgraph in >>> DWARF mode, intr_regs->regs can be 0 and therefore crashing the regs_map >>> function. >>> >>> Added a check for this condition (same check as in builtin-script.c:595). >>> >>> Signed-off-by: Andreas Gerstmayr >>> --- >> >> Tested-by: Kim Phillips > > Thanks, added this to that patch. > Great, thanks! Cheers, Andreas