LibreOffice crashes on startup

I get the mesage

test2@ginger-3:~> /opt/libreoffice4.0/program/swriter KCrash: Application ‘soffice.bin’ crashing… Warning: connect() failed: : No such file or directory KCrash cannot reach kdeinit, launching directly.

on every attempt to start.

This is a computer running openSUSE 12.3 which was upgraded from 12.2 (and that from earlier releases).

I have another computer with a fresh openSUSE 12.3 install and LibreOffice start happily on it.

I have stack traces from both the computer that works and the one that doesn’t. On the one that doesn’t I have tried running from a new user.

The 2 differences in the stack traces are that the failed copy includes many lines such as:

open(“tls/x86_64/libXau.so.6”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/libXau.so.6”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“x86_64/libXau.so.6”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“libXau.so.6”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib64/libXau.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

and the following section:

connect(3, {sa_family=AF_FILE, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_FILE, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1223, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f802221d000
read(3, “#\n# /etc/nsswitch.conf\n#\n# An ex”…, 4096) = 1223
read(3, “”, 4096) = 0
close(3) = 0
munmap(0x7f802221d000, 4096) = 0
open("/opt/libreoffice4.0/program/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/opt/libreoffice4.0/program/…/ure-link/lib/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/x86_64/libnss_compat.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/libnss_compat.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“x86_64/libnss_compat.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“libnss_compat.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib64/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=154093, …}) = 0
mmap(NULL, 154093, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f80221f8000
close(3) = 0
open("/lib64/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\23\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=38532, …}) = 0
mmap(NULL, 2127000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f801f8eb000
mprotect(0x7f801f8f2000, 2093056, PROT_NONE) = 0
mmap(0x7f801faf1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f801faf1000
close(3) = 0
open("/opt/libreoffice4.0/program/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/opt/libreoffice4.0/program/…/ure-link/lib/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/x86_64/libnsl.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/libnsl.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“x86_64/libnsl.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“libnsl.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`A\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=108117, …}) = 0
mmap(NULL, 2194072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f801f6d3000
mprotect(0x7f801f6e8000, 2093056, PROT_NONE) = 0
mmap(0x7f801f8e7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f801f8e7000
mmap(0x7f801f8e9000, 6808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f801f8e9000
close(3) = 0
mprotect(0x7f801f8e7000, 4096, PROT_READ) = 0
mprotect(0x7f801faf1000, 4096, PROT_READ) = 0
munmap(0x7f80221f8000, 154093) = 0
open("/opt/libreoffice4.0/program/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/opt/libreoffice4.0/program/…/ure-link/lib/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/x86_64/libnss_nis.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/libnss_nis.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“x86_64/libnss_nis.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“libnss_nis.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib64/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=154093, …}) = 0
mmap(NULL, 154093, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f80221f8000
close(3) = 0
open("/lib64/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0”\0\0\0\0\0\0"…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=52645, …}) = 0
mmap(NULL, 2139352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f801f4c8000
mprotect(0x7f801f4d2000, 2093056, PROT_NONE) = 0
mmap(0x7f801f6d1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x7f801f6d1000
close(3) = 0
open("/opt/libreoffice4.0/program/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/opt/libreoffice4.0/program/…/ure-link/lib/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/x86_64/libnss_files.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“tls/libnss_files.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“x86_64/libnss_files.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“libnss_files.so.2”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/local/lib64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000”\0\0\0\0\0\0"…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=62367, …}) = 0
mmap(NULL, 2148168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f801f2bb000
mprotect(0x7f801f2c7000, 2093056, PROT_NONE) = 0
mmap(0x7f801f4c6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f801f4c6000
close(3) = 0
mprotect(0x7f801f4c6000, 4096, PROT_READ) = 0
mprotect(0x7f801f6d1000, 4096, PROT_READ) = 0
munmap(0x7f80221f8000, 154093) = 0
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
lseek(3, 0, SEEK_CUR) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1856, …}) = 0
mmap(NULL, 1856, PROT_READ, MAP_SHARED, 3, 0) = 0x7f80222b2000
lseek(3, 1856, SEEK_SET) = 1856
munmap(0x7f80222b2000, 1856) = 0

Anyone???

  1. The correct response to your question is: given that LibO most certainly starts on other distros, and works on a fresh install of OpenSuSE, this “question” should be a bug report to OpenSUSE’s update process, not a post on this forum.

  2. Unfortunately, not all Linux distributions (read: most) do well at upgrading; though it works most of the time, there is a large enough percentage of things that don’t quite go as planned that my general advice to people is simply to install new distro versions afresh rather than upgrading between them. If you at least separated your system and your data into different partitions (e.g., / to /dev/sda1; /home to /dev/sda2) when you originally installed the system, then it should be relatively easy to update your system in place without destroying your data.

Meanwhile, OpenSUSE 13.1 is out now, and hopefully either upgrading again, or installing afresh will resolve your issue.