Bug 248161 - editors/openoffice-devel: Crash (SIGABRT) on startup due to AmstelvarAlpha-VF font (x11-fonts/google-fonts)
Summary: editors/openoffice-devel: Crash (SIGABRT) on startup due to AmstelvarAlpha-VF...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-office (Nobody)
URL:
Keywords: crash, needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2020-07-22 03:00 UTC by Sean Farley
Modified: 2020-08-15 16:36 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (office)
koobs: maintainer-feedback? (dmgk)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Farley freebsd_committer 2020-07-22 03:00:25 UTC
I have been having trouble running openoffice-devel for awhile now and finally decided to examine what was causing it to crash with a SIGABRT (below).  After a long search for similar issues in OpenOffice, FontConfig and FreeBSD plus some code examination, it turns out that a specific font from the x11-fonts/google-fonts is the trigger:  AmstelvarAlpha-VF.ttf.  Just moving that font outside of /usr/local/share/fonts is enough to prevent the crash.

I am not sure if this is FreeBSD-only.

$ lldb /usr/local/openoffice-4.2.1589199787/openoffice4/program/soffice.bin
(lldb) target create "/usr/local/openoffice-4.2.1589199787/openoffice4/program/soffice.bin"
Current executable set to '/usr/local/openoffice-4.2.1589199787/openoffice4/program/soffice.bin' (x86_64).
(lldb) run
Process 84853 launching
Process 84853 launched: '/usr/local/openoffice-4.2.1589199787/openoffice4/program/soffice.bin' (x86_64)
Process 84853 stopped
* thread #1, name = 'soffice.bin', stop reason = signal SIGABRT
    frame #0: 0x00000008007e0caa libc.so.7`__sys_thr_kill at thr_kill.S:3
   1    #include "compat.h"
   2    #include "SYS.h"
-> 3    RSYSCALL(thr_kill)
   4            .section .note.GNU-stack,"",%progbits
