lkml.org 
[lkml]   [2015]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf: unwind: fix segbase for libunwind.

* Wang Nan <wangnan0@huawei.com> wrote:

> Perf passes incorrect segbase and table_data to libunwind when
> map->pgoff != 0, causes unwind failure. This patch fixes this
> problem.
>
> segbase is an absolute offset from the head of object file, directly
> read from ELF file. Original code computes corresponding virtual
> address using map->start + segbase, doesn't consider map->pgoff.
> Which causes libunwind read from incorrect offset.

What's the effect of this bug in practice?

Is there any before/after output you can show that demonstrates the
fix?

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-04-01 17:21    [W:0.063 / U:1.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site