From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80725 invoked by alias); 6 Aug 2018 12:56:09 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 80709 invoked by uid 89); 6 Aug 2018 12:56:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,KAM_SHORT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=sk:wwwsou, sk:www.sou, wwwsourcewareorg, www.sourceware.org X-HELO: mail-qk0-f178.google.com Received: from mail-qk0-f178.google.com (HELO mail-qk0-f178.google.com) (209.85.220.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 Aug 2018 12:56:07 +0000 Received: by mail-qk0-f178.google.com with SMTP id u21-v6so8771943qku.2 for ; Mon, 06 Aug 2018 05:56:07 -0700 (PDT) Return-Path: Received: from [10.150.73.190] (170.sub-174-192-29.myvzw.com. [174.192.29.170]) by smtp.gmail.com with ESMTPSA id o29-v6sm15367675qkh.85.2018.08.06.05.56.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 05:56:04 -0700 (PDT) Subject: Re: Usage of dlmopen To: Igor Chudov , "libc-help@sourceware.org" References: From: Carlos O'Donell Openpgp: preference=signencrypt Message-ID: Date: Mon, 06 Aug 2018 12:56:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00007.txt.bz2 On 08/06/2018 08:53 AM, Igor Chudov wrote: > Hello! > > I want to use dlmopen(3) call to load 3rd party problematic DSOs, but > here: https://lwn.net/Articles/550033/ I read that dlmopen(3) may > fail after several dlmopen()/dlclose() attempts and the number of > namespaces is limited to 16 but this statement dates back to 2013. > Could anybody tell me if the statement is still correct and is there > any common way to workaround dlmopen(3) limitations? At present dlmopen is limited to use for LD_AUDIT objects and general purpose use of dlmopen is not recommended. The limit of 16 namespaces is still in place. There are no workarounds. We are reviewing work done by Vivek Das Mohapatra to fully implement dlmopen: https://www.sourceware.org/ml/libc-alpha/2018-06/msg00103.html Any feedback on that implementation would be appreciated. -- Cheers, Carlos.