FS#53448 - [libreoffice-fresh] Headless conversion fails on 4.10.5-1 but works on 4.9.15-1-lts

Attached to Project: Arch Linux
Opened by Richard PALO (risto3) - Saturday, 25 March 2017, 07:11 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 20 May 2017, 19:30 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Andreas Radke (AndyRTR)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I'm seeing the following on current with banal .odt:
richard@sarchx64:/home/richard$ soffice --headless --convert-to pdf foo.odt
convert /home/richard/foo.odt -> /home/richard/foo.pdf using filter : writer_pdf_Export
*** Error in `/usr/lib/libreoffice/program/soffice.bin': free(): invalid pointer: 0x0000000002397878 ***

(full strace output is appended, and 13M core dump is available upon request )

but it works without error on an nearly identical machine running 4.9.15-1-lts

NB: the full command originally used was 'soffice --headless --nolockcheck --nodefault --norestore --convert-to pdf foo.odt' but I shortened it to ensure it wasn't one of the options causing the issue.

Additional info:
* package version(s)
* config and/or log files etc.

richard@sarchx64:/home/richard$ uname -a
Linux sarchx64 4.10.5-1-ARCH #1 SMP PREEMPT Wed Mar 22 14:42:03 CET 2017 x86_64 GNU/Linux
richard@sarchx64:/home/richard$ paclog-pkglist |grep office
libreoffice-fresh 5.3.1-1
libreoffice-fresh-fr 5.3.1-1



Steps to reproduce:

create a simple .odt, for example 'Hello world'
and run 'soffice --headless --convert-to pdf <filename.odt>'

BTW I notice the command succeeds if I execute the command to convert as root:
richard@sarchx64:/home/richard$ sudo soffice --headless --convert-to pdf foo.odt
convert /home/richard/foo.odt -> /home/richard/foo.pdf using filter : writer_pdf_Export

I can now open the pdf with, for example, evince.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 20 May 2017, 19:30 GMT
Reason for closing:  Fixed
Comment by Richard PALO (risto3) - Tuesday, 28 March 2017, 11:59 GMT
Any particular reason the priority is reduced? This blocks invoice generation in our accounting system.
I guess we consider that to be rather high priority as this does [yet] seem to have a viable workaround.
Comment by Andreas Radke (AndyRTR) - Tuesday, 28 March 2017, 12:40 GMT
Please confirm if this is an issue with the kernel or with the libreoffice version. Try the LibO-still version and maybe the upstream rpm prebuilt one from AUR.
Comment by Richard PALO (risto3) - Tuesday, 28 March 2017, 12:45 GMT
As indicated, this seems to work okay (identical version of libreoffice)
on 4.9.15-1-lts x86_64.

To me that would seem to indicate something regressing in the kernel
(the need for root access hints at that as well)

Is there perhaps a page protection issue that came up? are the compiler
and environment settings identical between LTS and current kernel builds?

cheers,
Comment by Andreas Radke (AndyRTR) - Tuesday, 28 March 2017, 13:33 GMT
andyrtr@workstation64:/home/andyrtr $ dmesg | grep gcc
[ 0.000000] Linux version 4.9.18-1-lts (builduser@andyrtr) (gcc version 6.3.1 20170306 (GCC) ) #1 SMP Sun Mar 26 14:21:00 CEST 2017

andyrtr@workstation64:/home/andyrtr $ LANG=C pacman -Qi linux linux-lts | grep Build
Build Date : Wed Mar 22 14:43:41 2017 (not the most recent one)
Build Date : Sun Mar 26 14:22:52 2017

You can confirm the stock kernel tool chain. Usually both are build around the same time within clean chroots and _should_ be built using the same toolchain.
Please try an older stock kernel from your local package cache or the Arch rollback machine if this is a regression in the stock kernel.

Adding the stock kernel maintainer here.
Comment by Richard PALO (risto3) - Tuesday, 28 March 2017, 13:43 GMT
Well, I won't be able to get to this then before around the 15th april
(payroll time) as I can't risk downtime prior to that being done.

BTW, is this bug is not reproducible?
in case it helps, I'm on a supermicro H8SGL with a
12-core AMD 6300 and 32G, latest firmware.
Comment by Richard PALO (risto3) - Saturday, 15 April 2017, 05:37 GMT
Just to advance a bit, I filed https://bugs.documentfoundation.org/show_bug.cgi?id=107175 as
I confirm that libreoffice-still-fr works, so it appears to be somewhat a combination LO 5.3/Linux 4.10.x issue.

Just tried all again with 4.10.9-1-ARCH which fails with LO 5.3.2-1 whereas 4.9.21-1-lts still works.
LO 5.2 works on both, so I'm running libreoffice-still for the time being.

Unfortunately I'm not going to be able to get a kernel build environment up probably for quite awhile
yet given my agenda. Sorry.
Comment by Richard PALO (risto3) - Friday, 19 May 2017, 07:07 GMT
As indicated in the LO issue, just tried again on recent Linux sarchx64 4.10.13-1-ARCH
with LibreOffice 5.3.3.2 30m0(Build:2) and I confirm I no longer see the issue.

Since it is now fixed in either the OS or LO, this can be marked as resolved.

Loading...