Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 933110

Summary: net-misc/nextcloud-client-3.12.3: segmentation fault when LTO is enabled
Product: Gentoo Linux Reporter: S. Martindale <stephen.c.martindale+gentoo>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: UNCONFIRMED ---    
Severity: normal CC: flow, kocelfc
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: emerge --info net-misc/nextcloud-client

Description S. Martindale 2024-05-29 08:22:18 UTC
Created attachment 894595 [details]
emerge --info net-misc/nextcloud-client

With USE="lto", `net-misc/nextcloud-client` builds but fails at runtime with a segmentation fault.

I tested the following versions:

- net-misc/nextcloud-client-3.12.3 (which is currently masked under ~amd64)
- net-misc/nextcloud-client-3.11.1 (currently showing as stable in Portage)

Both exhibited the problem. I could not test 3.13.0 because of #930943.

The runtime seg. fault ceases to occur if LTO is disabled for the `net-misc/nextcloud-client` package by adding `-Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing -fno-lto` as recommended in the wiki. (Since it is a runtime fault, presumably only the last of those flags is salient.)

`emerge --info` output is attached, with the fix applied. The only difference between the failure case and those shown is the addition of the no-lto flags, above.
Comment 1 Kostadin Shishmanov 2024-06-02 13:30:02 UTC
There is an upstream bug for this but it was closed due to inactivity: https://github.com/nextcloud/desktop/issues/2790

See also: 
https://github.com/nextcloud/desktop/issues/3090
https://github.com/nextcloud/desktop/issues/4924