From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: kris Newsgroups: gmane.emacs.bugs Subject: bug#38368: Acknowledgement (gcc/ dlclose() documentation feedback) Date: Tue, 26 Nov 2019 03:48:59 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="99658"; mail-complaints-to="usenet@blaine.gmane.org" To: 38368@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 03:50:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZQvk-000PiZ-Su for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2019 03:50:21 +0100 Original-Received: from localhost ([::1]:49768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZQvg-0005pa-Ss for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Nov 2019 21:50:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38414) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZQvS-0005pH-Rw for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 21:50:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZQvR-00062z-QG for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 21:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZQvR-00062u-Mq for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 21:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZQvR-0007gK-Kx for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2019 21:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: kris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2019 02:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38368 X-GNU-PR-Package: emacs Original-Received: via spool by 38368-submit@debbugs.gnu.org id=B38368.157473654729461 (code B ref 38368); Tue, 26 Nov 2019 02:50:01 +0000 Original-Received: (at 38368) by debbugs.gnu.org; 26 Nov 2019 02:49:07 +0000 Original-Received: from localhost ([127.0.0.1]:50075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZQuZ-0007f6-3X for submit@debbugs.gnu.org; Mon, 25 Nov 2019 21:49:07 -0500 Original-Received: from mail-qt1-f176.google.com ([209.85.160.176]:46183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZQuY-0007eZ-39 for 38368@debbugs.gnu.org; Mon, 25 Nov 2019 21:49:06 -0500 Original-Received: by mail-qt1-f176.google.com with SMTP id r20so19714149qtp.13 for <38368@debbugs.gnu.org>; Mon, 25 Nov 2019 18:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=AqkJwEd3iZnUFyUAJ1n3ldVYhxQx3Z43zQW8oM9tvYQ=; b=MIC40PDKsyhQX+JbEYC0Ig48aqbqdIB4AghdOa/9feofMXh3N4jK1A3yyLNZCGIesd 2BeGXeazTVZloL1GxxnjT2SzZ2wY7g9CI6LwRcTW01KfaenrF03V5AZk7ZB9SPxzlCsp iZj5QzZmoxmMv86AhipiBz2rE+8m34EiuVzsI5CG/bVzyXs/gvN6nmrX7mrQ43QP1HOP PUXfHWMTKw3QntwtQAIC8XQV6bsg5xV13VXpxc/I3yevTv2HnzPsvaW1ffSH/0Ktdvkw emwMkrevq1qI8RUefrZZOSI5vaP6/zrGLgtjI61GX264tZsXUqUwXo1RSs0CAYCBMCsl p6IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=AqkJwEd3iZnUFyUAJ1n3ldVYhxQx3Z43zQW8oM9tvYQ=; b=HE1lLZmwlbCvpcoFZqJU63+8IVoemvN88dTqWqLx95tdBEpRmq09b9ktsgTm2yPmsr zcKaUoH1FSo3d0khJujbwGUQZGj6RsVVsr8uKXBL3nQ5wVRj5TpcjWh6AnKKcL+v791G b5G3nPPk/d61pyULtLFFtO8ZPLUtNzlxEBMJ8NcviSveFnfagZNuQIMQr2IwOIN03Azu xAfUiuAOOzLC3t8STI0im4gQV2tIGdu4Mdmdi02rB5Ii7zTkF3vmIj3uYtTl1dYuezUu ECQofDxQoi6YrHj9wgdlh5zaHvEPRLXJ6B01U+af9kSonj7AFuYcl+mf2f3Wf7HK1BNn JWKQ== X-Gm-Message-State: APjAAAWgYqag+3mRjafzVur4XfheIKaWxvcjq5EmXQ5P+TLD8jhj2IlS ufdusxUwRWS/YK7PrZuF2YmqhNo/m9VL+ooH9h+KNg== X-Google-Smtp-Source: APXvYqygfiaLsKrK1pbZBR10MH40bJ4eIhNHflwKHMqguX5Jb6F0iHX9L1/x8c3Xi/Ii5u2kj/lRHG5g2MtFSyTF8nM= X-Received: by 2002:ac8:28a1:: with SMTP id i30mr33898993qti.245.1574736540473; Mon, 25 Nov 2019 18:49:00 -0800 (PST) Original-Received: by 2002:a0c:e306:0:0:0:0:0 with HTTP; Mon, 25 Nov 2019 18:48:59 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172417 Archived-At: hello. apart from making the mistake of titling 'gcc' rather than 'glibc', on revue I was also vague about what I saw as the ambiguity in the documentation. to wit: on the one hand the docs state dlclose() does NOT guarantee unloading of the object. on the other a means is provided for determining if an object is resident (RTLD_NOLOAD). having done that once and dlclose()ed as needed (twice if the handle was non-null), if a 2nd attempt to dlopen() returns null then that is indeed confirmation of unloading. so, in this way, a guarantee is obtained of unloaded status and it was done via a combination of dlopen() and dlclose() (multiple). my contention is that the mention of dlclose() being 'not guaranteed' could be qualified by indicating how to go about it. that said, I methodically went through getting this confirmation of unloaded status for a recursive chain, and still found that data obtained through a dlsym() on the re-opened chain-head object did not correspond to the content of the refreshed disk file. I am totally confused about that!