This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]