[SRU] nextcloud crashed with SIGSEGV.

Bug #1923053 reported by Paul Broadhead
170
This bug affects 31 people
Affects Status Importance Assigned to Milestone
nextcloud-desktop (Ubuntu)
Fix Released
High
Rik Mills
Hirsute
Fix Released
High
Rik Mills
Impish
Fix Released
High
Rik Mills

Bug Description

[Impact]

 * The software fails to start, so is rendered useless to an end user

 * Until recently LTO had not been enabled for the builds.

[Test Plan]

 * Start the client. The client should start normally.

 * Test the normal functionality as used by the tester. Optionally try some features not normally used, if they exist.

[Where problems could occur]

 * Any rebuilding against a newer toolchain/libraries can have unintended consequences for features, new crashes etc. Therefore testers (where possible) should do more than just test if 'it starts'.

***** original report continues ******

$ lsb_release -rd
Description: Ubuntu Hirsute Hippo (development branch)
Release: 21.04

$ apt-cache policy nextcloud-desktop
nextcloud-desktop:
  Installed: 3.1.1-1ubuntu1
  Candidate: 3.1.1-1ubuntu1
  Version table:
 *** 3.1.1-1ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
        100 /var/lib/dpkg/status

Since the last update, when I try to launch the nextcloud app it crashes with a Segmentation fault.

ProblemType: Crash
DistroRelease: Ubuntu 21.04
Package: nextcloud-desktop 3.1.1-1ubuntu1
ProcVersionSignature: Ubuntu 5.11.0-13.14-generic 5.11.7
Uname: Linux 5.11.0-13-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu62
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: GNOME
Date: Thu Apr 8 14:15:21 2021
ExecutablePath: /usr/bin/nextcloud
InstallationDate: Installed on 2019-11-02 (523 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
JournalErrors:
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
  Users in groups 'adm', 'systemd-journal' can see all messages.
  Pass -q to turn off this notice.
 No journal files were opened due to insufficient permissions.
ProcCmdline: /usr/bin/nextcloud
ProcEnviron:
 SHELL=/bin/bash
 LANGUAGE=en_GB:en
 LANG=en_GB.UTF-8
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, user)
SegvAnalysis:
 Segfault happened at: 0x7ff4a476963f: mov 0x8(%rdi),%r15
 PC (0x7ff4a476963f) ok
 source "0x8(%rdi)" (0x00000008) not located in a known VMA region (needed readable region)!
 destination "%r15" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: nextcloud-desktop
StacktraceTop:
 () at /lib/x86_64-linux-gnu/libQt5Core.so.5
 QGuiApplication::screenAdded(QScreen*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
 QWindowSystemInterface::handleScreenAdded(QPlatformScreen*, bool) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
 QXcbConnection::initializeScreens() () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
 QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, unsigned int, char const*) () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
Title: nextcloud crashed with SIGSEGV
UpgradeStatus: Upgraded to hirsute on 2021-03-30 (8 days ago)
UserGroups: dialout family libvirt mail sudo
separator:

Revision history for this message
Paul Broadhead (pjbroad) wrote :
tags: removed: need-amd64-retrace
Paul Broadhead (pjbroad)
information type: Private → Public
Revision history for this message
Steffen Krumbholz (skrumbholz) wrote :

Confirmed. Since the latest update to 3.1.1-1ubuntu1 nextcloud desktop is segfaulting.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nextcloud-desktop (Ubuntu):
status: New → Confirmed
Revision history for this message
Martin (martid0311) wrote :
Download full text (3.4 KiB)

I'm having this issue as well. Here's a backtrace from GDB, with some debug symbols:

(gdb) bt
#0 doActivate<false> (sender=0x0, signal_index=9, argv=argv@entry=0x7fffffffb9a0) at kernel/qobject.cpp:3768
#1 0x00007fffeafb5cb8 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fffebed30a0 <QGuiApplication::staticMetaObject>, local_signal_index=local_signal_index@entry=1,
    argv=argv@entry=0x7fffffffb9a0) at kernel/qobject.cpp:3946
