Bug 126075 - [Wayland] libreoffice crashes: Invalid Pointer
Summary: [Wayland] libreoffice crashes: Invalid Pointer
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-25 05:42 UTC by Knuth Posern
Modified: 2019-06-30 08:24 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
output of 'strace libreoffice' (82.95 KB, text/plain)
2019-06-25 05:43 UTC, Knuth Posern
Details
output of 'env' (3.17 KB, text/plain)
2019-06-25 05:43 UTC, Knuth Posern
Details
journalctl during the crash (270 bytes, text/x-log)
2019-06-25 05:44 UTC, Knuth Posern
Details
output of 'soffice --valgrind' (42.35 KB, text/x-log)
2019-06-25 11:47 UTC, Knuth Posern
Details
output of 'VALGRIND=callgrind /usr/lib/libreoffice/program/soffice' (1.78 KB, text/plain)
2019-06-25 11:48 UTC, Knuth Posern
Details
callgrind.out.xxxx created by 'VALGRIND=callgrind /usr/lib/libreoffice/program/soffice' (1.08 MB, application/gzip)
2019-06-25 11:50 UTC, Knuth Posern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Knuth Posern 2019-06-25 05:42:17 UTC
Archlinux. Kernel 5.1.8.

extra/libreoffice-fresh 6.2.4-1 [installed]
extra/libreoffice-fresh-de 6.2.4-1 [installed]
extra/libreoffice-fresh-en-gb 6.2.4-1 [installed]
extra/libreoffice-fresh-fr 6.2.4-1 [installed]
community/libreoffice-extension-texmaths 0.48-1 [installed]

Under Wayland using sway version 1.1-rc1

Always reproducable, since a few months actually ;)
So now I thought: OK, lets report it :)

`libreoffice`
free(): invalid pointer
Application Error

Please see attached `env` and `strace libreoffice` and `journalctl during crash` as well.

Please advise.
Comment 1 Knuth Posern 2019-06-25 05:43:02 UTC
Created attachment 152376 [details]
output of 'strace libreoffice'
Comment 2 Knuth Posern 2019-06-25 05:43:22 UTC
Created attachment 152377 [details]
output of 'env'
Comment 3 Knuth Posern 2019-06-25 05:44:18 UTC
Created attachment 152378 [details]
journalctl during the crash
Comment 4 Julien Nabet 2019-06-25 06:45:36 UTC
Could you give a try to https://wiki.documentfoundation.org/QA/FirstSteps ?
Then if you still reproduce this, would it be possible to have a stacktrace (different from strace), see https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace ?
Comment 5 Knuth Posern 2019-06-25 10:33:56 UTC
Hi there,

thanks for the quick comment.

I feel that I did the steps mentioned here: 'First steps to take before submitting a bug'

    1 The very first step: reproduce bug using latest fresh/still version
Archlinux should provide the latest. Updated my system 1 week ago. Bug present since long. Lots of updates to latest versions happened before reporting. Bug 100% consistant and reproducable.

    2 Corrupted user profile
I can give that a try. Even though I would say if libreoffice crashes because of a profile setting, then this should still considered a bug worth fixing.

    3 Graphics-related issues (OpenGL)
This step asks me to do stuff within Libreoffice, which I can't as it crashes ;)
    4 Computation-related issues in Calc (OpenCL)
This step asks me to do stuff within Libreoffice, which I can't as it crashes ;)

As for the backtrace: Absolutely this is a very reasonable request and I will get right on to it.

Thanks!
Comment 6 Knuth Posern 2019-06-25 11:47:24 UTC
Created attachment 152390 [details]
output of 'soffice --valgrind'
Comment 7 Knuth Posern 2019-06-25 11:48:51 UTC
Created attachment 152391 [details]
output of 'VALGRIND=callgrind /usr/lib/libreoffice/program/soffice'
Comment 8 Knuth Posern 2019-06-25 11:50:42 UTC
Created attachment 152392 [details]
callgrind.out.xxxx created by 'VALGRIND=callgrind /usr/lib/libreoffice/program/soffice'
Comment 9 Knuth Posern 2019-06-25 11:51:13 UTC
Hope that helps.

Please let me know.

Thanks a lot in advance!
Comment 10 Julien Nabet 2019-06-25 12:50:03 UTC
Knuth: you retrieved a Valgrind and a Callgrind trace.
I noticed Antidote in your Valgrind trace.
For the test, could you remove any non default extension + rename your LO directory profile and give a new try?


"backtrace" part is first paragraph in https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace

I quote:
"The backtrace is useful for analysing the reasons why an application crashes or freezes. The backtrace can be run without the debugging packages, but it wont be as useful, but still could potentially provide at least some information. You might use the following steps:..."
Comment 11 Knuth Posern 2019-06-25 15:18:32 UTC
Hi Julien,

Thanks for reminding me of the Antidote (great product by the way :))!
I did now try (as you had suggested) to start with a clean libreoffice user profile.

And now it works. I appologize and will remember the importance of user profiles for libreoffice going forward.

Now is the question: Do you still want to keep investigating or 'case closed' ?
From my end, it would be OK to close the ticket.

Knuth
Comment 12 Knuth Posern 2019-06-25 15:22:08 UTC
PS:
Here is what I did exactly to resolve the problem:
mv ~/.config/libreoffice ~/.config/libreoffice.ORIG
Comment 13 QA Administrators 2019-06-26 02:48:17 UTC Comment hidden (obsolete)
Comment 14 Julien Nabet 2019-06-30 08:24:03 UTC
Let's put this one to WFM then.