public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: "Vivek Das Mohapatra" <vivek@collabora.com>
Cc: libc-help@sourceware.org
Subject: Re: A possible libc/dlmopen/pthreads bug
Date: Wed, 24 Jan 2018 18:27:00 -0000	[thread overview]
Message-ID: <3a0be147-157e-7c78-b35e-556e893f36cb@linaro.org> (raw)
In-Reply-To: <alpine.DEB.2.20.1801241742170.22921@noise.cbg.collabora.co.uk>



On 24/01/2018 15:46, Vivek Das Mohapatra wrote:
>> In fact I think Vivek examples of running process with two different libcs
>> are working mainly because the different glibc define and access the shared
>> resources in same manner.  I bet it will break the moment we change some
>> state internal layout or semantic (for instance the __stack_user struct size).
> 
> A slight correction - we are deliberately using the _same_ libc to
> avoid exactly that problem - it's that dlmopen as currently implemented
> creates a new mapping of the same libc for the dlmopen namespace.
> 
> I also don't need (or expect) complete isolation of the libc cluster:
> If I could, I would share the same mapping of libc & co with the main
> link map.

Right, you first message gave the impression based on the provided
chart that you expected libc isolation as well. I still think we should
clarify the dlmopen semantics, but we can work on this through bug
reports and issue like this one you brought.

I think best course of action is still open a bug report with a possible
testcase.  I will ping Carlos to check his idea about it, he seemed
interested with previous dlmopen issues.

  reply	other threads:[~2018-01-24 18:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24 13:59 Vivek Das Mohapatra
2018-01-24 16:52 ` Szabolcs Nagy
2018-01-24 17:16   ` Vivek Das Mohapatra
2018-01-24 17:25   ` Adhemerval Zanella
2018-01-24 17:47     ` Vivek Das Mohapatra
2018-01-24 18:27       ` Adhemerval Zanella [this message]
2018-01-24 19:48         ` Carlos O'Donell
2018-01-24 21:49         ` Vivek Das Mohapatra
2018-01-24 20:08       ` Carlos O'Donell
2018-01-24 19:34     ` Szabolcs Nagy
2018-01-24 20:05       ` Adhemerval Zanella
2018-01-24 20:06       ` Carlos O'Donell
2018-01-24 20:31         ` Vivek Das Mohapatra
2018-01-24 17:08 ` Adhemerval Zanella
2018-01-24 17:19   ` Vivek Das Mohapatra

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=3a0be147-157e-7c78-b35e-556e893f36cb@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=libc-help@sourceware.org \
    --cc=vivek@collabora.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).