#2 0x00007fffeb9515a6 in QGuiApplication::screenAdded (this=<optimized out>, _t1=<optimized out>, _t1@entry=0x5555558b3cf0) at .moc/moc_qguiapplication.cpp:389
#3 0x00007fffeb936d80 in QWindowSystemInterface::handleScreenAdded (ps=ps@entry=0x5555558a5850, isPrimary=<optimized out>) at kernel/qwindowsysteminterface.cpp:826
#4 0x00007fffdef2d540 in QXcbConnection::initializeScreens (this=this@entry=0x555555893950) at qxcbconnection_screens.cpp:413
#5 0x00007fffdef082a4 in QXcbConnection::QXcbConnection (this=0x555555893950, nativeInterface=<optimized out>, canGrabServer=<optimized out>, defaultVisualId=<optimized out>, displayName=<optimized out>)
    at qxcbconnection.cpp:103
#6 0x00007fffdef0b10f in QXcbIntegration::QXcbIntegration (this=0x555555893830, parameters=..., argc=<optimized out>, argv=<optimized out>) at qxcbintegration.cpp:197
#7 0x00007ffff7fb9593 in QXcbIntegrationPlugin::create (this=<optimized out>, system=..., argv=0x7fffffffd868, argc=@0x7fffffffd60c: 1, parameters=...) at qxcbmain.cpp:56
#8 QXcbIntegrationPlugin::create (this=<optimized out>, system=..., parameters=..., argc=@0x7fffffffd60c: 1, argv=0x7fffffffd868) at qxcbmain.cpp:53
#9 0x00007fffeb9559fc in init_platform (argv=<optimized out>, argc=@0x7fffffffd60c: 1, platformThemeName=..., platformPluginPath=..., pluginNamesWithArguments=...) at kernel/qguiapplication.cpp:1223
#10 QGuiApplicationPrivate::createPlatformIntegration (this=0x555555887e20) at kernel/qguiapplication.cpp:1481
#11 0x00007fffeb956e88 in QGuiApplicationPrivate::createEventDispatcher (this=<optimized out>) at kernel/qguiapplication.cpp:1498
#12 0x00007fffeaf8be46 in QCoreApplicationPrivate::init (this=this@entry=0x555555887e20) at kernel/qcoreapplication.cpp:834
#13 0x00007fffeb959e02 in QGuiApplicationPrivate::init (this=0x555555887e20) at kernel/qguiapplication.cpp:1527
#14 0x00007fffef2f5fed in QApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x000055555571c68b in SharedTools::QtSingleApplication::QtSingleApplication (this=<optimized out>, appId=..., argc=<optimized out>, argv=<optimized out>, this=<optimized out>, appId=...,
    argc=<optimized out>, argv=<optimized out>) at ./src/3rdparty/qtsingleapplication/qtsingleapplication.cpp:56
#16 0x000055555563d30c in OCC::Application::Application (this=<optimized out>, argc=<optimized out>, argv=<optimized out>, this=<optimized out>, argc=<optimized out>, argv=<optimized out>)
    at ./src/gui/application.cpp:116
#17 0x00005555556093c7 in main (argc=<optimized out>, argv=0x7fffffffd868) at ./src/gui/main.cpp:80

As you can see, the "sender" argument to qobject.cpp's doActivate function is NULL, which it's not supposed to be. The first line of that function is line 376...

Read more...

Revision history for this message
Steffen Krumbholz (skrumbholz) wrote :

I have updated to version 3.2.0-20210410.072919.14fbf1b10-1.0~hirsute1 from http://ppa.launchpad.net/nextcloud-devs/client/ubuntu

But nextcloud-desktop is still segfaulting.

Revision history for this message
Steffen Krumbholz (skrumbholz) wrote :

Maybe this is not caused by the nextcloud client itself but by some (qt?) library the client is using?

