Messages in this thread | | | Date | Fri, 20 Mar 2015 12:48:35 -0300 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH] perf annotate: Fix the segmentation fault bug of perf annotate |
| |
Em Fri, Mar 20, 2015 at 09:52:14PM +0800, Yunlong Song escreveu: > There is a segmentation fault bug in 'perf annotate' using the perf.data > created by 'perf record -g', so fix it.
<SNIP>
> +++ b/tools/perf/util/annotate.c > @@ -30,6 +30,9 @@ static int disasm_line__parse(char *line, char **namep, char **rawp); > > static void ins__delete(struct ins_operands *ops) > { > + if (ops == NULL) > + return; > +
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/tools/perf/util/annotate.c#n31
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/tools/perf?id=3995614d9b0320e10ce202836c8477e1bcf1a2d4
I.e. already upstream, it just needs to be merged with perf/core, either Ingo or myself will do that soon,
- Arnaldo
| |