[Bug libc/25094] A successful dlclose() seems to clear the last dynamic link error

konrad.schwarz at siemens dot com sourceware-bugzilla@sourceware.org
Thu Oct 10 10:44:00 GMT 2019


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.


More information about the Glibc-bugs mailing list