Re: perf-probe crash in dwarf_getcfi_elf

From: Namhyung Kim
Date: Tue Dec 30 2014 - 04:04:44 EST


On Tue, Dec 30, 2014 at 05:47:08PM +0900, Namhyung Kim wrote:
> On Mon, Dec 29, 2014 at 09:39:18PM -0700, David Ahern wrote:
> > Hi Namhyung:
> >
> > Using perf-probe from top of Linus' tree I get a segfault on both Fedora 16
> > and 18 (does not crash on Fedora 20). Command used is:
> >
> > perf probe -x /lib64/libc-2.14.90.so -a 'malloc size=%di'
> >
> > git bisect points to:
> >
> > commit 03d89412981a7681971bc77edba1669595763030
> > Author: Namhyung Kim <namhyung@xxxxxxxxxx>
> > Date: Mon Apr 7 16:05:48 2014 +0900
> >
> > perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi()
> >
>
> It seems to be related to below commit in elfutils. We might need to
> check .eh_frame section has SHT_PROGBITS. Will send a patch soon.