[BUG] perf report: segfault with --no-group in pipe mode

From: Stephane Eranian
Date: Fri Aug 02 2019 - 12:39:03 EST


Hi,

When trying the following command line with perf from tip,git, I got:

$ perf record --group -c 100000 -e '{branch-misses,branches}' -a -o -
sleep 1| perf report --no-group -F sample,cpu,period -i -
# To display the perf.data header info, please use
--header/--header-only options.
#
Segmentation fault (core dumped)

(gdb) r report --no-group -F sample,cpu,period -i - < tt
Starting program: /export/hda3/perftest/perf.tip report --no-group -F
sample,cpu,period -i - < tt
# To display the perf.data header info, please use
--header/--header-only options.
#

Program received signal SIGSEGV, Segmentation fault.
hlist_add_head (h=0xeb9ed8, n=0xebdfd0) at
/usr/local/google/home/eranian/G/bnw.tip/tools/include/linux/list.h:644
644 /usr/local/google/home/eranian/G/bnw.tip/tools/include/linux/list.h:
No such file or directory.
(gdb)

Can you reproduce this?
Thanks.