(Version 3.2.0 is working on previous Ubuntu versions - older than hirsute)

Revision history for this message
Achim Behrens (k1l) wrote :

i tried with the appimage version of the client and that works ootb with the user configs etc.

wget https://github.com/nextcloud/desktop/releases/download/v3.2.0/Nextcloud-3.2.0-x86_64.AppImage
chmod +x Nextcloud-3.2.0-x86_64.AppImage
./Nextcloud-3.2.0-x86_64.AppImage

So something is broken on the packaged version in the repos.

Revision history for this message
Germán Poo-Caamaño (gpoo) wrote :
Download full text (3.8 KiB)

I have the same issue in Wayland.

Program received signal SIGSEGV, Segmentation fault.
doActivate<false> (sender=0x0, signal_index=9, argv=0x7fffffffb1f0) at kernel/qobject.cpp:3768
3768 kernel/qobject.cpp: No such file or directory.
(gdb) bt
#0 doActivate<false>(QObject*, int, void**) (sender=0x0, signal_index=9, argv=0x7fffffffb1f0)
    at kernel/qobject.cpp:3768
#1 0x00007fffeb9745a6 in QGuiApplication::screenAdded(QScreen*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#2 0x00007fffde7464f8 in QtWaylandClient::QWaylandDisplay::handleScreenInitialized(QtWaylandClient::QWaylandScreen*) () at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#3 0x00007fffde74fa07 in QtWaylandClient::QWaylandScreen::maybeInitialize() ()
    at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#4 0x00007fffea120249 in () at /lib/x86_64-linux-gnu/libffi.so.8
#5 0x00007fffea11f639 in () at /lib/x86_64-linux-gnu/libffi.so.8
#6 0x00007fffde6c4502 in () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#7 0x00007fffde6c0aea in () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#8 0x00007fffde6c21dc in wl_display_dispatch_queue_pending () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#9 0x00007fffde746145 in QtWaylandClient::QWaylandDisplay::forceRoundTrip() ()
    at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#10 0x00007fffde746c94 in QtWaylandClient::QWaylandDisplay::registry_global(unsigned int, QString const&, unsigned int) () at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#11 0x00007fffde767cce in QtWayland::wl_registry::handle_global(void*, wl_registry*, unsigned int, char const*, unsigned int) () at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#12 0x00007fffea120249 in () at /lib/x86_64-linux-gnu/libffi.so.8
#13 0x00007fffea11f639 in () at /lib/x86_64-linux-gnu/libffi.so.8
#14 0x00007fffde6c4502 in () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#15 0x00007fffde6c0aea in () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#16 0x00007fffde6c21dc in wl_display_dispatch_queue_pending () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#17 0x00007fffde746145 in QtWaylandClient::QWaylandDisplay::forceRoundTrip() ()
    at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#18 0x00007fffde7463fa in QtWaylandClient::QWaylandDisplay::QWaylandDisplay(QtWaylandClient::QWaylandIntegration*)
    () at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#19 0x00007fffde73984f in QtWaylandClient::QWaylandIntegration::QWaylandIntegration() ()
    at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#20 0x00007ffff7fbd53b in () at /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqwayland-generic.so
#21 0x00007fffeb9789fc in QGuiApplicationPrivate::createPlatformIntegration() ()
    at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007fffeb979e88 in QGuiApplicationPrivate::createEventDispatcher() () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007fffeafaee46 in QCoreApplicationPrivate::init() (this=<optimized out>) at kernel/qcoreapplication.cpp:834
#24 0x00007fffeb97ce02 in QGuiApplicationPrivate::init() () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#25 0x00007fffef318fed in QApplicationPrivate::init() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00005555557...

Read more...

Revision history for this message
Lari Natri (larva) wrote :

This problem exists on X, too -- not only on Wayland.

Revision history for this message
freak007 (freak-linux4freak) wrote :

