FS#65248 - [sqlite] 3.31.0-1: Thunderbird 68.4.1-1 segfaults upon launch

Attached to Project: Arch Linux
Opened by Pascal Ernster (hardfalcon) - Thursday, 23 January 2020, 18:29 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 28 January 2020, 06:52 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Radke (AndyRTR)
Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 10
Private No

Details

After upgrading sqlite from 3.30.1-2 (core) to 3.31.0-1 (testing), Thunderbird 68.4.1-1 segfaults reproducibly upon launch. Downgrading sqlite to the version from core fixes the issue. Oddly enough, Firefox 72.0.2-1 starts/works flawlessly with both sqlite package versions.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 28 January 2020, 06:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.31.1-1
Comment by Andreas Radke (AndyRTR) - Thursday, 23 January 2020, 18:55 GMT
firefox-esr 68.4.2 works well here too. Please report this to the sqlite devs upstream and look out for a fix.
Comment by Jonas Witschel (diabonas) - Thursday, 23 January 2020, 18:59 GMT
I confirm the issue, there is also a thread on the sqlite-users mailing list: https://www.mail-archive.com/sqlite-users%40mailinglists.sqlite.org/msg118698.html There is no complete bisect yet, but at least a pointer to a Mozilla bug report that has some more information: https://bugzilla.mozilla.org/show_bug.cgi?id=1607902
Comment by John C. Allwein (johnnyapol) - Friday, 24 January 2020, 01:21 GMT
Experiencing this issue as well. Firefox Developer 73b08 (from firefox-developer-edition package) launches fine on both.
Comment by loqs (loqs) - Friday, 24 January 2020, 13:38 GMT
Firefox uses a bundled sqlite. Thunderbird could be switched to use the bundled sqlite temporarily.

https://hg.mozilla.org/try/rev/8d7104bac33729b4da67954b07fb08371df39bd8 possible fix for firefox could be adapted to thunderbird.
Comment by Robin Broda (coderobe) - Sunday, 26 January 2020, 16:18 GMT Comment by Pascal Ernster (hardfalcon) - Monday, 27 January 2020, 07:59 GMT
Since this seems to be a bug in Thunderbird rather than in SQLite, this bug should probably be reassigned to anthraxx.
Comment by John C. Allwein (johnnyapol) - Monday, 27 January 2020, 16:20 GMT
It looks like Thunderbird itself is not going to be patched (at least in the short term).

This commit was introduced in sqlite today to fix this.
https://github.com/sqlite/sqlite/commit/532b0d23fd80082a8706ec683b1c7afed26ee6c4

It looks like Debian is going the route of applying this commit ^ to sqllite rather than modifying thunderbird.

Comment by Pascal Ernster (hardfalcon) - Monday, 27 January 2020, 16:54 GMT
I've just tested an sqlite package built from fossil checkout 34ab760689fd493eda482e856047708d74e769a01cc90b69da456d79ffe39aea, and it solves the issue for me (tested with thunderbird 68.4.2-1).

The sqlite developer who has written/committed the above mentioned fix in sqlite's fossil tree has explicitly asked for feedback about whether his fix works, so he can push out a new sqlite release ASAP. Would be nice if more people could test this and provide him with feedback here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1607902#c21
Comment by Pascal Ernster (hardfalcon) - Monday, 27 January 2020, 17:29 GMT
Here's a PKGBUILD (based upon the PKGBUILD of the original sqlite 3.31.0-1 package from the testing repository) that can be used to build your own sqlite package with upstream's fix included.

Just make sure you have the "devtools" package installed, then put the PKGBUILD into an empty directory, cd into the directory and run "testing-x86_64-build -c" as normal user (you will be asked for your sudo password in the process). Building the sqlite package group took less than 5 minutes on my laptop, but this may slightly vary depending on your hardware.

Please give feedback as to whether the fix works for you or not:

https://bugzilla.mozilla.org/show_bug.cgi?id=1607902#c21
   PKGBUILD (3.7 KiB)
Comment by Jeb Rosen (jebrosen) - Monday, 27 January 2020, 18:08 GMT
Thunderbird does appear to work with sqlite built from the attached PKGBUILD - thanks for putting that together.
Comment by Andreas Radke (AndyRTR) - Monday, 27 January 2020, 20:19 GMT
Looks like sqlite 3.31.1 has already been tagged and should soon be out.
Comment by Magnus Boman (katt) - Monday, 27 January 2020, 21:08 GMT
With sqlite 3.31.1-1 thunderbird no longer segfaults on my end, cheers!
EDIT: I totally fucked up with the closure request and copied the wrong line, shame on me..

Loading...