Samba hangs (pthread?)

Wilco Baan Hofman wilco at baanhofman.nl
Fri Jun 9 12:34:02 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have problems at a customer site with a bug that samba hangs every
one or two days.
See also bug 3817 at https://bugzilla.samba.org/show_bug.cgi?id=3817.


Jerry said that this problem is probably caused by libpthread.so.0
which is linked into smbd.

This is default behaviour for debian, because it links to pthread.so.0
through libldap_r.so.2.

I've tried reporting this to debian and got the following reply:


Er, samba has been linked with libldap_r.so.2 for well over a year on
Debian, and you're the only person to ever claim that this causes
problems.
Whether or not libldap_r is linked against libpthread really should
make no
difference, when samba itself is not multithreaded and therefore there are
no threads being spawned.  Anyway, the backtrace in the bug report shows a
hang in pthread *after glibc has aborted with an error in free()*; any
problem with libpthread deadlocking is definitely secondary to this.



Steve Langasek also said that using a non-threaded version of the ldap
client library result into more problems.

Details can be found at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372283

Now I have a question: Does it hurt samba to have libpthread.so.0
linked into it?

If not; what could cause these problems?

Regards

Wilco Baan Hofman
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEiWq61C6FlsCYaHURAvDuAJ4xBQSXx3NJ5xC1sxovJ9JwoQR+iwCfTxqf
TqbAOeVkZeq+jlaHfC5htE0=
=cj/o
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list