Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933110 - net-misc/nextcloud-client-3.12.3: segmentation fault when LTO is enabled
Summary: net-misc/nextcloud-client-3.12.3: segmentation fault when LTO is enabled
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-05-29 08:22 UTC by S. Martindale
Modified: 2024-06-02 13:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info net-misc/nextcloud-client (nextcloud-client-3.12.3-emerge-info.txt,7.99 KB, text/plain)
2024-05-29 08:22 UTC, S. Martindale
Details

Note You need to log in before you can comment on or make changes to this bug.
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