libreoffice fails when home on second partition

Bug #1752496 reported by Horacio J. Peña
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
New
Undecided
Unassigned

Bug Description

After upgrading from 17.04 to 17.10 libreoffice stopped working saying access rights were wrong. After some trying i discovered it is related to the partition my home directory is.

To replicate:

root@horape-S-T-D:~# adduser test1 --home /home/test1
Adding user `test1' ...

root@horape-S-T-D:~# su - test1
test1@horape-S-T-D:~$ libreoffice

It works!

root@horape-S-T-D:~# adduser test2 --home /disco2/home/test2
...
root@horape-S-T-D:~# su - test2
test2@horape-S-T-D:~$ libreoffice

It fails with Fatal Error as shown in the screenshot.

horape@horape-S-T-D:~$ mount
/dev/sda2 on /disco2 type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sdb1 on / type ext4 (rw,noatime,errors=remount-ro,data=ordered)

horape@horape-S-T-D:~$ lsb_release -rd
Description: Ubuntu 17.10
Release: 17.10

horape@horape-S-T-D:~$ apt-cache policy libreoffice
libreoffice:
  Installed: 1:5.4.5-0ubuntu0.17.10.1
  Candidate: 1:5.4.5-0ubuntu0.17.10.1
  Version table:
 *** 1:5.4.5-0ubuntu0.17.10.1 500
        500 http://ar.archive.ubuntu.com/ubuntu artful-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu artful-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     1:5.4.1-0ubuntu1 500
        500 http://ar.archive.ubuntu.com/ubuntu artful/universe amd64 Packages

Thanks!

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: libreoffice 1:5.4.5-0ubuntu0.17.10.1
ProcVersionSignature: Ubuntu 4.13.0-36.40-generic 4.13.13
Uname: Linux 4.13.0-36-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: LXDE
Date: Thu Mar 1 02:16:01 2018
InstallationDate: Installed on 2017-04-15 (319 days ago)
InstallationMedia: Lubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: libreoffice
UpgradeStatus: Upgraded to artful on 2018-02-26 (2 days ago)

Revision history for this message
Horacio J. Peña (horape3) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

This has already been fixed (bug #1751005), please apply the latest updates (libreoffice 1:5.4.5-0ubuntu0.17.10.4).

Revision history for this message
Horacio J. Peña (horape3) wrote :

More info, even if i have ~/.config on root partition, I cannot open files from the big one. strace shows this:

// on root partition, it works

[pid 28522] openat(AT_FDCWD, "/home/horape-/gastos.ods", O_RDWR|O_EXCL) = 26

// on /disco2 partition, it fails

[pid 28240] openat(AT_FDCWD, "/disco2/home/horape/gastos.ods", O_RDWR|O_EXCL) = -1 EACCES (Permission denied)

open(2) says:

In general, the behavior of O_EXCL is undefined if it is used without O_CREAT. There is one exception: on Linux 2.6 and later, O_EXCL can be used without O_CREAT if pathname refers to a block device. If the block device is in use by the system (e.g., mounted), open() fails with the error EBUSY.

So, O_RDWR|O_EXCL seems to make no sense. What is it trying to do?

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.