[Bug dynamic-link/1814] dlopen/dlsym clear dlerror flag

carlos at redhat dot com sourceware-bugzilla@sourceware.org
Thu Jan 21 17:27:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=1814

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |WAITING
                 CC|                            |carlos at redhat dot com

--- Comment #8 from Carlos O'Donell <carlos at redhat dot com> ---
POSIX is pretty clear, the dlerror interface should return the last error
regardless of intervening successful calls to dl* functions. The Linux
behaviour of clearing dlerror on successful invocation is wrong IMO and should
be fixed. The interface should be versioned to prevent breakage of existing
applications. The old version should continue to clear the return of dlerror,
while the new version should not clear it on success.

Tom's patch needs versioning support. I'm moving this bug to WAITING where it
will remain until we have a patch with versioning that implements the following
behaviour:
* Old version: clear dlerror return on successful dl* calls.
* New version: leaves dlerror return alone if dl* call was successful.
* Test case: Tests new behaviour.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list