tech-userlevel archive

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

Re: dlopen() and libpthread

On Sun, Oct 21, 2012 at 11:34:59PM +0200, Joerg Sonnenberger wrote:
> Try changing src/pkcs11/pkcs11-global.c, line 47 to use sizeof(*m) to
> not overflow the buffer as start...

Right, that fixes one problem but we are not done yet.

Now ssh-agent correctly dlopen /usr/pkg/lib/, which in
turns dlopen (no problem), which then attemps to dlopen and here we break again because it is linked with -lpthread

$ ldd /usr/pkg/lib/
        -lpthread.1 => /usr/lib/
        -lgcc_s.1 => /usr/lib/
        -lc.12 => /usr/lib/

But this time, threads are really used:

$ nm /usr/pkg/lib/|grep pthread_ 
         U pthread_attr_destroy
         U pthread_attr_init
         U pthread_attr_setdetachstate
         U pthread_cancel
         U pthread_create
         U pthread_detach
         U pthread_join
         U pthread_setcanceltype

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index