I have the same bug, nextcloud-devs ppa is also concerned by the problem.
After manually installed nextcloud 3.1.1 debian unstable packages, nextcloud-desktop works.
I think there is maybe something wrong with compilation (lto?).

Revision history for this message
Paul Broadhead (pjbroad) wrote :

I do not get the crash on arm, this is a raspberry pi 400 machine.

$ lsb_release -rd
Description: Ubuntu 21.04
Release: 21.04

$ apt-cache policy nextcloud-desktop
nextcloud-desktop:
  Installed: 3.1.1-1ubuntu1
  Candidate: 3.1.1-1ubuntu1
  Version table:
 *** 3.1.1-1ubuntu1 500
        500 http://ports.ubuntu.com/ubuntu-ports hirsute/universe arm64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
themroc (rauchweihe) wrote :

nextcloud 3.1.1 debian unstable packages works for me too (amd64)

Revision history for this message
Achim Behrens (k1l) wrote :

can confirm that with libnextcloudsync0_3.1.1-1_amd64.deb and nextcloud-desktop_3.1.1-1_amd64.deb from debian bullseye it works again.

Revision history for this message
Janosch Maier (phylu) wrote :

What i noticed is, that the Ubuntu Version of the package has two dependencies, that the Debian version does not have:
- libqt5websockets5
- qml-module-qtqml

So the segfault might be in one of these and not the nextcloud code itself.

Revision history for this message
Rik Mills (rikmills) wrote :
Revision history for this message
Rik Mills (rikmills) wrote :

This appears to be due to building with LTO enabled on amd64

https://github.com/nextcloud/desktop/issues/2790

Rik Mills (rikmills)
Changed in nextcloud-desktop (Ubuntu):
importance: Undecided → High
Revision history for this message
Rik Mills (rikmills) wrote :

Test rebuild of the hirsute package is done with LTO disabled. Can be tested from

sudo add-apt-repository ppa:rikmills/nexcloud-no-lto
sudo apt-get update

(yes I did make a typo when doing the ppa name)

Revision history for this message
peace_corpse (peace-corpse) wrote :

I got the following error, fixed by moving ~/.config/Nextcloud

2021-04-22 12:46:20:892 [ fatal default ]: ENFORCE: "allow_failure" in file ./src/common/ownsql.cpp, line 265 with message: SQLITE Prepare error
Aborted (core dumped)

The startup SEGFAULT is gone in the no-lto build

Rik Mills (rikmills)
description: updated
summary: - nextcloud crashed with SIGSEGV.
+ [SRU] nextcloud crashed with SIGSEGV.
Revision history for this message
Achim Behrens (k1l) wrote :

the issue in Comment 18 comes from mixing higher versioned clients, they are not downgradeable.

"That is because the sync database of 3.2.0-rc3 and 3.1.3 are incompatible. In general it is not supported to downgrade. To recover from that you need to delete the sync database while the client is not running. The sync database are the files beginning with ._sync* in your sync folder. The client will generate a new sync database on restart." from https://github.com/nextcloud/desktop/issues/2790#issuecomment-811872914

