From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98991 invoked by alias); 5 Jul 2019 18:26:48 -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 98981 invoked by uid 89); 5 Jul 2019 18:26:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative, our X-HELO: mail-wr1-f54.google.com Received: from mail-wr1-f54.google.com (HELO mail-wr1-f54.google.com) (209.85.221.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 Jul 2019 18:26:46 +0000 Received: by mail-wr1-f54.google.com with SMTP id g17so653878wrr.5 for ; Fri, 05 Jul 2019 11:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fCV8rcjJy54fEFJcB1FIzEDeZ8Gd4gR57QYaj7zlBzY=; b=rBUlOiTGVZDmAQ9vGl+9rRrPec99MSmBbyWT/NamiCsKZuFxZWg65tBFsr3jRIK3b7 6MlG4AWN1qOjAbwFdjYYjLimYCRhxCeu7hW5BjDs4lwwResHTTT4KGWNLK3Ozd2uwOnC IY5JfCOh4kMLc/HoOftjle5a+TKXRAHv1d9eEGI4po3f6R218qi0lK8lnlwtVWQKijpt irI6ydy6VIAdSU1WV5ubRVjUWIVuUvBBazGj+osZ4wfaTTf6bN0mRlzmPFXKmCSs4S0R jgJyoB3W+4xoa/c+QfQxY594MHnE8PasFkPb8u7JFxf13aUDkuRguXzYOo/F7YxWTwnR Zt3g== MIME-Version: 1.0 References: <871rzsdpj5.fsf@oldenburg2.str.redhat.com> <87sgs8c9x7.fsf@oldenburg2.str.redhat.com> <87r2748hrk.fsf@oldenburg2.str.redhat.com> In-Reply-To: <87r2748hrk.fsf@oldenburg2.str.redhat.com> From: Baojun Wang Date: Fri, 05 Jul 2019 18:26:00 -0000 Message-ID: Subject: Re: dlmopen in LD_PRELOAD To: Florian Weimer Cc: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00002.txt.bz2 Hi Florian, No problem to upload it to bugzilla, and thanks a lot for the suggestions. Best Regards Baojun On Fri, Jul 5, 2019 at 2:21 PM Florian Weimer wrote: > * Baojun Wang: > > > Hi Florian, > > > > (re-send because previous email failed to send due to attachment) > > > > I made a tiny project this issue, it didn't show the same failure, > however > > it did segfaults inside the library being `dlmopen`-ed. > > > > link: `git clone https://github.com/wangbj/dlns-test.git` > > > (sorry attachment seems to cause failure to send message) > > May I put this into a tarball and upload it to our Bugzilla? > > I fixed a bunch of things (yet to be submitted/committed), and together > with Fedora's __libc_multiple_libcs patch, I'm now stuck at this bug: > > > > You can like work around this if you use __thread variables with > __attribute__ ((tls_model ("initial-exec"))) instead > pthread_setspecific, although you won't get a destructor function this > way. > > Our implementation of thread_local for C++ has a similar issue, so it's > not a way out unfortunately. > > Thanks, > Florian >