[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] dwarf_find_eh_frame_section not thread save?
From: |
Milian Wolff |
Subject: |
Re: [Libunwind-devel] dwarf_find_eh_frame_section not thread save? |
Date: |
Wed, 01 Feb 2017 18:55:03 +0100 |
On Wednesday, February 1, 2017 4:33:29 PM CET Bert Wesarg wrote:
> All,
>
> this function has a static function variable named 'sec_hdrs', which
> is used to read from a file. Hoe is this supposed to be thread safe?
>
> Link to gihub:
>
> https://github.com/libunwind/libunwind/blob/master/src/dwarf/Gfind_proc_info
> -lsb.c#L540
>From a cursory glance, it clearly isn't thread safe. Making it a non-static
stack variable should keep the performance and make it thread safe, if I'm not
mistaken.
--
Milian Wolff
address@hidden
http://milianw.de