On Thu, Feb 28, 2013 at 10:10 AM, Paul Pluzhnikov <ppluzhni...@google.com> wrote: > On Thu, Feb 28, 2013 at 9:28 AM, Ian Lance Taylor <i...@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