mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: dlopen deadlock
Date: Wed, 23 Mar 2016 11:55:36 +0100	[thread overview]
Message-ID: <20160323105536.GG9862@port70.net> (raw)
In-Reply-To: <20160115003148.GH13558@port70.net>

* Szabolcs Nagy <nsz@port70.net> [2016-01-15 01:31:49 +0100]:
> * Rich Felker <dalias@libc.org> [2016-01-14 17:41:15 -0500]:
> > On Wed, Jan 13, 2016 at 12:09:37PM +0100, Szabolcs Nagy wrote:
> > > This bug i reported against glibc also affects musl:
> > > https://sourceware.org/bugzilla/show_bug.cgi?id=19448
> > > 
> > > in case of musl it's not the global load lock, but the
> > > init_fini_lock that causes the problem.
> > 
> > The deadlock happens when a ctor makes a thread that calls dlopen and
> > does not return until the new thread's dlopen returns, right?
> > 
> 
> yes
> (not a common scenario)

more general deadlock case:
ctor waits for another thread that is in dlopen waiting
for the init_fini_lock.

this actually happened on glibc, but through interposed
malloc instead of a ctor
https://sourceware.org/ml/libc-alpha/2016-03/msg00594.html


      parent reply	other threads:[~2016-03-23 10:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-13 11:09 Szabolcs Nagy
2016-01-14 22:41 ` Rich Felker
2016-01-15  0:31   ` Szabolcs Nagy
2016-01-15  2:47     ` Rich Felker
2016-01-15  4:59       ` Rich Felker
2016-01-15 10:58       ` Szabolcs Nagy
2016-01-15 19:16         ` Rich Felker
2016-03-23 10:55     ` Szabolcs Nagy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160323105536.GG9862@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).