[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dlopen() and libpthread
On Fri, Oct 19, 2012 at 11:16:42AM +0200, Joerg Sonnenberger wrote:
> Because it doesn't work correctly. libc behavior changes etc.
> Explicitly erroring out is a *huge* improvement over silent corruption
> as seen many, many times before.
> You might want to check if the DSO really needs libpthread, in many
> cases it isn't. E.g. if it just wants to use mutexes etc, but doesn't
> create threads itself, the libc stubs are good enough.
It seems to only use pthread_mutex, but when building without -lpthread,
it does not work anymore: OpenSC clients cannot access the token anymore
(ssh-agent gets "no slots").
I can workarounf that regression for ssh-agent by doing
LD_PREOAD=/usr/lib/libpthread.so.1 but this method cannot be used
for pam modules that are loaded by setuid binaries such as su or login.
Main Index |
Thread Index |