LibreOffice shows crashes on clearing the FontListData, unfortunately there is no good reproduction scenario yet, but this issue ranks high on http://errors.ubuntu.com and also happens on Fedora. Errors.ubuntu.com reports this stacktrace to first appear on version 4.0.2.
A stacktrace (which has been reported multiple times) can be found on the Launchpad bug.
While the description of the reports by users do provide no conclusive reproduction scenario, there are:
- two report of "crash on close"
- one report of "crash while installing a font"
- one report of "crash while upgrading"
The latter two might actually be the same as upgrades might install new fonts.
confirmed by multiple Ubuntu reports and a Fedora report.
Created attachment 98899 [details]
stacktrace with resolved symbols
Looking at the errors.ubuntu.com stats of today (14.04 LTS is out relatively new still) - it seems that _all_ todays reports are from the 14.04 distro, while the bug was first seen on 4.0.2. This might suggest that this is indeed an issue of users keeping libreoffice running during an distro upgrade (with fonts and lots of other things changing below their feet).
fixed some time ago by https://gerrit.libreoffice.org/gitweb?p=core.git;a=commit;h=6b127d40c7d57745bc602d9ff7914392f9d3b92b
*** Bug 78836 has been marked as a duplicate of this bug. ***
Well libreoffice 4.2.5 just crashed for me on Linux Mint 13 (ubuntu 12.04) after i copied some files to my ~/.fonts folder and ran 'fc-cache -fv' to refresh the cache.
Oops... That is because the fix has never made it to 4.2... Pushed for review now.
Weird that it wasnt every put into 4.2 as Bjorn asked me to test it so that 4.2.4 could arrive in ubuntu 14.04's repo.
Which i replied: while having writer open, it didnt crash when i did a software update including the installation/upgrade of various font related packages (libfontconfig1, fontconfig, libxfont1, fontconfig-config, fonts-opensysmbol).
(In reply to comment #8)
> Weird that it wasnt every put into 4.2 as Bjorn asked me to test it so that
> 4.2.4 could arrive in ubuntu 14.04's repo.
Yes, because this is patches in 4.2.4 on Ubuntu 14.04 with a vendor backport, so I wonder what exact bug you are seeing here as it cant really be the one fixed by this patch. So you likely found a different issue.
Note that the Ubuntu error tracker confirms this as there where >2750 crash reports for lp#1219245 and >560 crash reports for lp#1219732 on on libreoffice version 1:4.2.3~rc3-0ubuntu2 each, but none on 1:4.2.4-0ubuntu3.
If anything, this confirms Davids patch is good. ;)
@David: If you put that patch on gerrit, can you CC me for rubberstamping?
David Tardon committed a patch related to this issue.
It has been pushed to "libreoffice-4-2":
fdo#78598 avoid use of invalidated pointers
It will be available in LibreOffice 4.2.7.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.