https://bugs.documentfoundation.org/show_bug.cgi?id=151990
Bug ID: 151990
Summary: Memory leak in file conversion
Product: LibreOffice
Version: 6.2.8.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Created attachment 183515
--> https://bugs.documentfoundation.org/attachment.cgi?id=183515&action=edit
Examples of file to reproduce leak and leak example
Running file conversion using libreoffice or just soffice executable in linux
quickly leak a lot of RAM and use all resources of single CPU thread.
This leak leaks around ~ 100 MB of RAM per second. CPU usage for single thread
is instantly high. File conversion never finishes.
PC:
Ubuntu 16.04.6 LTS
LibreOffice 6.2.8.2 20(Build:2)
To reproduce, run cmd (Conversion from DOCX -> DOC):
'libreoffice' '--convert-to' 'doc'
'/tmp/d-194ceec5-f443-48d9-9d1d-f825dc87d7f1/result/gened.docx' '--outdir'
'/tmp/d-194ceec5-f443-48d9-9d1d-f825dc87d7f1/result'
The cause:
Seems that when document in word/document.xml contains footnote and text in the
same <w:r> tags. To be more specific, this problem only occours when text tag
is longer than some limit (see attachments on leak.png and noleak.png)
There seems to be no leak when footnotes and text are seperated.
Microsoft Word seems to seperate footnotes from text elements.
What would be expected:
If docx has invalid formatting (if this leak is caused by invalid formatting),
then there could be 2 outcomes:
1. Process raises some error and exits
2. Libreoffice tries to fix formatting and then converts file
--
You are receiving this mail because:
You are the assignee for the bug.