Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#25900 - thunderbird (6.x, 5.x) doesn't work for users with NFS home directories
Attached to Project:
Arch Linux
Opened by Marek Kozlowski (guayasil) - Monday, 05 September 2011, 12:55 GMT
Last edited by Jan de Groot (JGC) - Monday, 28 November 2011, 10:34 GMT
Opened by Marek Kozlowski (guayasil) - Monday, 05 September 2011, 12:55 GMT
Last edited by Jan de Groot (JGC) - Monday, 28 November 2011, 10:34 GMT
|
DetailsDescription:
Arch, XFCE 4.8. For unknown reason thunderbird works OK for users with local home directories. For those with NFS homes a `segmentation fault' occurs. Tracing gives no reasonable error. I tried configuring my NFS client according to https://wiki.archlinux.org/index.php/NFS , with or without the 'nolock' fstab option -- no difference. AFAIK my server serves NFS3 but no other application (libreoffice, firefox, numerous graphical and development apps etc) complains, no errors in logs. |
This task depends upon
Closed by Jan de Groot (JGC)
Monday, 28 November 2011, 10:34 GMT
Reason for closing: Won't fix
Additional comments about closing: This is a design flaw in nss_ldap. Either use nscd to move the ldap lookup code out-of-process or switch to nss_ldapdb which fixes this design flaw.
Monday, 28 November 2011, 10:34 GMT
Reason for closing: Won't fix
Additional comments about closing: This is a design flaw in nss_ldap. Either use nscd to move the ldap lookup code out-of-process or switch to nss_ldapdb which fixes this design flaw.
gdb /usr/lib/thunderbird-6.0.1/thunderbird-bin
it must say that it has debug symbols.
Then you report this issue on http://bugzilla.mozilla.org
194.29.178.12:/home/samba /home/samba nfs rw,nolock 0 0
194.29.178.12:/home/samba /home2/samba nfs rw,nolock 0 0
Everything works perfect for both local and remote users except thunderbird which segfaults if run by a remote user. I straced thunderbird for both users. The line (#7141 in the attached log for the local `uszatekm'):
1367 symlink("194.29.178.135:+1367", "/home/uszatekm/.thunderbird/7i6ywbr6.default/lock") = 0
is never reached for the remote user (`kozlowskim'); instead a segfault occurs.
Mozillas don't like NFS, there is a lock so it seemed obvious that there is some problem with locks on NFS. I traced it and tested numerous configurations and observed no difference. But finally I did an experiment: I removed the remote mounts and created a local home directory for the remote (LDAP) user `kozlowskim'. Well.... exacly the same segfault occurs.
--> it seems to be unrelated to NFS (the same w/o it),
--> the only difference (except NFS) is that remote users authenticate via pam_ldap and nss_ldap. But is seems to have nothing to do with the segfault while creating a symlink/lock.
Seems like squaring the circle and I'm completely confused...
Can anyone check/test how thunderbird works with NFS and LDAP users -- maybe we''' be able to identify the problem..?
Edit:
Try starting the nscd daemon, it should offload all the lookup code to a caching daemon, also speeds up your passwd/group lookups a lot.
Bingo!!
I have some problems with nss_ldap compilation (`make'):
[...]
CVSVERSIONDIR=. vers_string -v
/bin/sh: vers_string: command not found
make[1]: *** [vers.c] Error 127
make[1]: Leaving directory `/home/aki/Downloads/nss_ldap/nss_ldap-265'
make: *** [all] Error 2
I did `chmod +x vers_string' and edited the Makefile according to http://134.75.123.21/twiki/bin/view/Main/LdapInstallation
Now I have:
make all-am
make[1]: Entering directory `/home/aki/Downloads/nss_ldap/nss_ldap-265'
CVSVERSIONDIR=
if gcc -DHAVE_CONFIG_H -I. -I. -I. -DLDAP_REFERRALS -DLDAP_DEPRECATED -D_REENTRANT -g -O2 -Wall -fPIC -MT vers.o -MD -MP -MF ".deps/vers.Tpo" -c -o vers.o vers.c; \
then mv -f ".deps/vers.Tpo" ".deps/vers.Po"; else rm -f ".deps/vers.Tpo"; exit 1; fi
gcc: error: vers.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
make[1]: *** [vers.o] Error 1
make[1]: Leaving directory `/home/aki/Downloads/nss_ldap/nss_ldap-265'
make: *** [all] Error 2
May I ask for some help?
# pacman -S abs
# abs extra/nss_ldap
$ cp -r /var/abs/extra/nss_ldap ~
$ cd ~/nss_ldap
$ makepkg
The commands prefixed with # should be run as root, the ones with $ as regular user. After doing this, you'll have a recompiled nss_ldap package in ~/nss_ldap.
I prepared a new package with ABS and installed it (`pacman -U ...pkg.tar.gz') than I stopped nscd. Unfortunately, the is no difference between "new" and "old" package. It seems that nss_ldap is OK (not broken by minor glibc changes). I'm used to "new fascinating Mozilla's bugs" and it looks like one of them :-(
There's two ways to fix it:
- build Thunderbird against system libldap, there's patches available for that
- Switch to nss_ldapd