Bug 84841

Summary: FILEOPEN Segfault when opening xlsx with pivot table
Product: LibreOffice Reporter: Jacob Godserv <jacobgodserv>
Component: SpreadsheetAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: erack, libreoffice, markus.mohrhard, serval2412
Version: 4.3.1.2 releaseKeywords: have-backtrace
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: gdb trace w/o symbols
backtrace cut from master

Description Jacob Godserv 2014-10-09 14:05:02 UTC
LibreOffice shows the loading progress bar along the bottom of the screen, and right before the spreadsheet shows, the main window closes and the whole app crashes with a segfault and exits with status 139.

Unfortunately, the document that causes the failure contains sensitive information, and soffice.bin hangs before even showing splash art when run under gdb.
Comment 1 Julien Nabet 2014-10-09 19:12:33 UTC
Jacob: which Linux distrib do you use?
Could you give a try to retrieve a bt by following this link https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace ?
Comment 2 Jacob Godserv 2014-11-10 22:56:14 UTC
Funtoo Linux.

I have tried, but gdb locks up when LibreOffice crashes. Not sure why yet.
Comment 3 Jacob Godserv 2014-11-10 23:06:32 UTC
Created attachment 109251 [details]
gdb trace w/o symbols

Hey, it worked this time. I don't have debug symbols yet. I'll get that set up and try again tomorrow.
Comment 4 Julien Nabet 2014-11-11 09:33:34 UTC
Thank you Jacob for your feedback.

For devs:
It seems the crash is triggered here:
http://opengrok.libreoffice.org/xref/core/sc/source/core/data/conditio.cxx#2065
maRanges seems to be empty so when doing maRanges[0], it crashes.

The next question is: may maRanges be empty?


Jacob:
On which env are you? (Windows, MacOs, Linux)
Just for the test, could you give a try to last stable LO version 4.3.3 or master daily build, see http://dev-builds.libreoffice.org/daily/master/ ?
Comment 5 Jacob Godserv 2014-11-11 15:24:21 UTC
I am on Funtoo Linux. Should I try building from the git source?
Comment 6 Julien Nabet 2014-11-11 17:52:20 UTC
Jacob: yes it could be useful since you can't attach your file.
A good start here:
https://wiki.documentfoundation.org/Development/BuildingOnLinux
You should try to build master sources.

Before all this, you must know that you may encounter some problem, see https://bugs.freedesktop.org/show_bug.cgi?id=85214
Comment 7 Jacob Godserv 2014-11-12 15:21:31 UTC
Created attachment 109352 [details]
backtrace cut from master

I was able to build master. Here's the new and improved trace.
Comment 8 Julien Nabet 2014-11-13 07:28:56 UTC
Thank you Jacob for this interesting bt!

Jacob: would it be possible you "sanitize" (see https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission) and then attach the file?
Comment 9 Jacob Godserv 2014-11-13 15:18:07 UTC
I can look into it but I do not think that would be possible. The document contains an extensive amount of private information.
Comment 10 Julien Nabet 2014-11-13 15:25:21 UTC
Jacob: ok then. I put it at NEW since I don't have more questions and there's a backtrace.

Kohei/Markus/Eike: one for you? I must recognize I don't know if it's normal or not that maRanges (see comment 4) is empty.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.