-lpthread hangs pam application

Steve Langasek vorlon at debian.org
Fri Oct 21 23:03:15 UTC 2005


Hi Ken,

On Fri, Oct 21, 2005 at 03:45:51PM -0700, Ken Partridge wrote:
> I have an application that is calling the pam functions (i.e. pam_start,
> pam_authenticate, etc.)

> When i have it compiled without the -lpthread tag, life is good
> everything works.

> If all i do is add the -lpthread (NOT calling any pam functions from a
> thread) the app hangs when the conversation callback returns.

> Even though for this simple application i am not calling any pam
> functions from inside a thread, is this normal behavior and should I
> move on or is there a work around?

What version of PAM are you using?  Recent builds of Linux-PAM include
implementations of routines like getpwnam() which attempt to enforce thread
safety by using pthread mutexes.  I'm not sure how this would be related,
but I don't see anything else that would be.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon at debian.org                                   http://www.debian.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/pam-list/attachments/20051021/a84b9404/attachment.sig>


More information about the Pam-list mailing list