The owncloudclient segfaults systematically after a fresh install and a reboot.
My workaround has been to complete clean up the client configuration from .local/share/data/owncloud and start with a fresh sync every day.
Steps to reproduce:
1. Install the client and start the sync to a fresh folder.
2. Reboot or shutdown the machine
3. Restart, open a new session, owncloud segfaults
Issuing owncloud --logfile - on the terminal shows the error:
owncloud --logfile -
10-08 10:31:27:786 [ info gui.application ]: "################## ownCloud locale:[en_US] ui_lang: version:[2.4.1] os:[FreeBSD 12.0-RELEASE-p5]"
10-08 10:31:27:786 [ info gui.application ]: Using "en_US" translation
10-08 10:31:27:786 [ info gui.application ]: Loading global exclude list
10-08 10:31:27:787 [ warning default ]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-mda'
10-08 10:31:27:787 [ info gui.socketapi ]: server started, listening at "/tmp/runtime-mda/ownCloud/socket"
10-08 10:31:27:787 [ info gui.folder.manager ]: setting remote poll timer interval to 30000 msec
10-08 10:31:27:978 [ info gui.account.manager ]: Account for QUrl("https://tdsveg.thedatasafe.ch/") using auth type "http"
10-08 10:31:27:978 [ info gui.folder.manager ]: Setup folders from settings file
10-08 10:31:27:979 [ info gui.folder ]: Adding system ignore list to csync: "/usr/local/etc/ownCloud/sync-exclude.lst"
10-08 10:31:27:979 [ info gui.folder.manager ]: Adding folder to Folder Map OCC::Folder(0x80c684000) "1"
10-08 10:31:28:132 [ info gui.folder.manager ]: Schedule folder "1" to sync!
10-08 10:31:28:132 [ info gui.folder.manager ]: Folder is not ready to sync, not scheduled!
10-08 10:31:28:132 [ info sync.clientproxy ]: Set proxy configuration to use system configuration
10-08 10:31:28:213 [ info sync.database ]: sqlite3 version "3.29.0"
10-08 10:31:28:213 [ info sync.database ]: sqlite3 journal_mode= "wal"
10-08 10:31:29:287 [ debug default ] [ unknown ]: static bool LibSecretKeyring::findPassword(const QString &, const QString &, QKeychain::JobPrivate *)
zsh: segmentation fault (core dumped) owncloud --logfile -
ownCloud version 2.4.1
Git revision cd60c2b88ac858339637575f124c58d88b42e78c
Using Qt 5.13.0, built against Qt 5.13.0
Using 'OpenSSL 1.1.1a-freebsd 20 Nov 2018'
I don't know if the issue is affecting other people but I have it on at least two distinct machines.
I have seen somewhere in the net that the LibSecretKeyring::findPassword errors could be related to dbus:
mda@revolt:~ % sudo ps fax | grep dbus
4472 - S 0:00.15 /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
32245 - Is 0:00.01 /usr/local/bin/dbus-daemon --system
81322 - I 0:00.00 dbus-launch --autolaunch=c3710890e62f2455919e862d5cdd3224 --binary-syntax --close-stderr
81938 - Is 0:00.02 /usr/local/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
32429 0 S+ 0:00.00 grep dbus
It seems good. The same goes for the gnome-keyring, which, btw, I rather not use.
mda@revolt:~ % sudo ps fax | grep keyring
34360 0 S+ 0:00.00 grep keyring
90909 0 IN 0:00.01 gnome-keyring-daemon
Without gnome-keyring there are two new lines at the end:
10-08 11:19:11:103 [ debug default ] [ unknown ]: static bool LibSecretKeyring::findPassword(const QString &, const QString &, QKeychain::JobPrivate *)
** Message: 11:19:11.219: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
10-08 11:19:11:219 [ debug default ] [ unknown ]: static bool LibSecretKeyring::findPassword(const QString &, const QString &, QKeychain::JobPrivate *)
gdb is consistent with the above:
Starting program: /usr/local/bin/owncloud
[New LWP 101884 of process 54533]
[New LWP 101885 of process 54533]
[New LWP 101886 of process 54533]
[Detaching after fork from child process 54932]
[New LWP 101888 of process 54533]
[New LWP 101889 of process 54533]
[Detaching after fork from child process 61761]
[New LWP 101891 of process 54533]
[New LWP 101892 of process 54533]
** Message: 11:22:00.733: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
[Detaching after fork from child process 62245]
Thread 1 received signal SIGSEGV, Segmentation fault.
0x0000000806aab8cd in g_task_return_pointer () from /usr/local/lib/libgio-2.0.so.0
Could you provide additional information, including:
- /var/run/dmesg.boot output (as an attachment)
- pkg version -v output (as an attachment)
- A full backtrace (bt full) of the crash, as an attachment, ideally with a debug build of owncloudclient (port has a DEBUG option)
Created attachment 208174 [details]
Created attachment 208175 [details]
Created attachment 208176 [details]
Created attachment 208177 [details]
Is there anything else I can do to help?
Having the same issue. Anything that can be done to assist?
I found a similar bug here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239349
Cannot really understand the workaround he applied, tried it on my setup to no avail (I enabled debugging on glib20 and nextcloudclient both from ports, I don't understand where he used the -g flag).
The backtrace is, unfortunately, not much use. It certainly looks like a weird incompatibility in the keychain code. I don't know that I tried testing it that far (it syncs with the example server).