Bug 97479 - cannot open files with brackets in title / LibreOffice 5.1-Fatal Error dialogue box with the text "basic_string::_M_create" (OpenCL)
Summary: cannot open files with brackets in title / LibreOffice 5.1-Fatal Error dialog...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, haveBacktrace, regression
Depends on:
Blocks:
 
Reported: 2016-02-01 12:05 UTC by Neil R
Modified: 2016-06-23 20:08 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
simple calc sheet with basic mathematical formulae (8.93 KB, application/vnd.oasis.opendocument.spreadsheet)
2016-03-10 14:58 UTC, Neil R
Details
GDB trace of the crash (17.08 KB, text/plain)
2016-03-10 20:06 UTC, Buovjaga
Details
File with bracket in name (7.95 KB, application/vnd.oasis.opendocument.text)
2016-03-10 20:54 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil R 2016-02-01 12:05:10 UTC
5.1.0.3 will not open any file with brackets (standard or square) in the title.

It shows the following error -

LibreOffice 5.1-Fatal Error dialogue box with the text "basic_string::_M_create"


Versions 5.0.3.2 and also 5.1.0.1 are able to open these files.

LibreOffice: downloaded from LibreOffice site
OS: debian testing
Comment 1 Neil R 2016-02-01 12:08:18 UTC
Forgot to mention - 
On clicking ok in the fatal error dialogue box, LibreOffice crashes and closes
Comment 2 Buovjaga 2016-02-10 12:22:19 UTC
Yep it crashes.

Ubuntu 15.10 64-bit 
Version: 5.2.0.0.alpha0+
Build ID: c43fdd74097cb12f69f86fd1217dd2f41ccae101
CPU Threads: 2; OS Version: Linux 4.2; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF-dbg, Branch:master, Time: 2016-01-25_23:43:01
Locale: en-US (en_US.UTF-8)
Comment 3 raal 2016-03-08 14:31:10 UTC
Please attach test file, I cannot reproduce. Thanks.
Comment 4 Neil R 2016-03-10 14:58:08 UTC
Created attachment 123465 [details]
simple calc sheet with basic mathematical formulae

Fatal error - basic_string::_M_create 

The problem is still the same but it has nothing to do with the filename.
Since my original posting, I have discovered that if any cell contains = and a basic mathematical operator (eg  +, -, *, /)-
=b2+c2
=b2-c2
=b2*c2
=b2/c2 
any of the above, causes the above fatal error to occur when opening a file using File | Open in LO v5.1.1.1. (& 5.1.0.3)
As soon as the cells with this basic formula is removed, the file will open correctly.
If I type b2/c2 into a cell - b2/c2 is displayed as the cell value (as you would expect) and the file opens correctly. 
If I place = in front (to make it a function/formula)  =b2/c2, and press enter, LOv5.1.1.1 hangs and I have to force quit LO.
In one of my spreadsheets, I also have the function =counta and this does not cause a problem, so I do not think there is a problem with the function operations (ie =). It appears to be associated with one of the basic mathematical operators.

I have the same setup (as close as possible using synaptic manager on each) on my PC and notebook. This problem only occurs with LOv5.1+ on my PC, yet LOv5.0.5.2 on my PC opens the test file correctly; on my notebook, the test file can be opened correctly using all versions of LO.
My OS is Debian testing. Debian has installed LOv5.0.5,2. I have installed LOv5.1.1.1 using the same deb packages on both machines. LO is using the latest java environment (1.8.0_72.internal)
Could my notebook have a package (not installed on my PC) that allows the mathematical operators in LOV5.1+ to function normally? if so, which one?

I would be very grateful for any advice on how to investigate this problem, why it is unique to my PC and possible solutions.
Can anyone advise what the fatal error message is referring to?

Many thanks in advance
Neil
Comment 5 raal 2016-03-10 19:48:49 UTC
OpenCL issue
Comment 6 Buovjaga 2016-03-10 20:04:19 UTC
Still crashing with bracket in file name

Version: 5.2.0.0.alpha0+
Build ID: 8fab3bf91331a4ac9e3b8f44a46f579dbf7aeafb
CPU Threads: 8; OS Version: Linux 4.4; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Comment 7 Buovjaga 2016-03-10 20:06:06 UTC
Created attachment 123477 [details]
GDB trace of the crash
Comment 8 Buovjaga 2016-03-10 20:54:14 UTC
Created attachment 123478 [details]
File with bracket in name
Comment 9 Caolán McNamara 2016-06-23 15:06:39 UTC
caolanm->Buovjaga: sounds like a fascinating crash. How are you opening the file, from the file dialog ? dragging the file from something to somewhere else ?

I can see from the bt that this is the kde4 vclplug
Comment 10 Buovjaga 2016-06-23 15:14:55 UTC
(In reply to Caolán McNamara from comment #9)
> caolanm->Buovjaga: sounds like a fascinating crash. How are you opening the
> file, from the file dialog ? dragging the file from something to somewhere
> else ?
> 
> I can see from the bt that this is the kde4 vclplug

Hmph.. now I can't get it to crash in any way, using either 5.1.3 or 5.3, gtk3 or kde4.

Note that I was first able to make it crash with Ubuntu 15.10 64-bit, so not KDE.
Now I also tested with Ubuntu 16.04, LibO 5.1.3 and it didn't crash.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: c13f60e7cd18df6b0ab70289f5b91ee01e4ae126
CPU Threads: 8; OS Version: Linux 4.6; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Built on June 18th 2016

64-bit, KDE Plasma 5
Build ID: 5.1.3.2 Arch Linux build-1
CPU Threads: 8; OS Version: Linux 4.5; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Comment 11 Buovjaga 2016-06-23 15:42:24 UTC
Neil: as I am now unable to reproduce the crash with any of the files attached to this report, I am asking you to retest with a newer release.

If it still crashes for you with your Calc sheet, you could try getting a backtrace: https://wiki.documentfoundation.org/QA/BugReport/Debug_Information

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 12 Neil R 2016-06-23 20:08:59 UTC
Buovjaga:

Just created a new spreadsheet with some cells containing the basic mathematic operators.

Using the latest release 5.1.4.2:
File | Open  test spreadsheet opened correctly without any problems

BUG resolved

Neil