RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1824876 - LibreOffice segfaults on Writer/Calc file open without libwps installed
Summary: LibreOffice segfaults on Writer/Calc file open without libwps installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libreoffice
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: 8.0
Assignee: Caolan McNamara
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-16 15:27 UTC by Andrew Mike
Modified: 2023-12-15 17:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:30:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5207241 0 None None None 2020-07-06 19:47:49 UTC
Red Hat Product Errata RHSA-2020:4628 0 None None None 2020-11-04 02:30:57 UTC

Description Andrew Mike 2020-04-16 15:27:36 UTC
Description of problem: If libwps is not installed on the system, when opening Writer or Calc files program will segfault instead of exiting gracefully.


Version-Release number of selected component (if applicable):
6.0.6.1-19

How reproducible: Consistently.


Steps to Reproduce:
1. Install libreoffice-core, libreoffic-calc, and libreoffice-writer packages.
2. Open Writer, save a blank ODT file as blank.odt, and close Writer.
3. Perform Step 1 with Calc and an ODS file, named blank.ods.
4. Remove the libwps package. This will remove the libreoffice-calc and libreoffice-writer packages.
5. Run "soffice blank.ods".

Actual results:

Libreoffice program segfaults with the following stack:

Fatal exception: Signal 11
Stack:
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x3d9f3)[0x7f775824c9f3]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x3dc03)[0x7f775824cc03]
/lib64/libc.so.6(+0x37960)[0x7f7757bca960]
/usr/lib64/libreoffice/program/libvcllo.so(_ZNK12OutputDevice12LogicToPixelERK4SizeRK7MapMode+0x68)[0x7f774f5d5f68]
/usr/lib64/libreoffice/program/../program/libuuilo.so(+0x4d95c)[0x7f77188bd95c]
/usr/lib64/libreoffice/program/../program/libuuilo.so(+0x63791)[0x7f77188d3791]
/usr/lib64/libreoffice/program/../program/libuuilo.so(+0x57fd7)[0x7f77188c7fd7]
/usr/lib64/libreoffice/program/../program/libuuilo.so(+0x588c5)[0x7f77188c88c5]
/usr/lib64/libreoffice/program/../program/libuuilo.so(+0x6b308)[0x7f77188db308]
/usr/lib64/libreoffice/program/../program/libfilterconfiglo.so(+0x40917)[0x7f7718655917]
/usr/lib64/libreoffice/program/../program/libfilterconfiglo.so(+0x4381f)[0x7f771865881f]
/usr/lib64/libreoffice/program/../program/libfwklo.so(+0x13ce09)[0x7f771af64e09]
/usr/lib64/libreoffice/program/../program/libfwklo.so(+0x140c10)[0x7f771af68c10]
/usr/lib64/libreoffice/program/../program/libfwklo.so(+0xd8ab1)[0x7f771af00ab1]
/usr/lib64/libreoffice/program/../program/libfwklo.so(+0xd971c)[0x7f771af0171c]
/usr/lib64/libreoffice/program/libcomphelper.so(_ZN10comphelper19SynchronousDispatch8dispatchERKN3com3sun4star3uno9ReferenceINS4_10XInterfaceEEERKN3rtl8OUStringESD_iRKNS4_8SequenceINS3_5beans13PropertyValueEEE+0x51f)[0x7f77547e0a7f]
/usr/lib64/libreoffice/program/libsofficeapp.so(+0x468f8)[0x7f7757f9c8f8]
/usr/lib64/libreoffice/program/libsofficeapp.so(+0x50eeb)[0x7f7757fa6eeb]
/usr/lib64/libreoffice/program/libsofficeapp.so(+0x2d963)[0x7f7757f83963]
/usr/lib64/libreoffice/program/libsofficeapp.so(+0x2ec1e)[0x7f7757f84c1e]
/usr/lib64/libreoffice/program/libvcllo.so(+0x337e08)[0x7f774f514e08]
/usr/lib64/libreoffice/program/libvcllo.so(_ZN16SalUserEventList18DispatchUserEventsEb+0x18c)[0x7f774f70b87c]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0x4993d)[0x7f772fb4993d]
/lib64/libglib-2.0.so.0(+0x49fbb)[0x7f7755b1efbb]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x15d)[0x7f7755b2267d]
/lib64/libglib-2.0.so.0(+0x4da48)[0x7f7755b22a48]
/lib64/libglib-2.0.so.0(g_main_context_iteration+0x30)[0x7f7755b22ae0]
/usr/lib64/libreoffice/program/libvclplug_gtk3lo.so(+0x4ac43)[0x7f772fb4ac43]
/usr/lib64/libreoffice/program/libvcllo.so(_ZN11Application5YieldEv+0x32)[0x7f774f71c372]
/usr/lib64/libreoffice/program/libvcllo.so(_ZN11Application7ExecuteEv+0x45)[0x7f774f71dbf5]
/usr/lib64/libreoffice/program/libsofficeapp.so(+0x30059)[0x7f7757f86059]
/usr/lib64/libreoffice/program/libvcllo.so(+0x545e8a)[0x7f774f722e8a]
/usr/lib64/libreoffice/program/libvcllo.so(_Z6SVMainv+0x34)[0x7f774f722fa4]
/usr/lib64/libreoffice/program/libsofficeapp.so(soffice_main+0x95)[0x7f7757faecb5]
/usr/lib64/libreoffice/program/soffice.bin(+0x7ff)[0x562cbccc87ff]
/lib64/libc.so.6(__libc_start_main+0xf3)[0x7f7757bb6873]
/usr/lib64/libreoffice/program/soffice.bin(+0x83e)[0x562cbccc883e]


Expected results:
Libreoffice starts, displays an I/O error dialog, and exits gracefully, as would be the case for attempting to open an ODS file when libreoffice-calc was not installed.

Additional info:
- This also happens with Writer, but not with Impress. Base and other LibreOffice apps were not tested.
- The workaround is to make sure libwps (or the corresponding LibreOffice app) is installed.

Comment 1 Caolan McNamara 2020-04-16 15:51:30 UTC
sounds like make-work problem rather than a realistic situation

Comment 2 Caolan McNamara 2020-04-21 12:02:21 UTC
In the proposed rebase candidate 6.3.5.2 (https://errata.devel.redhat.com/advisory/53043) I get a dialog prompting to pick the file format and no crash, if I'm doing it right. Not sure this is something that actually got explicitly fixed between 6.0 and 6.3.

Comment 5 Bill Sanford 2020-05-20 17:09:32 UTC
This now presents a menu to associate the file with and does not segfault.

If you cancel, it does exit gracefully.

Comment 6 Bill Sanford 2020-05-20 17:11:12 UTC
As a follow up, I did an install of the libwps package and it works as expected.

Comment 9 errata-xmlrpc 2020-11-04 02:30:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: libreoffice security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4628


Note You need to log in before you can comment on or make changes to this bug.