Re: [PATCH v2 02/10] perf, tools, stat: Avoid memory overrun with -r

From: Arnaldo Carvalho de Melo
Date: Tue Mar 19 2019 - 15:33:54 EST


Em Tue, Mar 19, 2019 at 12:20:23PM -0700, Andi Kleen escreveu:
> > mmap size 8192B
> > perf: util/evlist.c:533: perf_evlist__id_add: Assertion `evsel->ids < evsel->sample_id->max_x * evsel->sample_id->max_y' failed.
>
> I suspect this is a latent bug just caught by my assert.
>
> So it was already broken.
>
> You could of course remove the assert, but it would merely
> hide it.

I'm removing it just for the moment, I'll definetely revisit this.

- Arnaldo