Bug 241126 - deskutils/owncloudclient: Crashes constantly after fresh install/reboot
Summary: deskutils/owncloudclient: Crashes constantly after fresh install/reboot
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2019-10-08 09:27 UTC by mfoacs
Modified: 2021-07-31 20:01 UTC (History)
4 users (show)

See Also:
koobs: merge-quarterly?


Attachments
dmesg.boot (21.35 KB, text/plain)
2019-10-08 14:10 UTC, mfoacs
no flags Details
pkg versions (60.72 KB, text/plain)
2019-10-08 14:10 UTC, mfoacs
no flags Details
full backtrace (20.10 KB, text/plain)
2019-10-08 14:11 UTC, mfoacs
no flags Details
log debug (13.70 KB, text/plain)
2019-10-08 14:14 UTC, mfoacs
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mfoacs 2019-10-08 09:27:32 UTC
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
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-10-08 12:14:00 UTC
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)
Comment 2 mfoacs 2019-10-08 14:10:16 UTC
Created attachment 208174 [details]
dmesg.boot
Comment 3 mfoacs 2019-10-08 14:10:51 UTC
Created attachment 208175 [details]
pkg versions
Comment 4 mfoacs 2019-10-08 14:11:30 UTC
Created attachment 208176 [details]
full backtrace
Comment 5 mfoacs 2019-10-08 14:14:21 UTC
Created attachment 208177 [details]
log debug
Comment 6 mfoacs 2019-10-15 08:31:16 UTC
Is there anything else I can do to help?
Comment 7 mail 2019-12-14 02:10:17 UTC
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).
Comment 8 Adriaan de Groot freebsd_committer freebsd_triage 2020-02-07 23:20:41 UTC
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).
Comment 9 Li-Wen Hsu freebsd_committer freebsd_triage 2021-07-31 20:01:05 UTC
deskutils/owncloudclient has been updated in bug252813. As there is no activity to this ticket for a long time. I'm closing it for now. Please test the latest version and reopen if the issue still exists.