From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] baddr feature triggers deadlock in lttng-ust
Date: Fri, 28 Feb 2014 14:05:10 +0000 (UTC) [thread overview]
Message-ID: <373036003.32115.1393596310716.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <5310835F.10909@mentor.com>
----- Original Message -----
> From: "Paul Woegerer" <Paul_Woegerer@mentor.com>
> To: "Mathieu Desnoyers" <mathieu.desnoyers at efficios.com>, lttng-dev at lists.lttng.org, "CS ESD-Analyzer"
> <esd-analyzer at mentor.com>
> Sent: Friday, February 28, 2014 7:38:55 AM
> Subject: Re: baddr feature triggers deadlock in lttng-ust
>
> I have looked a bit into the issue...
>
> The ust_locking inside the dl_iterate_phdr triggers the deadlock.
>
> If I just collect the base address info inside dl_iterate_phdr and dump
> the collected data with trace_baddr afterwards (outside the
> dl_iterate_phdr iteration) the deadlock will be prevented.
>
> I'm now going to create a patch that implements this approach.
I suspect that having the UST lock nested inside the dynamic loader lock
only makes the problem happen more consistently, but that the basic issue
is that the dynamic loader lock should not be held while another thread
concurrently calls fork/clone/daemon. It seems to leave the child process
in a state where the lock state is stale (taken).
Thanks,
Mathieu
>
> Thanks,
> Paul
>
> On 02/27/2014 10:30 PM, Mathieu Desnoyers wrote:
> > Hi Paul,
> >
> > Please see http://bugs.lttng.org/issues/745, which explains a deadlock
> > we just found out.
> >
> > We might have to disable the baddr dump feature, since our release is
> > tomorrow. We'll have to re-think our locking to protect operations
> > using the dynamic loader lock against fork, clone, and daemon.
> >
> > Thanks,
> >
> > Mathieu
> >
>
>
> --
> Paul Woegerer, SW Development Engineer
> Sourcery Analyzer <http://go.mentor.com/sourceryanalyzer>
> Mentor Graphics, Embedded Software Division
>
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
prev parent reply other threads:[~2014-02-28 14:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1640835527.31912.1393536374130.JavaMail.zimbra@efficios.com>
2014-02-27 21:30 ` Mathieu Desnoyers
2014-02-27 23:37 ` Alexandre Montplaisir
2014-02-28 0:07 ` Mathieu Desnoyers
2014-02-28 9:33 ` Woegerer, Paul
2014-02-28 12:38 ` Woegerer, Paul
2014-02-28 14:05 ` Mathieu Desnoyers [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=373036003.32115.1393596310716.JavaMail.zimbra@efficios.com \
--to=mathieu.desnoyers@efficios.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox