Bugzilla – Bug 349545
Thunderbird segfaults on startup
Last modified: 2009-07-20 07:17:52 UTC
user@box:~$ /usr/bin/thunderbird /usr/bin/thunderbird: line 137: 2858 Segmentation fault $AOSS $MOZ_PROGRAM $@ user@box:~$ rpm -q MozillaThunderbird MozillaThunderbird-2.0.0.9-0.1 After setting the appropriate environment variables, gdb gives: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb70cc6d0 (LWP 2934)] 0xb7295b55 in strtok () from /lib/libc.so.6 (gdb) bt #0 0xb7295b55 in strtok () from /lib/libc.so.6 #1 0xb75de614 in ldap_str2charray () from /usr/lib/thunderbird/libldap50.so #2 0xb707620c in ?? () from /usr/lib/libldap-2.3.so.0 #3 0xb708911a in ?? () from /usr/lib/libldap-2.3.so.0 #4 0xb7088ebe in ?? () from /usr/lib/libldap-2.3.so.0 #5 0x00000001 in ?? () #6 0x00000001 in ?? () #7 0x00000000 in ?? () Last few lines of strace -f before the SEGV: [pid 2965] open("/etc/host.conf", O_RDONLY) = 4 [pid 2965] fstat64(4, {st_mode=S_IFREG|0644, st_size=370, ...}) = 0 [pid 2965] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ea3000 [pid 2965] read(4, "#\n# /etc/host.conf - resolver co"..., 4096) = 370 [pid 2965] read(4, "", 4096) = 0 [pid 2965] close(4) = 0 [pid 2965] munmap(0xb7ea3000, 4096) = 0 [pid 2965] futex(0xb7368800, FUTEX_WAKE, 2147483647) = 0 [pid 2965] open("/etc/hosts", O_RDONLY) = 4 [pid 2965] fcntl64(4, F_GETFD) = 0 [pid 2965] fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 [pid 2965] fstat64(4, {st_mode=S_IFREG|0644, st_size=689, ...}) = 0 [pid 2965] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ea3000 [pid 2965] read(4, "#\n# hosts This file desc"..., 4096) = 689 [pid 2965] read(4, "", 4096) = 0 [pid 2965] close(4) = 0 [pid 2965] munmap(0xb7ea3000, 4096) = 0 [pid 2965] --- SIGSEGV (Segmentation fault) @ 0 (0) --- Process 2962 resumed Process 2965 detached user@box:~$ cat /etc/SuSE-release openSUSE 10.3 (i586) VERSION = 10.3 user@box:~$ uname -a Linux box 2.6.22.13-0.3-default #1 SMP 2007/11/19 15:02:58 UTC i686 i686 i386 GNU/Linux I hope this gives you a rough idea, but I can't fathom which information you need to pin down the problem, so please tell me what you need. Kind regards FDF
Set severity to critical, as there's no apparent workaround and thunderbird is completely unusable (here).
If you are using nss_ldap is a duplicate of bug 157078. Is this the case?
Yes indeed! As disabling nss_ldap is not an option for me, I've tried recompiling the thunderbird rpm without ldap support (--disable-ldap) which works and doesn't segfault.
In bug 157078 a poster mentions that starting nscd is a workaround for him. I just tried that and it doesn't help here.
*** This bug has been marked as a duplicate of bug 157078 ***
Bug (In reply to comment #5 from Wolfgang Rosenauer) > > *** This bug has been marked as a duplicate of bug 157078 *** > Bug 157078 is now closed as duplicate of bug 387202, however this ignores that this bug is completely independent of nscd, so I'm reopening. I think you've muddled to many issues into bug 387202 which didn't have the same cause.
Please check https://bugzilla.novell.com/show_bug.cgi?id=157078#c75 I have no idea how Thunderbird behaves with that patch but it shouldn't crash with that stack anymore. It's fixed in OBS:mozilla and also with upcoming openSUSE 11.1
- I've downloaded the src rpm from http://download.opensuse.org/update/11.1/rpm/src/MozillaThunderbird-2.0.0.19-0.1.2.src.rpm - Patched the specfile a bit, to make it compile under 10.3: {{{ 98,99c98,99 < BuildRequires: mozilla-nspr-devel < Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) --- > #BuildRequires: mozilla-nspr-devel > #Requires: mozilla-nspr >= %(rpm -q --queryformat '%{VERSION}' mozilla-nspr) 102c102 < BuildRequires: mozilla-nss-devel --- > #BuildRequires: mozilla-nss-devel }}} - And I can confirm that it still crashes
Apparently there is a fix for that in glibc.