[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlerror sets errno to ENOSYS

From: Diego Nieto Cid
Subject: Re: dlerror sets errno to ENOSYS
Date: Sun, 28 Feb 2016 16:53:51 -0300
User-agent: Mutt/1.5.23 (2014-03-12)


On Sun, Feb 28, 2016 at 07:57:43PM +0100, Samuel Thibault wrote:
> Using watch in gdb :)
> I've added fprintf(stderr,"%p\n", &errno); to get the address of errno: 

Oh, that's interesting. I've been struggling with "display errno",
or "display *__errno_location()" without success.

> Could you give that a try?

Yes, I'll try in the following days.

Also I've been looking at the specification of dlopen and it doesn't say
anything about errno and the only way to know what happened is the textual
message given by dlerror.

Thus, console-client is relying on undefined behaviour. Unfortunately,
it seems the only standard way is to parse that textual message. :-(

I guess console-client could be modified to try other directories in the
search path regardless of the reason why dlopen failed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]