[google gcc-4_7, integration] Build more of libstdc++ with frame pointers

Ian Lance Taylor iant@google.com
Thu Feb 28 18:36:00 GMT 2013


On Thu, Feb 28, 2013 at 10:10 AM, Paul Pluzhnikov
<ppluzhnikov@google.com> wrote:
> On Thu, Feb 28, 2013 at 9:28 AM, Ian Lance Taylor <iant@google.com> wrote:
>
>>> does call dl_iterate_phdr, which is just as deadly.
>>
>> Hmmm, I guess I can't remember why.
>
> Let me refresh your memory. You've seen this deadlock before:
>
>   Thread 1                    Thread 2
>   dlopen                      malloc
>    ... takes loader lock       ... takes malloc lock
>    malloc                      _Unwind_Backtrace
>    ... needs malloc lock         dl_iterate_phdr
>        held by T2                ... needs loader lock held by T1

Oh yeah.  Thanks.

Ian



More information about the Gcc-patches mailing list