public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: "Александр Ващилко" <alexander.armoken@gmail.com>
To: libc-help@sourceware.org
Subject: dlmopen and isolation of loaded libraries
Date: Mon, 27 Feb 2023 11:48:05 +0000	[thread overview]
Message-ID: <CAJ6FTedRHzMa+zcrOgeYom0=eGi3jvjkuSfLMtitpV0AwwaB=Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 963 bytes --]

Hi, I am developing a project that has the functionality of loading
libraries of some third-party products which shipped with their own
versions of libstdc++ or glibc.
But my project needs to use its own versions of the same libraries.
I found the dlmopen function, but as I understand, it has limited isolation
functionality.

Also, as I understand from this article
https://sourceware.org/glibc/wiki/LinkerNamespaces, every new namespace
created by dlmopen have own copy of glibc of version from which dlmopen
was called.

I there any way to load third-party libraries with their own versions of
libstdc++, their own versions of glibc, or all their own libraries of their
own versions at the same time?

Anyway, even if dlmopen doesn't support the required functionality, do
glibc and libstdc++ support the simultaneous existence of different
versions of these libraries at the same time in the same process?
Maybe I will find a way to do what I need.

Thanks.

             reply	other threads:[~2023-02-27 11:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-27 11:48 Александр Ващилко [this message]
2023-02-27 13:10 ` Florian Weimer
2023-02-27 16:57 ` Basile Starynkevitch

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='CAJ6FTedRHzMa+zcrOgeYom0=eGi3jvjkuSfLMtitpV0AwwaB=Q@mail.gmail.com' \
    --to=alexander.armoken@gmail.com \
    --cc=libc-help@sourceware.org \
    /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).