Re: perf report segfault

From: Anthony LaTorre
Date: Tue Oct 09 2018 - 18:20:03 EST


Ok, I tried it with the version compiled from the latest sources and I
don't get the segfault, so it must be an issue with the version
distributed with Fedora 27.

Tony
On Tue, Oct 9, 2018 at 4:47 PM Anthony LaTorre <tlatorre9@xxxxxxxxx> wrote:
>
> I can try building perf from the latest sources. I've attached the
> perf.data and perf.data.tar.bz2 from the test program I sent earlier.
> On Tue, Oct 9, 2018 at 4:42 PM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
> >
> > On Tue, Oct 09, 2018 at 03:18:12PM -0500, Anthony LaTorre wrote:
> > > Ok, I can reliably reproduce it by profiling the following program:
> > >
> > > #include <math.h>
> > >
> > > int main(int argc, char **argv)
> > > {
> > > int i;
> > > double sum;
> > >
> > > while (1) {
> > > sum += exp(++i);
> > > }
> > >
> > > return 0;
> > > }
> > >
> > > compiled with:
> > >
> > > $ cc -o test test.c -lm
> > >
> > > with the following command:
> > >
> > > $ perf record -F 99 -p 20016 --call-graph dwarf sleep 10
> >
> > still nothing.. any chance you could try on latest perf sources?
> >
> > $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git
> > $ cd linux
> > $ git checkout -b perf/core origin/perf/core
> > $ cd tools/perf
> > $ make
> > $ ./perf ...
> >
> > you might need some packages mentioned in (search for 'yum install'):
> > https://perf.wiki.kernel.org/index.php/Jolsa_Howto_Install_Sources
> >
> > it's little outdated, but the packages lists will do
> >
> > thanks,
> > jirka