[PATCH] Report dlsym, dlvsym lookup errors using dlerror [BZ #19509]
Carlos O'Donell
carlos@redhat.com
Wed Feb 10 19:19:00 GMT 2016
On 02/09/2016 05:35 PM, Florian Weimer wrote:
> * Carlos O'Donell:
>
>> A POSIX clarification should probably be made here, but I agree
>> that from a QoI it is better to return some kind of error because
>> that's users expect. I also expect that's what other implementations
>> do (but haven't verified).
>
> It's also what the Solaris examples suggest:
>
> <http://docs.oracle.com/cd/E19683-01/816-1386/chapter3-26/index.html>
>
> I don't see any reason why RTLD_NEXT should behave differently from
> other handles.
Agreed, and that's the *biggest* reason to fix this, namely that the
interfaces should behave the same (principle of least surprise).
I am reviewing your change.
I expect you are suggesting this change for 2.24 and not "right now"
for the upcoming release? I fear the change might change something
of consequence and I'd rather the checkin wait until Adhemerval cuts
the branch on the 18th.
Cheers,
Carlos.
More information about the Libc-alpha
mailing list