Bug 108851 - Libre Office Calc allocates memory endlessly after copy-and-paste of formula definition
Summary: Libre Office Calc allocates memory endlessly after copy-and-paste of formula ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste Cell-Formula
  Show dependency treegraph
 
Reported: 2017-06-29 10:09 UTC by Gael Lorieul
Modified: 2017-11-13 18:08 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gael Lorieul 2017-06-29 10:09:25 UTC
Description:
In libre office calc, under certain conditions (see "steps to reproduce section"), editing a formula and copy-pasting a part of its definition causes LibreOffice to freeze but also (more troublesome) endless allocation of memory until no free RAM remains and the OS as a whole freezes.

Tested on linux mint 18.1 Serena, with the default & up-to-date LibreOffice version of this distribution.


Steps to Reproduce:
1. Open libreoffice calc

2. Insert formula (Insert > Object > Formula)

3. Copy-paste the following formula:

{1}over{h^3}
left[
matrix{ c_1 # c_4 # 0 # -c_4 # -c_1 ##
        c_2 # c_5 # 0 # -c_5 # -c_2 ##
        c_3 # c_6 # 0 # -c_6 # -c_3 } 
right]

4. place your cursor before "c_1" i.e. "matrix{ |c_1" where "|" represents cursor
5. press shift + downArrow : you are selecting a line
6. Ctrl + C : you are copying this line
7. Place cursor before closing brace i.e. "-c_3 |}" where "|" represents cursor
8. Hit Ctrl + V




Actual Results:  
At that point LO freezes. I have the "System monitor" applet for Mate and I can see the used RAM value increasing linearly in time until there is no more free RAM and the OS as a whole freezes.

Expected Results:
Simple paste, with LO not freezing and not allocating crazy amounts of memory.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Comment 1 Gael Lorieul 2017-06-29 10:12:12 UTC
Linux mint package version : 5.1.6~rc2-0ubuntu1~xenial2
Comment 2 Xisco Faulí 2017-06-29 10:15:37 UTC Comment hidden (obsolete)
Comment 3 Gael Lorieul 2017-06-29 10:24:49 UTC Comment hidden (obsolete)
Comment 4 Gael Lorieul 2017-06-29 18:52:09 UTC
Tried with LO 5.3.4.2 (Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3)
on Linux Ubuntu 14.04.5 LTS (trusty)

The bug did not occur…

Still, how do I get the Linux Mint default LO version to get fixed?
Comment 5 Xisco Faulí 2017-11-13 18:08:53 UTC
(In reply to Gael Lorieul from comment #4)
> Tried with LO 5.3.4.2 (Build ID: f82d347ccc0be322489bf7da61d7e4ad13fe2ff3)
> on Linux Ubuntu 14.04.5 LTS (trusty)
> 
> The bug did not occur…
> 
> Still, how do I get the Linux Mint default LO version to get fixed?

Closing as RESOLVED WORKSFORME then