Samba hangs (pthread?)
vorlon at debian.org
Sun Jun 11 20:45:56 GMT 2006
On Sun, Jun 11, 2006 at 06:25:30PM +0200, Rainer Weikusat wrote:
> >> Now I have a question: Does it hurt samba to have libpthread.so.0
> >> linked into it?
> > The problem is, no-one really knows. Linking with pthread causes certain
> > libc internals to change in behaviour. There has been one such case on
> > the list recently that involved sigaction. Now, linking with pthreads
> > *shouldn't* cause a problem,
> For LinuxThreads (ie not NPTL) it decidedly should (and will), because
> Samba changes its uid on oaccasion, which may result in some threads
> running with uid 0 and some other threads with a non-priviledged one,
> which in turn can cause the pthread sleep/ wakeup-mechanism, which
> relies on the ability of a thread to send a signal to any other thread
> within the same process, to fail (the signal isn't delivered to the
> target thread due to EPERM and the sending thread "hangs", waiting for
> some action to be taken because of the signal).
Uh, but *linking* against libpthread should not result in additional threads
being spawned, so this should be a non-issue for samba.
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/
More information about the samba-technical