CRUX

Welcome to CRUX bug tracking.
Tasklist

FS#1286 - LibreOffice (multiple versions) segfault (maybe related to recent harfbuzz update).

Attached to Project: CRUX
Opened by Predrag Ivanovic (pedja) - Tuesday, 12 January 2016, 23:42 GMT
Last edited by Fredrik Rinnestam (frinnst) - Wednesday, 23 March 2016, 09:32 GMT
Task Type Bug Report
Category ports → core/opt
Status Closed
Assigned To Fredrik Rinnestam (frinnst)
Operating System CRUX
Severity High
Priority Normal
Reported Version 3.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

It seems that recent harfbuzz update to 1.1.3 broke LibreOffice.
I tried LO 5.0.4, 4.4.7 and 5.1, and it happens with all of them.

gdb session(harfbuzz-1.1.3, libreoffice-5.0.4)
---
gdb /usr/lib/libreoffice/program/soffice.bin
GNU gdb (GDB) 7.9.1
<snip>
Reading symbols from /usr/lib/libreoffice/program/soffice.bin...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/lib/libreoffice/program/soffice.bin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7fffe09cb700 (LWP 12286)]
[New Thread 0x7fffe11cc700 (LWP 12285)]
[New Thread 0x7fffe3131700 (LWP 12283)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe4f89043 in ?? () from /usr/lib/libharfbuzz.so.0
(gdb) bt
#0 0x00007fffe4f89043 in ?? () from /usr/lib/libharfbuzz.so.0
#1 0x00007ffff6cf1294 in hb_font_funcs_set_glyph_v_origin_func () from /usr/lib/libreoffice/program/libmergedlo.so
#2 0x00007fffe4f896bf in ?? () from /usr/lib/libharfbuzz.so.0
#3 0x00007fffe4f8991f in hb_ft_font_create () from /usr/lib/libharfbuzz.so.0
#4 0x00007fffeefa5683 in ?? () from /usr/lib/libfreetype.so.6
#5 0x00007fffeefa5eff in ?? () from /usr/lib/libfreetype.so.6
#6 0x00007fffeef5fb5d in FT_Load_Glyph () from /usr/lib/libfreetype.so.6
#7 0x00007ffff62d41fa in ServerFont::InitGlyphData(unsigned int, GlyphData&) const () from /usr/lib/libreoffice/program/libmergedlo.so
#8 0x00007ffff62db307 in ServerFont::GetGlyphData(unsigned int) () from /usr/lib/libreoffice/program/libmergedlo.so
#9 0x00007ffff62d84fe in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#10 0x00007ffff6d0df6d in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#11 0x00007ffff6cf3be6 in hb_shape_plan_execute () from /usr/lib/libreoffice/program/libmergedlo.so
#12 0x00007ffff6cf3364 in hb_shape_full () from /usr/lib/libreoffice/program/libmergedlo.so
#13 0x00007ffff62d91b3 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#14 0x00007ffff60fa77f in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#15 0x00007ffff60faa71 in OutputDevice::GetTextArray(rtl::OUString const&, long*, int, int, vcl::TextLayoutCache const*) const () from /usr/lib/libreoffice/program/libmergedlo.so
#16 0x00007ffff60fac2c in OutputDevice::approximate_char_width() const () from /usr/lib/libreoffice/program/libmergedlo.so
#17 0x00007ffff604a2f2 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#18 0x00007ffff6053000 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#19 0x00007ffff5fa7beb in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#20 0x00007ffff5fa7d9b in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#21 0x00007ffff605e288 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#22 0x00007ffff605e73b in WorkWindow::WorkWindow(vcl::Window*, long) () from /usr/lib/libreoffice/program/libmergedlo.so
#23 0x00007ffff5c6feda in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#24 0x00007ffff5c71a6c in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#25 0x00007ffff5c721cb in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#26 0x00007ffff4d21451 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#27 0x00007ffff4c46690 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#28 0x00007ffff4cef205 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#29 0x00007ffff5353a93 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#30 0x00007ffff535e081 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#31 0x00007ffff6250ac9 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#32 0x00007ffff6250b12 in SVMain() () from /usr/lib/libreoffice/program/libmergedlo.so
#33 0x00007ffff537c5e2 in soffice_main () from /usr/lib/libreoffice/program/libmergedlo.so
#34 0x000000000040075b in ?? ()
#35 0x00007ffff31675e0 in __libc_start_main () from /lib/libc.so.6
#36 0x0000000000400791 in ?? ()
#37 0x00007fffffffc9d8 in ?? ()
#38 0x000000000000001c in ?? ()
#39 0x0000000000000001 in ?? ()
#40 0x00007fffffffccea in ?? ()
#41 0x0000000000000000 in ?? ()
---
And from dmesg output
---
<snip>
soffice.bin[6200]: segfault at 8c ip 00007f088c168043 sp 00007ffdd8accd58 error 4 in libharfbuzz.so.0.10103.0[7f088c125000+60000]
[22711.447292] soffice.bin[6224]: segfault at 8c ip 00007fa9afb23043 sp 00007ffcefcce9c8 error 4 in libharfbuzz.so.0.10103.0[7fa9afae0000+60000]
[22772.348550] soffice.bin[6458]: segfault at 8c ip 00007ff000286043 sp 00007ffc517519e8 error 4 in libharfbuzz.so.0.10103.0[7ff000243000+60000]
[22931.091918] soffice.bin[6600]: segfault at 8c ip 00007fa24b112043 sp 00007ffc89ddbf38 error 4 in libharfbuzz.so.0.10103.0[7fa24b0cf000+60000]
[22972.846983] soffice.bin[6653]: segfault at 8c ip 00007ff3a4ec5043 sp 00007ffd6b5e95b8 error 4 in libharfbuzz.so.0.10103.0[7ff3a4e82000+60000]
[22976.999657] soffice.bin[6676]: segfault at 8c ip 00007fa86ce66043 sp 00007ffefc9d01f8 error 4 in libharfbuzz.so.0.10103.0[7fa86ce23000+60000]
[22990.680712] soffice.bin[6712]: segfault at 8c ip 00007fb57d5bd043 sp 00007ffd4b8dc5f8 error 4 in libharfbuzz.so.0.10103.0[7fb57d57a000+60000]
---
I've downgraded harfbuzz to 1.1.2, and now LibreOffice works fine.
This task depends upon

Closed by  Fredrik Rinnestam (frinnst)
Wednesday, 23 March 2016, 09:32 GMT
Reason for closing:  Implemented
Comment by Fredrik Rinnestam (frinnst) - Wednesday, 13 January 2016, 07:05 GMT
I'll try to get a test environment for this usercase up and running. IIRC the harfbuzz changelog was not very interesting for 1.1.3
Comment by Fredrik Rinnestam (frinnst) - Wednesday, 13 January 2016, 10:51 GMT
The harfbuzz update has now been reverted

Loading...