From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id BC07C384F010 for ; Mon, 13 Feb 2023 10:41:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BC07C384F010 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-il1-x131.google.com with SMTP id t7so3315302ilq.2 for ; Mon, 13 Feb 2023 02:41:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=7e5wQHecXl32WGAKcIlh5594p69e8U4KXXpZ97ImwTE=; b=g3f4s9cLfXIjVGTKtZQeRs51LnBKhuuzdBo/mjtTzXTWZpUhvQh4YLN/WdPWTAg5Lg xPWPegNb8TApJsXbK1kxnpVx5ISdKGb/T6rXCR3CQfrkAdTxwZxUfcYhWojE3O+a5k+7 mPKUc1CwwxK2LBb/hNWQrtmSW1Ju3d4GlgDEVer3S9nEqHDf2/ny0hs0jf/h6iU3aFfN wPmNkXC/Gc1AhFGVE77OqDFnblGag5adMtlbUkWCOKih8UNaYS6JVx7TxwUGAMW9UrRH EpY2tT5P6SewWEHe1LD1nSIKqYk2SjNALqqhATFEc7d8HQg+Hnof8+luP1iYa2bC4vRe VERA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7e5wQHecXl32WGAKcIlh5594p69e8U4KXXpZ97ImwTE=; b=466Mvctms7kMsyAjIH9tPyFr07PgQ6/zWNKsoQjW4Emwsbyf052Ypr3uBCo5ecQwHa 0DTkAKxURNRYtG1IQNydCnB2BGuve5HK0Xot1ttwqTsZk4ikafGnmdxQx+zRzYsVxmE5 x5B0gMa9o9IxrBeugRICHZwlKbs2QrYMv9ras5YlIPUpX3L4AVoWd88b+DZM0QzKZrph puVXXg2dwuJP9RdPsMQS0ro6fnDOsXkmEailK2/12XuCXso8frYRLdINPh96nI69Enq5 XYVPa230bgpAQteWCR1RNXLB/XWR5MNTMdnTyrFcDK2AaJFcv8OZtWan1bYc4oj4O8a0 7gTw== X-Gm-Message-State: AO0yUKUFCWDLBbG5edW8Pp+H/rwG2ErCVPV1ZzJRUK2gyKtcdKab3c3s lnGHcTxCcj1Q5VKyYVc82iyu0v6qR7M= X-Google-Smtp-Source: AK7set+gX2/Ya83zKmIvJNh7NEo0XBhOehgTtmYFtK/sbjqRXrx2C1J8ZhW6Ow0nO4U9qkairoHouA== X-Received: by 2002:a05:6e02:1649:b0:315:30d2:c600 with SMTP id v9-20020a056e02164900b0031530d2c600mr9877828ilu.31.1676284861607; Mon, 13 Feb 2023 02:41:01 -0800 (PST) Received: from [192.168.50.73] ([104.153.230.41]) by smtp.gmail.com with ESMTPSA id p25-20020a02c819000000b003a96d8a5fa3sm3800002jao.174.2023.02.13.02.41.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2023 02:41:01 -0800 (PST) Date: Mon, 13 Feb 2023 04:40:55 -0600 From: Nima Hamidi To: Nima Hamidi via Libc-help , Florian Weimer Message-ID: In-Reply-To: <87v8k5g8nw.fsf@oldenburg.str.redhat.com> References: <14297fb9-70cb-42b1-a477-6fb68c03ff64@Spark> <052bc685-e6bb-4fbb-a696-f6810bdab1f6@Spark> <87v8k5g8nw.fsf@oldenburg.str.redhat.com> Subject: Re: Using dlmope/dlopem with RTLD_GLOBAL X-Readdle-Message-ID: a3e22347-7284-4948-a869-de14b630dc22@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="63ea13bc_799d0247_6110" X-Spam-Status: No, score=-1.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: --63ea13bc_799d0247_6110 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks for your quick response. Will do that once I can create an account o= n Bugzilla. On Feb 13, 2023 at 4:30 AM -0600, Florian Weimer , wrot= e: > * Nima Hamidi via Libc-help: > > > The error won=E2=80=99t happen if I=C2=A0dlopen=C2=A0with=C2=A0RTLD_LOC= AL=C2=A0in b.cpp rather > > than RTLD_GLOBAL. I would appreciate any help on what I=E2=80=99m doing= wrong > > here. > > I think I see what's going on. The add_to_global_resize function does > not take into account that the global scope does not exist yet when it > is called. Would you please file a bug in Bugzilla? > > > > Thanks, > Florian > --63ea13bc_799d0247_6110--