Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1645905

Summary: Libreoffice Calc crashing with certain ods spreadsheet files
Product: [Fedora] Fedora Reporter: Leonardo Garcia <lagarcia>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 29CC: caolanm, dtardon, erack, lagarcia, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libreoffice-6.1.2.1-3.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-14 03:12:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File that reproduces the issue when opened by LibreOffice Calc none

Description Leonardo Garcia 2018-11-04 19:39:13 UTC
Description of problem:

I have some ODS spreadsheet files I work with for a long time (probably since Fedora 24). I just updated to Fedora 29 and Libreoffice crashes when opening them.

If I execute ooffice from command line, this is the error I capture:

[laggarcia@lagarcia ~]$ ooffice 
Display all 122 possibilities? (y or n)
[laggarcia@lagarcia ~]$ ooffice 


Fatal exception: Signal 11
Stack:


Fatal exception: Signal 11
Stack:
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x3f1d3)[0x7f49dde211d3]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x3f3e3)[0x7f49dde213e3]
/lib64/libc.so.6(+0x385c0)[0x7f49ddb675c0]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x3f1d3)[0x7f49dde211d3]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x81002a)[0x7f49a2fee02a]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x3f3e3)[0x7f49dde213e3]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x81fa89)[0x7f49a2ffda89]
/lib64/libc.so.6(+0x385c0)[0x7f49ddb675c0]
/usr/lib64/libreoffice/program/../program/libsclo.so(_ZN13ScFormulaCell13InterpretTailER20ScInterpreterContextNS_24ScInterpretTailParameterE+0x1b0)[0x7f49a2ea9dd0]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x81002a)[0x7f49a2fee02a]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x5a6db5)[0x7f49a2d84db5]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x81fa89)[0x7f49a2ffda89]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x61c5d6)[0x7f49a2dfa5d6]
/usr/lib64/libreoffice/program/../program/libsclo.so(_ZN13ScFormulaCell13InterpretTailER20ScInterpreterContextNS_24ScInterpretTailParameterE+0x1b0)[0x7f49a2ea9dd0]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x6c3ce9)[0x7f49a2ea1ce9]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x5a6db5)[0x7f49a2d84db5]
/usr/lib64/libreoffice/program/libcomphelper.so(_ZN10comphelper10ThreadTask13execAndDeleteEv+0x2f)[0x7f49dceb58bf]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x61c5d6)[0x7f49a2dfa5d6]
/usr/lib64/libreoffice/program/libcomphelper.so(+0x10729f)[0x7f49dceb629f]
/usr/lib64/libreoffice/program/../program/libsclo.so(+0x6c3ce9)[0x7f49a2ea1ce9]
/usr/lib64/libreoffice/program/libuno_salhelpergcc3.so.3(_ZN9salhelper6Thread3runEv+0x1a)[0x7f49dc99bd6a]
/usr/lib64/libreoffice/program/libcomphelper.so(_ZN10comphelper10ThreadTask13execAndDeleteEv+0x2f/usr/lib64/libreoffice/program/libuno_salhelpergcc3.so.3)(+0x4f2e[0x)[0x7f49dceb58bf7f49dc99bf2e]
]
/usr/lib64/libreoffice/program/libcomphelper.so(+0x10729f)[0x7f49dceb629f]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x42028)[0x7f49dde24028/usr/lib64/libreoffice/program/libuno_salhelpergcc3.so.3]
(_ZN9salhelper6Thread3runEv+0x1a)/lib64/libpthread.so.0([0x+0x858e)7f49dc99bd6a[0x]
7f49ddb1658e]
/usr/lib64/libreoffice/program/libuno_salhelpergcc3.so.3(+0x4f2e)[0x7f49dc99bf2e]
/lib64/libc.so.6(clone+0x43)[0x7f49ddc2c513]
/usr/lib64/libreoffice/program/libuno_sal.so.3(+0x42028)[0x7f49dde24028]
/lib64/libpthread.so.0(+0x858e)[0x7f49ddb1658e]
/lib64/libc.so.6

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

libreoffice-calc-6.1.2.1-2.fc29.x86_64

How reproducible:

100%

Steps to Reproduce:

Just open a problematic file. I am trying to make a minimum file that can reproduce the issue, but I am not able yet.

Actual results:

Libreoffice crashes.

Expected results:

Libreoffice should open the file without issues.

Comment 1 Leonardo Garcia 2018-11-04 19:41:08 UTC
Ok, After many tries, I was able to open the file without a crash. This is probably reproducing 80% of the times.

Comment 2 Caolan McNamara 2018-11-05 09:07:35 UTC
can you attach, or send me privately, something that reproduces this. From the bt it could be any problem really, maybe even oom

Comment 3 Leonardo Garcia 2018-11-07 02:17:14 UTC
I tested this further and I think you are right, Caolan. I can reproduce the issue in two scenarios: when trying to open specific files, or while running LibreOffice in order to create a new file with the same format of the file that causes the issue if I extend the formula to 1k+ rows. Anyway, I am going to attach a test file that reproduces the issue when I try to open it.

Comment 4 Leonardo Garcia 2018-11-07 02:19:28 UTC
Created attachment 1502799 [details]
File that reproduces the issue when opened by LibreOffice Calc

Comment 5 Caolan McNamara 2018-11-07 09:24:27 UTC
does, in a terminal, ...

export SC_NO_THREADED_CALCULATION=1
libreoffice test.ods

make it load without oom for you ?

Comment 6 Leonardo Garcia 2018-11-08 01:17:20 UTC
(In reply to Caolan McNamara from comment #5)
> does, in a terminal, ...
> 
> export SC_NO_THREADED_CALCULATION=1
> libreoffice test.ods
> 
> make it load without oom for you ?

Yes! That workaround works like a charm. Thanks.

Comment 7 Caolan McNamara 2018-11-09 12:10:25 UTC
llunak was good enough to have a look at this for me https://gerrit.libreoffice.org/#/c/63187/

Comment 8 Fedora Update System 2018-11-12 12:23:23 UTC
libreoffice-6.1.2.1-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-73b32a9164

Comment 9 Fedora Update System 2018-11-13 04:48:47 UTC
libreoffice-6.1.2.1-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-73b32a9164

Comment 10 Fedora Update System 2018-11-14 03:12:17 UTC
libreoffice-6.1.2.1-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.