(lldb) bt
* thread #1, name = 'soffice.bin', stop reason = signal SIGABRT
  * frame #0: 0x00000008007e0caa libc.so.7`__sys_thr_kill at thr_kill.S:3
    frame #1: 0x00000008007df114 libc.so.7`__raise(s=6) at raise.c:52:10
    frame #2: 0x00000008007553c9 libc.so.7`abort at abort.c:67:8
    frame #3: 0x00000008061b8c63 libfontconfig.so.1`___lldb_unnamed_symbol160$$libfontconfig.so.1 + 67
    frame #4: 0x00000008061b6ed2 libfontconfig.so.1`___lldb_unnamed_symbol151$$libfontconfig.so.1 + 258
    frame #5: 0x00000008061b8490 libfontconfig.so.1`___lldb_unnamed_symbol153$$libfontconfig.so.1 + 336
    frame #6: 0x00000008061b7326 libfontconfig.so.1`___lldb_unnamed_symbol152$$libfontconfig.so.1 + 406
    frame #7: 0x00000008061b7985 libfontconfig.so.1`FcFontMatch + 133
    frame #8: 0x0000000801fd6c5c libvcl.so`___lldb_unnamed_symbol224$$libvcl.so + 228
    frame #9: 0x0000000801fd6ced libvcl.so`___lldb_unnamed_symbol225$$libvcl.so + 33
    frame #10: 0x0000000801fd72e1 libvcl.so`psp::PrintFontManager::countFontconfigFonts(std::hash_map<rtl::OString, int, rtl::OStringHash, std::__1::equal_to<rtl::OString> >&) + 63
    frame #11: 0x0000000801fddaf3 libvcl.so`psp::PrintFontManager::initialize() + 573
    frame #12: 0x0000000801fdc7f9 libvcl.so`psp::PrintFontManager::get() + 55
    frame #13: 0x000000080564150d libvclplug_gtk.so`___lldb_unnamed_symbol443$$libvclplug_gtk.so + 2335
    frame #14: 0x00000008022121e5 libvcl.so`___lldb_unnamed_symbol5347$$libvcl.so + 131
    frame #15: 0x0000000802213ebd libvcl.so`___lldb_unnamed_symbol5353$$libvcl.so + 2805
    frame #16: 0x00000008021b1787 libvcl.so`___lldb_unnamed_symbol4342$$libvcl.so + 245
    frame #17: 0x00000008021b1933 libvcl.so`___lldb_unnamed_symbol4344$$libvcl.so + 69
    frame #18: 0x000000080222f4ed libvcl.so`___lldb_unnamed_symbol5556$$libvcl.so + 71
    frame #19: 0x000000080222f7fe libvcl.so`WorkWindow::WorkWindow(Window*, long) + 82
    frame #20: 0x0000000801c72fd9 libootk.so`___lldb_unnamed_symbol2126$$libootk.so + 3691
    frame #21: 0x0000000801c71bcb libootk.so`___lldb_unnamed_symbol2120$$libootk.so + 247
    frame #22: 0x0000000801c71ac2 libootk.so`___lldb_unnamed_symbol2119$$libootk.so + 16
    frame #23: 0x0000000801c71f0c libootk.so`___lldb_unnamed_symbol2121$$libootk.so + 18
    frame #24: 0x0000000803a9610c libfwk.so`___lldb_unnamed_symbol4769$$libfwk.so + 644
    frame #25: 0x0000000803a95a97 libfwk.so`___lldb_unnamed_symbol4766$$libfwk.so + 549
    frame #26: 0x0000000803a96ee2 libfwk.so`___lldb_unnamed_symbol4775$$libfwk.so + 18
    frame #27: 0x00000008039da639 libfwk.so`___lldb_unnamed_symbol777$$libfwk.so + 2011
    frame #28: 0x0000000803a6e278 libfwk.so`___lldb_unnamed_symbol3954$$libfwk.so + 674
    frame #29: 0x0000000803a6e6d8 libfwk.so`___lldb_unnamed_symbol3955$$libfwk.so + 18
    frame #30: 0x000000080047a6b1 libsofficeapp.so`___lldb_unnamed_symbol32$$libsofficeapp.so + 7585
    frame #31: 0x00000008020199af libvcl.so`___lldb_unnamed_symbol890$$libvcl.so + 70
    frame #32: 0x000000080201a4b7 libvcl.so`SVMain() + 31
    frame #33: 0x000000080049f4a8 libsofficeapp.so`soffice_main + 136
    frame #34: 0x0000000000202450 soffice.bin`main + 16
    frame #35: 0x0000000000202250 soffice.bin`_start + 256
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-07-22 03:33:07 UTC
^Triage: Request feedback from x11-fonts/google-fonts maintainer

If the google-fonts dependency is enabled by default, please change Severity to "Affects many people". If it is otherwise conditional, not by default, or depends on another variable/conditional, set to 'Affects Some People'
Comment 2 Don Lewis freebsd_committer 2020-07-23 01:39:14 UTC
The abort is happening in libfontconfig, cc: desktop@FreeBSD.org
Comment 3 Don Lewis freebsd_committer 2020-07-23 01:46:16 UTC
The only explicitly listed font dependencies listed are:
  x11-fonts/crosextrafonts-caladea-ttf
  ttf:x11-fonts/crosextrafonts-carlito-ttf
  x11-fonts/croscorefonts-fonts-ttf
fonts brought in by dependencies are:
  x11-fonts/dejavu
  x11-fonts/xorg-fonts-truetype
  x11-fonts/font-bh-ttf
  x11-fonts/font-misc-meltho
  x11-fonts/font-misc-ethiopic
Comment 4 Sean Farley freebsd_committer 2020-08-15 16:36:07 UTC
I confirm that x11-fonts/google-fonts is not installed by default.

After the update to google-fonts-0.0.0.20200729, the list of fonts from the package that crashes OpenOffice has expanded to the following:

AmstelvarAlpha-VF.ttf
Fraunces-Italic[SOFT,WONK,opsz,wght].ttf
Fraunces[SOFT,WONK,opsz,wght].ttf
Literata-Italic[opsz,wght].ttf
Literata[opsz,wght].ttf
Newsreader-Italic[opsz,wght].ttf
Newsreader[opsz,wght].ttf