This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/1814] dlopen/dlsym clear dlerror flag
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 21 Jan 2016 17:27:09 +0000
- Subject: [Bug dynamic-link/1814] dlopen/dlsym clear dlerror flag
- Auto-submitted: auto-generated
- References: <bug-1814-131 at http dot sourceware dot org/bugzilla/>
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.