unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: kris <cq.personal@gmail.com>
To: 38368@debbugs.gnu.org
Subject: bug#38368: Acknowledgement (gcc/ dlclose() documentation feedback)
Date: Tue, 26 Nov 2019 03:48:59 +0100	[thread overview]
Message-ID: <CACTzTFCsERy+eRNmJMLc6NWwRQjGAOURbRUHHaarTthWt6M8wQ@mail.gmail.com> (raw)
In-Reply-To: <handler.38368.B.157468668921327.ack@debbugs.gnu.org>

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!





      parent reply	other threads:[~2019-11-26  2:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-25  1:58 bug#38368: gcc/ dlclose() documentation feedback kris
2019-11-26  1:27 ` Lars Ingebrigtsen
2019-12-31 10:48   ` bug#38364: " Stefan Kangas
2019-12-31 10:49     ` Lars Ingebrigtsen
2019-12-31 10:53       ` Stefan Kangas
2020-01-01 10:58         ` Stefan Kangas
2020-01-07 20:43           ` bug#38368: " Carlos O'Donell
     [not found] ` <handler.38368.B.157468668921327.ack@debbugs.gnu.org>
2019-11-26  2:48   ` kris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACTzTFCsERy+eRNmJMLc6NWwRQjGAOURbRUHHaarTthWt6M8wQ@mail.gmail.com \
    --to=cq.personal@gmail.com \
    --cc=38368@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).