Re: perf-probe crash in dwarf_getcfi_elf

2015-01-03 Thread Namhyung Kim
Hi Mark, On Thu, Jan 1, 2015 at 4:42 AM, Mark Wielaard wrote: > On Tue, Dec 30, 2014 at 06:05:33PM +0900, Namhyung Kim wrote: >> And I found a related commit (5704c8c4fa71 "getcfi_scn_eh_frame: Don't >> crash and burn when .eh_frame bits aren't there.") in elfutils that >> can lead to a

Re: perf-probe crash in dwarf_getcfi_elf

2015-01-03 Thread Namhyung Kim
Hi Mark, On Thu, Jan 1, 2015 at 4:42 AM, Mark Wielaard m...@redhat.com wrote: On Tue, Dec 30, 2014 at 06:05:33PM +0900, Namhyung Kim wrote: And I found a related commit (5704c8c4fa71 getcfi_scn_eh_frame: Don't crash and burn when .eh_frame bits aren't there.) in elfutils that can lead to a

Re: perf-probe crash in dwarf_getcfi_elf

2014-12-31 Thread Mark Wielaard
On Tue, Dec 30, 2014 at 06:05:33PM +0900, Namhyung Kim wrote: > And I found a related commit (5704c8c4fa71 "getcfi_scn_eh_frame: Don't > crash and burn when .eh_frame bits aren't there.") in elfutils that > can lead to a unexpected crash like this. To safely use the function, > it needs to check

Re: perf-probe crash in dwarf_getcfi_elf

2014-12-31 Thread Mark Wielaard
On Tue, Dec 30, 2014 at 06:05:33PM +0900, Namhyung Kim wrote: And I found a related commit (5704c8c4fa71 getcfi_scn_eh_frame: Don't crash and burn when .eh_frame bits aren't there.) in elfutils that can lead to a unexpected crash like this. To safely use the function, it needs to check the

Re: Re: perf-probe crash in dwarf_getcfi_elf

2014-12-30 Thread Masami Hiramatsu
(2014/12/30 18:05), Namhyung Kim wrote: > 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

Re: perf-probe crash in dwarf_getcfi_elf

2014-12-30 Thread David Ahern
On 12/30/14 2:05 AM, Namhyung Kim wrote: From f56964e74d60a9921214d0e2e5c3d082f5a910c1 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Tue, 30 Dec 2014 17:47:47 +0900 Subject: [PATCH] perf probe: Fix a segfault on old libdw David reported that perf can segfault when adding an uprobe event

Re: perf-probe crash in dwarf_getcfi_elf

2014-12-30 Thread Namhyung Kim
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: > > > >

Re: perf-probe crash in dwarf_getcfi_elf

2014-12-30 Thread Namhyung Kim
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

Re: perf-probe crash in dwarf_getcfi_elf

2014-12-30 Thread Namhyung Kim
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:

Re: perf-probe crash in dwarf_getcfi_elf

2014-12-30 Thread Namhyung Kim
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

Re: perf-probe crash in dwarf_getcfi_elf

2014-12-30 Thread David Ahern
On 12/30/14 2:05 AM, Namhyung Kim wrote: From f56964e74d60a9921214d0e2e5c3d082f5a910c1 Mon Sep 17 00:00:00 2001 From: Namhyung Kim namhy...@kernel.org Date: Tue, 30 Dec 2014 17:47:47 +0900 Subject: [PATCH] perf probe: Fix a segfault on old libdw David reported that perf can segfault when

Re: Re: perf-probe crash in dwarf_getcfi_elf

2014-12-30 Thread Masami Hiramatsu
(2014/12/30 18:05), Namhyung Kim wrote: 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).

perf-probe crash in dwarf_getcfi_elf

2014-12-29 Thread David Ahern
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

perf-probe crash in dwarf_getcfi_elf

2014-12-29 Thread David Ahern
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