From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by sourceware.org (Postfix) with ESMTPS id 60DE43858D20 for ; Mon, 27 Feb 2023 11:48:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 60DE43858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-x22a.google.com with SMTP id b13so6126534ljf.6 for ; Mon, 27 Feb 2023 03:48:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=xvhNyEGryIvlninC7b2CgO3axnbZQ9KNvpA0RaN9upU=; b=lWZjIKgU5h1DuihreoDfDa8tIh6ikLtdzyRYSvtVEh5VYVsXtboSAMWSN157JyRnor 4+QIHHlQkCkqC+SdmEXQvsNdDTXUEz3KH+bhQGVSXg3k4jhmzwqFQgOAvGOA1AbgAFM7 EWtY7Ew52cG+f6gHGX3O27U1GlebXP6rs5JN3rZVb2hr6yjdeo4Mfaw5Tu1T3HVjEEz0 5SkccwLp1daZvxNXGl3+TbRKTOER/93FEY2fD8VbABDjUDXRsO3dvEskqYGL4LIcbr++ YmdX4qEZUV9+VyXaOp16bqUH/jlVTcMwS9jHxqkepiFI3dZJ50juFnUBAJ6RmS9F3YhF jK5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xvhNyEGryIvlninC7b2CgO3axnbZQ9KNvpA0RaN9upU=; b=OgDlogvVO9QvtTnH7fbrT5Zhior/XwWGDB9iYliTxITtWELjqN2jWfffc7OjlkzhVl EvFTvJ625z/7rKtAoRxzJOPtpPX/hjcgotevaoseptyubROZJg2gGN7wummNFX+8kU// 7dvFVPqW34Rhh4/iUwS/+bBjeP9x0u1nxEwq19fCE1XAkIPUvSUI9QYlM+kr74oclcZ6 hQHN1dwo7V6htaNyvx5nw8dDQqwI0YbalkMkLVu+uNWOMiH3N6+yF2n29S6ppa8ExTM5 bdxQ7Rz7geP8zfxCsYPOeUhflLpPy1IhenlyvWkjtPVUt2ZRuOnj6VxclVUiEiKlw1mb 9sKQ== X-Gm-Message-State: AO0yUKVH5ASjPJNx39qKnxc7zJ3yZH/yzPWHSfZTkzW9WYKPNqBJr3Ts LgciqFl0HqBlR0Hw5L+e1wi4Cn+yZ9H++KK8wW3BRYm+UsA= X-Google-Smtp-Source: AK7set/0FHGbjhBX9+pLrVt/Fe8R/G1NkM+7K1upHWAORm1o9chZK5hOPqfJAsc4pHUtsuvgQvIkxdKtly4s17RJltM= X-Received: by 2002:a2e:a37b:0:b0:295:a8bd:d938 with SMTP id i27-20020a2ea37b000000b00295a8bdd938mr2832555ljn.0.1677498496505; Mon, 27 Feb 2023 03:48:16 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?0JDQu9C10LrRgdCw0L3QtNGAINCS0LDRidC40LvQutC+?= Date: Mon, 27 Feb 2023 11:48:05 +0000 Message-ID: Subject: dlmopen and isolation of loaded libraries To: libc-help@sourceware.org Content-Type: multipart/alternative; boundary="000000000000fedb2605f5ad0d93" X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000fedb2605f5ad0d93 Content-Type: text/plain; charset="UTF-8" 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. --000000000000fedb2605f5ad0d93--