FS#60779 - [thunderbird] Crashes after adding account

Attached to Project: Arch Linux
Opened by Rokas Kupstys (rokups) - Monday, 12 November 2018, 11:46 GMT
Last edited by Jan de Groot (JGC) - Thursday, 13 June 2019, 22:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Thunderbird crashes after adding account. After that application will crash on next startup before displaying any content. Crash happens in libxul.so. Issue is present since very first build of v60. Never happened in v52 and earlier.

I would love to provide a better backtrace but i fail to build a package with debug info. So far i have tried modifying options in PKGBUILD to look like so: options=(!emptydirs !makeflags !strip debug), any tips would be greatly appreciated.


Additional info:
* package version: 60.3.0-1
* empty new profile with a gmail email added. no custom folders/labels/nothing.


Steps to reproduce:
1. Delete ~/.thunderbird
2. Start application
3. Add email. After a short while it crashes.
4. Restart application - crashes before anything is visible in the window.
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 13 June 2019, 22:32 GMT
Reason for closing:  Fixed
Comment by Rokas Kupstys (rokups) - Friday, 16 November 2018, 09:45 GMT
This is probably unrelated to thunderbird profile. I found out that thunderbird works fine on on my laptop. I copied entire ~/.thunderbird profile to my workstation. It still crashes when using copied profile. Any idea what else could interfere here?
Comment by Jarkko Torvinen (fernie) - Wednesday, 02 January 2019, 19:01 GMT
Same thing happens for me.

But if you hit cancel on the new account wizard and then go to preferences -> account settings and launch the account setup from there, it works
Comment by Jarkko Torvinen (fernie) - Wednesday, 02 January 2019, 19:08 GMT
added extension provider for google calendar, and it crashed and wont start anymore
Comment by Jarkko Torvinen (fernie) - Wednesday, 02 January 2019, 19:12 GMT
never mind, even an account can be created and accessed once, the next restart it will crash
Comment by Jarkko Torvinen (fernie) - Monday, 07 January 2019, 09:14 GMT
Ok, got it working, strace said:
openat(AT_FDCWD, "/usr/lib/libgconf-2.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

installed gconf
Comment by Rokas Kupstys (rokups) - Monday, 07 January 2019, 09:35 GMT
Looks like TB is plagued by many different crashes. In my case gconf was already installed yet it is still crashing.
Comment by Levente Polyak (anthraxx) - Monday, 07 January 2019, 20:05 GMT
@Rokas: can you run strace as well and see if you encounter something similar? for gconf i just gonna disable it most likely, it should use gsettings
Comment by Rokas Kupstys (rokups) - Tuesday, 08 January 2019, 07:58 GMT
I did, both back when i submitted issue and yesterday. It did not reveal anything obvious. Without actual debug build this is a guessing game. Any idea why PKGBUILD with "options=(!emptydirs !makeflags !strip debug)" would still produce package with stripped debugging symbols?
Comment by Rokas Kupstys (rokups) - Thursday, 21 February 2019, 08:15 GMT
I managed to compile debug build.

Assertion failure: !locale.IsEmpty(), at /home/rk/pkg/thunderbird/src/thunderbird-60.5.1/intl/locale/LocaleService.cpp:647

Starting with LC_ALL=en_US or LC_ALL=C makes no difference.
Comment by loqs (loqs) - Thursday, 21 February 2019, 13:39 GMT Comment by Rokas Kupstys (rokups) - Thursday, 21 February 2019, 16:17 GMT
They all report issue in debug build. Should probably not happen in arch packages. Makes me wonder why it is triggered then.
Comment by loqs (loqs) - Thursday, 21 February 2019, 16:32 GMT
Could be this is a different issue caused by your enabling debugging. If you comment out
MOZ_ASSERT(!locale.IsEmpty());
and rebuild what hapens then?
Comment by Rokas Kupstys (rokups) - Sunday, 03 March 2019, 09:49 GMT
Could be. Seems like there is a stream of failing asserts. Commenting one out another fails. Is there no way to make release build with debug info?
Comment by Mydayyy (Mydayyy) - Saturday, 13 April 2019, 15:49 GMT
I am running into the same issues with TB crashing as soon as I add an account. The issue did only arise recently (last 2 weeks).

I experimented a bit and observed the following things:

- I setup an arch installation inside a VM and TB worked
- I installed every package (+aur) from my host machine inside the VM and TB worked
- I created a new user on my host machine and started thunderbird on that new user (effectively resetting my home folder, so no configuration) and TB did NOT work

I don't know how to proceed, as I have no idea at all how to pinpoint the issue further.
Comment by Rokas Kupstys (rokups) - Wednesday, 08 May 2019, 08:19 GMT
So does anyone have any idea how to build unstripped package? I think i managed to go half-way because:

> ./src/thunderbird-60.6.1/obj-x86_64-pc-linux-gnu/toolkit/library/libxul.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=a0ae0c8ed2f0a46235df23f8b56be4afe73d7d35, with debug_info, not stripped

But final package still gets a stripped version. Once i know how to make unstripped package i can make a proper bug report upstream.
Comment by Rokas Kupstys (rokups) - Saturday, 11 May 2019, 07:21 GMT
Official thunderbird builds (https://download.mozilla.org/?product=thunderbird-60.6.1-SSL&os=linux64&lang=en-US) run without crashing. Something is amiss with archlinux package it seems.
Comment by Rokas Kupstys (rokups) - Monday, 03 June 2019, 07:20 GMT
Adding "ac_add_options --disable-elf-hack" fixes the crash.
Comment by Jan de Groot (JGC) - Thursday, 06 June 2019, 09:32 GMT
Your workaround is correct for this version of thunderbird.
https://bugzilla.mozilla.org/show_bug.cgi?id=1423822

We compile thunderbird and firefox with rust, which uses clang/llvm. This conflicts with elf-hack. This has been fixed in recent versions of firefox, but since thunderbird follows ESR-versions, this won't get fixed upstream until the next ESR version is out.
Comment by Rokas Kupstys (rokups) - Thursday, 06 June 2019, 10:58 GMT
Could we get "ac_add_options --disable-elf-hack" added to the package until it is fixed upstream?

Loading...