Bug 349545 - Thunderbird segfaults on startup
Summary: Thunderbird segfaults on startup
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Firefox (show other bugs)
Version: Final
Hardware: i686 openSUSE 10.3
: P5 - None : Critical with 10 votes (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-18 16:16 UTC by Friedrich Delgado Friedrichs
Modified: 2009-07-20 07:17 UTC (History)
1 user (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Friedrich Delgado Friedrichs 2007-12-18 16:16:27 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
Comment 1 Friedrich Delgado Friedrichs 2007-12-19 09:55:37 UTC
Set severity to critical, as there's no apparent workaround and thunderbird is completely unusable (here).
Comment 2 JP Rosevear 2007-12-19 20:10:02 UTC
If you are using nss_ldap is a duplicate of bug 157078.

Is this the case?
Comment 3 Friedrich Delgado Friedrichs 2007-12-20 10:18:32 UTC
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.

Comment 4 Friedrich Delgado Friedrichs 2007-12-20 11:26:26 UTC
In bug 157078 a poster mentions that starting nscd is a workaround for him. I just tried that and it doesn't help here.
Comment 5 Wolfgang Rosenauer 2008-01-17 14:40:24 UTC

*** This bug has been marked as a duplicate of bug 157078 ***
Comment 6 Friedrich Delgado Friedrichs 2008-12-05 12:06:20 UTC
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.
Comment 7 Wolfgang Rosenauer 2008-12-05 12:21:30 UTC
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
Comment 8 Friedrich Delgado Friedrichs 2009-01-09 12:20:26 UTC
 - 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
Comment 9 Wolfgang Rosenauer 2009-07-20 07:17:52 UTC
Apparently there is a fix for that in glibc.