Bug 119193 - LibreOffice crashed when creating a file on samba
Summary: LibreOffice crashed when creating a file on samba
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks:
 
Reported: 2018-08-10 08:47 UTC by DocBox
Modified: 2018-08-20 12:12 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
GDB log backtrace (46.86 KB, text/x-log)
2018-08-10 10:42 UTC, DocBox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DocBox 2018-08-10 08:47:11 UTC
Description:
Hey!

If I open the LibreOffice Writer program and want to save the file to a mounted samba share, the application hangs. The symptom is that the application interface stops responding and you need to kill the process.

However, if the libreoffice file is already on the samba (it was previously created somehow), the program saves it normally, it does not crash.

This is not a permission problem, because I have write access and other applications, eg dolphin, krita, internet browsers write a new file without any problems

Steps to Reproduce:
1. Launch LibreOffice writer.
2.Select file - save as and choose the location where you have the samba resource installed.
3. Click the save button.

Actual Results:
An application when writing a new file for samba share hangs completely. It can be closed only by killing the process.

Expected Results:
The application should create a file on a network share, without crashed.


Reproducible: Always


User Profile Reset: No



Additional Info:
Informations from LibreOffice - About

Version: 6.1.0.3
Build ID: 10(Build:3)
threads of cpu: 2; OS:Linux 4.17; UI render:default; VCL: gtk3_kde5; 
Regional Settings: pl-PL (pl_PL.UTF-8); Calc: group threaded

My operating system:

LSB Version:    n/a
Distributor ID: openSUSE
Description:    openSUSE Tumbleweed
Release:        20180807
Codename:       n/a

GUI = PLASMA 5


My systemD script to mount samba share (devoid of real login data):

 [Unit]
Description=<example>

Requires=systemd-networkd.service
After=NetworkManager-wait-online.service
Wants=NetworkManager-wait-online.service

[Mount]
What=//1.1.1.1/Example
Where=/path/samba/mount
Options=username=<samba username>,password=<samba username password,rw,uid=<user uid>
Type=cifs
TimeoutSec=30

[Install]
WantedBy=multi-user.target
Comment 1 Julien Nabet 2018-08-10 09:57:31 UTC
Would it be possible to attach a backtrace? (see https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace)

Are there some logs on console? (if you launch LO from console to test)
Comment 2 DocBox 2018-08-10 10:42:52 UTC
Created attachment 144083 [details]
GDB log backtrace
Comment 3 DocBox 2018-08-10 10:45:53 UTC
Additionally, the result of the console. After the message appears:

kf5.kio.core: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf\nLoaded services file OK.\nWARNING: The 'netbios name' is too long (max. 15 chars).\n\n"

Application has crashed and I must killed process.




user@linux-workstation0:~> soffice --backtrace
GNU gdb (GDB; openSUSE Tumbleweed) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib64/libreoffice/program/soffice.bin...Missing separate debuginfo for /usr/lib64/libreoffice/program/soffice.bin
Try: zypper install -C "debuginfo(build-id)=bd6d0b2c65b01913cc40f38493f026a9b106d7c6"
(no debugging symbols found)...done.
log will be saved as gdbtrace.log, this will take some time, patience...
kf5.kio.core: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf\nLoaded services file OK.\nWARNING: The 'netbios name' is too long (max. 15 chars).\n\n"
Comment 4 Julien Nabet 2018-08-10 11:49:15 UTC
GratisLPG: thank you for your feedback.
Could you give it a try with some other renderings:
SAL_USE_VCLPLUGIN=gtk3
or
SAL_USE_VCLPLUGIN=gtk
or
SAL_USE_VCLPLUGIN=gen
?

Katarina: thought you might be interested in this one since there's gtk3_kde5 in bt.
Comment 5 DocBox 2018-08-10 12:02:43 UTC
Where are the settings? Arch wiki suggest that they have in /etc/profile.d directory, but in directory I not have the libreoffice files.

https://wiki.archlinux.org/index.php/LibreOffice
Comment 6 Katarina Behrens (Inactive) 2018-08-10 12:24:02 UTC
> Where are the settings? Arch wiki suggest that they have in /etc/profile.d
> directory, but in directory I not have the libreoffice files.
 
Julien means you should start LibO (from console) like this:

SAL_USE_VCLPLUGIN=gtk3 soffice

(or gtk, or gen) and see if you can still reproduce the issue
Comment 7 DocBox 2018-08-10 12:47:08 UTC
When I run the gtk3 and gtk options, the application crashes when I try to create a file. 

BUT!

If I run the program from the gen, the file creation proceeds correctly, and then when I run the gtk3 option, the creation of the file also proceeds correctly.
Comment 8 DocBox 2018-08-20 11:54:51 UTC
Recently, for my distribution, libreoffice had some fixes and after installing the update everything works fine. The described problem does not occur.
Comment 9 Julien Nabet 2018-08-20 12:12:32 UTC
Thank you for your feedback.
Let's put this one to WFM then.