Rik Mills (rikmills)
Changed in nextcloud-desktop (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Rik Mills (rikmills)
Revision history for this message
Steffen Krumbholz (skrumbholz) wrote :

The latest version from http://ppa.launchpad.net/nextcloud-devs/client does work again.
3.2.0-20210422.142324.14fbf1b10-1.0~hirsute1 fixed it.

Revision history for this message
drohhyn (drohhyn) wrote :
Changed in nextcloud-desktop (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Rik Mills (rikmills) wrote :

This bug is tracking the version in the main Ubuntu archive for hirsute, so it is not fix released yet. A fixed version is awaiting review by the sru team.

Changed in nextcloud-desktop (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Paul, or anyone else affected,

Accepted nextcloud-desktop into hirsute-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nextcloud-desktop/3.1.1-1ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-hirsute to verification-done-hirsute. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-hirsute. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in nextcloud-desktop (Ubuntu Hirsute):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-hirsute
Revision history for this message
Achim Behrens (k1l) wrote :

i grabbed the packages right from the launchpad building page and installed them:
libnextcloudsync0_3.1.1-1ubuntu1.1_amd64.deb
nextcloud-desktop_3.1.1-1ubuntu1.1_amd64.deb
nextcloud-desktop-common_3.1.1-1ubuntu1.1_all.deb
nextcloud-desktop-l10n_3.1.1-1ubuntu1.1_all.deb
nextcloud-desktop-doc_3.1.1-1ubuntu1.1_all.deb

The nextcloud desktop client now starts as intended. No segfault anymore.

tags: added: verification-done-hirsute
removed: verification-needed verification-needed-hirsute
Revision history for this message
Gavin Robertson (ubuntu-tatooine) wrote :

$ apt-cache policy nextcloud-desktop
nextcloud-desktop:
  Installed: 3.1.1-1ubuntu1.1
  Candidate: 3.1.1-1ubuntu1.1
  Version table:
 *** 3.1.1-1ubuntu1.1 500
        500 http://gb.archive.ubuntu.com/ubuntu hirsute-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     3.1.1-1ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages

Works for me.

Revision history for this message
Paul Broadhead (pjbroad) wrote :

Confirmed also, now starts as normal. Thanks for the fix.

$ apt-cache policy nextcloud-desktop
nextcloud-desktop:
  Installed: 3.1.1-1ubuntu1.1
  Candidate: 3.1.1-1ubuntu1.1
  Version table:
 *** 3.1.1-1ubuntu1.1 500
        500 http://gb.archive.ubuntu.com/ubuntu hirsute-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     3.1.1-1ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages

Rik Mills (rikmills)
tags: added: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nextcloud-desktop - 3.1.1-1ubuntu1.1

---------------
nextcloud-desktop (3.1.1-1ubuntu1.1) hirsute; urgency=medium

  * Disable building with LTO to fix segfault on startup (LP: #1923053)

 -- Rik Mills <email address hidden> Thu, 22 Apr 2021 15:21:37 +0100

Changed in nextcloud-desktop (Ubuntu):
status: Fix Committed → Fix Released
Rik Mills (rikmills)
Changed in nextcloud-desktop (Ubuntu Hirsute):
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
Rik Mills (rikmills) wrote :

This is not released to updates yet. The message in #28 was due some of these packages in hirsute-proposed being wrongly copied to impish.

Changed in nextcloud-desktop (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
monochromec (monochromec) wrote :

Version 3.1.1-1ubuntu1 not work for me in hirsute.

                Stack trace of thread 7682:
                #0 0x00007fd1dc94263f n/a (libQt5Core.so.5 + 0x2ee63f)
                #1 0x00007fd1dd2d75a6 _ZN15QGuiApplication11screenAddedEP7QScreen (libQt5Gui.so.5 + 0x1345a6)
                #2 0x00007fd1dd2bcd80 _ZN22QWindowSystemInterface17handleScreenAddedEP15QPlatformScreenb (libQt5Gui.so.5 + 0x119d80)
                #3 0x00007fd1d050f540 _ZN14QXcbConnection17initializeScreensEv (libQt5XcbQpa.so.5 + 0x72540)
                #4 0x00007fd1d04ea2a4 _ZN14QXcbConnectionC2EP19QXcbNativeInterfacebjPKc (libQt5XcbQpa.so.5 + 0x4d2a4)
                #5 0x00007fd1d04ed10f _ZN15QXcbIntegrationC2ERK11QStringListRiPPc (libQt5XcbQpa.so.5 + 0x5010f)
                #6 0x00007fd1e9933593 n/a (libqxcb.so + 0x2593)
                #7 0x00007fd1dd2db9fc _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x1389fc)
                #8 0x00007fd1dd2dce88 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x139e88)
                #9 0x00007fd1dc911e46 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2bde46)
                #10 0x00007fd1dd2dfe02 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x13ce02)
                #11 0x00007fd1e0c7bfed _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x170fed)
                #12 0x000056345e20868b _ZN11SharedTools19QtSingleApplicationC1ERK7QStringRiPPc (nextcloud + 0x1c868b)
                #13 0x000056345e12930c _ZN3OCC11ApplicationC2ERiPPc (nextcloud + 0xe930c)
                #14 0x000056345e0f53c7 main (nextcloud + 0xb53c7)
                #15 0x00007fd1dc10e565 __libc_start_main (libc.so.6 + 0x28565)
                #16 0x000056345e0f5abe _start (nextcloud + 0xb5abe)

Going by the coredumpctl generated ST, this may be a different bug. More than happy to open a separate bug and supply more information, just let me know.

Revision history for this message
Rik Mills (rikmills) wrote : Re: [Bug 1923053] Re: [SRU] nextcloud crashed with SIGSEGV.

On 24/04/2021 06:01, monochromec wrote:
> Version 3.1.1-1ubuntu1 not work for me in hirsute.

Well, it wouldn't, as the fixed version in proposed is 3.1.1-1ubuntu1.1

Your ST of the original broken 3.1.1-1ubuntu1 does appear to be this issue.

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

I can't find the package in proposed, what happened?

Revision history for this message
Rik Mills (rikmills) wrote :

On 25/04/2021 18:54, Rüdiger Kupper wrote:
> I can't find the package in proposed, what happened?
Seems to have been an mistaken casualty of setting up the new 'impish'
repos.

It is in the queue to be copied back into hirsute-proposed

https://launchpad.net/ubuntu/hirsute/+queue?queue_state=1&queue_text=

but that needs approval from admins, so could have to wait until Monday
morning.

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

All right, thanks!

Revision history for this message
Nicolas Dextraze (nicdex) wrote :

$ apt-cache policy nextcloud-desktop
nextcloud-desktop:
  Installed: 3.2.0-20210422.142324.14fbf1b10-1.0~hirsute1
  Candidate: 3.2.0-20210422.142324.14fbf1b10-1.0~hirsute1
  Version table:
 *** 3.2.0-20210422.142324.14fbf1b10-1.0~hirsute1 500
        500 http://ppa.launchpad.net/nextcloud-devs/client/ubuntu hirsute/main amd64 Packages
        100 /var/lib/dpkg/status
     3.1.1-1ubuntu1 500
        500 http://ca.archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages

Testing done:

- Client started OK
- Create a local file, sync to server OK
- Create a file on server, sync to local OK
- Modified local file, sync to server OK
- Main dialog shows OK
- Settings dialog shows OK
- Pause sync for all, Resume sync for all OK
- Server status (originally saying Offline, then once logged onto server via web shows Online) OK

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

nextcloud-desktop is back in hirsute-proposed, testing. Here's what I see:
The client starts up and sync seems to work, but the main window ist next to unusable. Window shows, but has no title bar. Erratically, it switches to some text output and back again. The window cannot be moved, unless you hold the super-key. Soon, it disappears unexpectedly.

There's definitively something wrong with the graphics toolkit, but sync seems to work.

Revision history for this message
Rik Mills (rikmills) wrote :

No problems with the UI here

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

Interesting. Here's how it looks on my desktop. The netcloud window disappears as soon as I click anywhere on the desktop.

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

Interesting. Here's how it looks on my desktop. The netcloud window disappears as soon as I click anywhere on the desktop.

Revision history for this message
Rik Mills (rikmills) wrote :

That is a system tray notification popup, and exactly how it should look. If you have issues with it, please report another bug once this update is out. That is certainly related to the fix here, which in essence is just reverting to how the desktop client was compiled in other releases to fix the segfault on startup.

Revision history for this message
Rik Mills (rikmills) wrote :

Correction: certainly NOT related

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

(Sorry for the double posting.)
Yes, I now see how this is to be meant, but it's not a direct popup but what you see when you select "Main Window" *from* the popup menu. – Anyway, unrelated to this issue, you are right, thanks!

Revision history for this message
Aiko Barz (aiko-chroot) wrote :

I tried the proposed update. The client now starts without segmentation fault, but it crashes while syncing some files. I guess, this is not directly related to the package in proposed but to the fact, that I used the AppImage from Nextcloud in the meantime…

$ dpkg -l | grep nextcloud | cut -c1-80
ii libnextcloudsync0:amd64 3.1.1-1ubuntu1.1
ii nautilus-nextcloud 3.1.1-1ubuntu1.1
ii nextcloud-desktop 3.1.1-1ubuntu1.1
ii nextcloud-desktop-common 3.1.1-1ubuntu1.1
ii nextcloud-desktop-doc 3.1.1-1ubuntu1.1
ii nextcloud-desktop-l10n 3.1.1-1ubuntu1.1

$ nextcloud
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
2021-04-28 08:08:39:020 [ fatal default ]: ENFORCE: "allow_failure" in file ./src/common/ownsql.cpp, line 265 with message: SQLITE Prepare error
Aborted (core dumped)

The AppImage-Client which is the 3.2-release works and syncs…

$ ./Downloads/Nextcloud-3.2.0-x86_64.AppImage
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

I guess the SQLite schema has changed between 3.1.1 and 3.2…

Aiko

Revision history for this message
Aiko Barz (aiko-chroot) wrote :

Ok. In addition to comment #43:

I bravely removed the sync DB files in the Nextcloud directory. The proposed client does not crash anymore. It does a full resync though. But the 3.1.1-1ubuntu1.1 release works at least.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nextcloud-desktop - 3.1.1-1ubuntu1.1

---------------
nextcloud-desktop (3.1.1-1ubuntu1.1) hirsute; urgency=medium

  * Disable building with LTO to fix segfault on startup (LP: #1923053)

 -- Rik Mills <email address hidden> Thu, 22 Apr 2021 15:21:37 +0100

Changed in nextcloud-desktop (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Jonathan Rice (theczar) wrote :

I am confused by the current state on hirsute. #45 seems to indicate that this should have been transitioned to Released on 4/28, yet the status still indicates committed. I am trying to track this to update my machine. Any help would be appreciated.

Revision history for this message
Rik Mills (rikmills) wrote :

On 04/05/2021 12:33, Jonathan Rice wrote:
> I am confused by the current state on hirsute. #45 seems to indicate
> that this should have been transitioned to Released on 4/28, yet the
> status still indicates committed. I am trying to track this to update
> my machine. Any help would be appreciated.

#45 is a result of this being fixed in impish, as a result of the
hirsute update being copied to impish. (hence hirsute in the changelog)

So yes, the hirsute update is not released yet.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nextcloud-desktop - 3.1.1-1ubuntu1.1

---------------
nextcloud-desktop (3.1.1-1ubuntu1.1) hirsute; urgency=medium

  * Disable building with LTO to fix segfault on startup (LP: #1923053)

 -- Rik Mills <email address hidden> Thu, 22 Apr 2021 15:21:37 +0100

Changed in nextcloud-desktop (Ubuntu Hirsute):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for nextcloud-desktop has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Christoph Reiter (lazka) wrote :

I'm seeing a similar crash in jammy again with nextcloud-desktop-3.3.5-1:

```
Thread 1 "nextcloud" received signal SIGSEGV, Segmentation fault.
0x00007fffedc9a89e in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
(gdb) bt
#0 0x00007fffedc9a89e in () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#1 0x00007fffee451f36 in QGuiApplication::screenAdded(QScreen*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#2 0x00007fffee437740 in QWindowSystemInterface::handleScreenAdded(QPlatformScreen*, bool) ()
    at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#3 0x00007fffe2b6b348 in QXcbConnection::initializeScreens() () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4 0x00007fffe2b425e0 in QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, unsigned int, char const*) ()
    at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#5 0x00007fffe2b45d10 in QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**) ()
    at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
```

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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