Re: [PATCH 1/4] perf report: Fix segfault when 'sym' sort key is not used
From: Arnaldo Carvalho de Melo
Date: Wed Aug 28 2024 - 17:23:22 EST
On Mon, Aug 26, 2024 at 03:10:42PM -0700, Namhyung Kim wrote:
> The fields in the hist_entry are filled on-demand which means they only
> have meaningful values when relevant sort keys are used. So if neither
> of 'dso' nor 'sym' sort keys are used, the map/symbols in the hist entry
> can be garbage. So it shouldn't access it unconditionally.
>
> I got a segfault, when I wanted to see cgroup profiles.
Thanks, applied the series to perf-tools-next,
- Arnaldo