This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/25094] A successful dlclose() seems to clear the last dynamic link error
- From: "konrad.schwarz at siemens dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 10 Oct 2019 10:44:22 +0000
- Subject: [Bug libc/25094] A successful dlclose() seems to clear the last dynamic link error
- Auto-submitted: auto-generated
- References: <bug-25094-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=25094
--- Comment #2 from Konrad Schwarz <konrad.schwarz at siemens dot com> ---
Wording in POSIX contradicts above comment.
If dlclose() (or any other dynamic linking function) were allowed
to reset the dynamic linking error indication, the wording would
be along the lines
"describes the last result that occurred during dynamic linking
processing, a null pointer if no error occurred".
The actual wording requires behavior similar to errno,
which is modified *only* when an error occurs --
and the application is required to reset errno to zero
to detect error in some cases.
Please reopen.
--
You are receiving this mail because:
You are on the CC list for the bug.