Comment 57 for bug 507089

Revision history for this message
bl8n8r (bl8n8r-gmail) wrote : Re: thunderbird shredder always segfaults on startup with LDAP auth in nsswitch

Something definitely funky with ldap users and thunderbid (tested versions <= 2.0.0.23). I can run thunderbird as a non-ldap user just fine, but as soon as trying it with and ldap user it seg faults.

I've tried 3.6 all the way down to 2.0.0.23 and it's the same thing for each version.

dmesg
------------------------------------------------------------------
[597021.472581] thunderbird-bin[16356]: segfault at 912fb8bc ip 08091fe6 sp b6a32668 error 4 in thunderbird-bin[8048000+c4b000]
[597024.625942] thunderbird-bin[16366]: segfault at 90dfb8bc ip 08091fe6 sp b6932668 error 4 in thunderbird-bin[8048000+c4b000]
[597030.588103] thunderbird-bin[16375]: segfault at 917f18bc ip 08091fe6 sp b6b30668 error 4 in thunderbird-bin[8048000+c4b000]
[597167.664977] thunderbird-bin[16402]: segfault at 90dfb8bc ip 08091fe6 sp b6932668 error 4 in thunderbird-bin[8048000+c4b000]
[597171.815210] thunderbird-bin[16411]: segfault at 917f18bc ip 08091fe6 sp b6b30668 error 4 in thunderbird-bin[8048000+c4b000]

my nsswitch.conf
------------------------------------------------------------------
  # grep ldap /etc/nsswitch.conf
  passwd: files ldap
  group: files ldap
  shadow: files ldap

strace shows barfology after looking for ldap.conf
------------------------------------------------------------------
$ export LD_LIBRARY_PATH=.
$ strace ./thunderbird-bin
...
open("/home/user/ldaprc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/user/.ldaprc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("ldaprc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
brk(0xaa1d000) = 0xaa1d000
stat64("/etc/ldap.conf", {st_mode=S_IFREG|0644, st_size=776, ...}) = 0
geteuid32() = 9418
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++