Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931329 - app-emulation/wine-staging segfault when -Wl,--gc-sections passed to LDFLAGS
Summary: app-emulation/wine-staging segfault when -Wl,--gc-sections passed to LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-07 04:12 UTC by unhappy-ending
Modified: 2024-05-07 07:41 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description unhappy-ending 2024-05-07 04:12:52 UTC
See title. When passing -Wl,--gc-sections to LD, winecfg crashes with the error:

002c:err:unwind:segv_handler_early Got unexpected trap 14 during process initialization
0024:err:environ:run_wineboot failed to start wineboot c00000e5
0024:err:unwind:segv_handler_early Got unexpected trap 14 during process initialization

No other wine components like wineboot launch, either. Filtering or removing the flag successfully launches wine. Have not tested this on a GCC+BFD build so I don't know if it happens there, too.
Comment 1 Ionen Wolkens gentoo-dev 2024-05-07 05:22:39 UTC
`emerge --info` and `emerge -pvqO wine-vanilla` for enabled USE?

(can't reproduce from a quick try, so there's likely more to it)
Comment 2 Ionen Wolkens gentoo-dev 2024-05-07 05:38:28 UTC
(In reply to Ionen Wolkens from comment #1)
> `emerge --info` and `emerge -pvqO wine-vanilla` for enabled USE?

err, wine-staging*
Comment 3 Ionen Wolkens gentoo-dev 2024-05-07 06:09:20 UTC
(In reply to Ionen Wolkens from comment #1)
> `emerge --info` and `emerge -pvqO wine-vanilla` for enabled USE?
> 
> (can't reproduce from a quick try, so there's likely more to it)
Or nevermind, I can -- think overlooked something while testing.
Comment 4 Ionen Wolkens gentoo-dev 2024-05-07 06:59:28 UTC
Can reproduce with bfd as well, figure I'll just filter it out.
Comment 5 Larry the Git Cow gentoo-dev 2024-05-07 07:19:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25857e5110b5e1de7ef2c41d6b5eedad0e6dcc8a

commit 25857e5110b5e1de7ef2c41d6b5eedad0e6dcc8a
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-05-07 07:05:08 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-05-07 07:18:16 +0000

    app-emulation/wine-staging: filter -Wl,--gc-sections
    
    Is an issue with both lld and bfd that I can see, likely due to
    the linker tricks wine uses. Let's just filter it as it's fragile.
    
    Skipping revbump given the option is rarely used and shouldn't
    affect many.
    
    Closes: https://bugs.gentoo.org/931329
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 app-emulation/wine-staging/wine-staging-9.0.ebuild  | 1 +
 app-emulation/wine-staging/wine-staging-9.5.ebuild  | 1 +
 app-emulation/wine-staging/wine-staging-9.6.ebuild  | 1 +
 app-emulation/wine-staging/wine-staging-9.7.ebuild  | 1 +
 app-emulation/wine-staging/wine-staging-9.8.ebuild  | 1 +
 app-emulation/wine-staging/wine-staging-9999.ebuild | 1 +
 6 files changed, 6 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14fedbed424316e0287e11054aac509376ac226b

commit 14fedbed424316e0287e11054aac509376ac226b
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-05-07 07:04:30 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-05-07 07:18:16 +0000

    app-emulation/wine-proton: filter -Wl,--gc-sections
    
    Is an issue with both lld and bfd that I can see, likely due to
    the linker tricks wine uses. Let's just filter it as it's fragile.
    
    Skipping revbump given the option is rarely used and shouldn't
    affect many.
    
    Bug: https://bugs.gentoo.org/931329
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 app-emulation/wine-proton/wine-proton-7.0.6.ebuild    | 1 +
 app-emulation/wine-proton/wine-proton-8.0.5c.ebuild   | 1 +
 app-emulation/wine-proton/wine-proton-9.0.1.ebuild    | 1 +
 app-emulation/wine-proton/wine-proton-9.0.9999.ebuild | 1 +
 4 files changed, 4 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31461ff0a6ace8d613fb3c17ba8b9d4336930723

commit 31461ff0a6ace8d613fb3c17ba8b9d4336930723
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-05-07 07:03:26 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-05-07 07:18:16 +0000

    app-emulation/wine-vanilla: filter -Wl,--gc-sections
    
    Is an issue with both lld and bfd that I can see, likely due to
    the linker tricks wine uses. Let's just filter it as it's fragile.
    
    Skipping revbump given the option is rarely used and shouldn't
    affect many.
    
    Bug: https://bugs.gentoo.org/931329
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 app-emulation/wine-vanilla/wine-vanilla-7.0.2.ebuild | 1 +
 app-emulation/wine-vanilla/wine-vanilla-8.0.2.ebuild | 1 +
 app-emulation/wine-vanilla/wine-vanilla-9.0.ebuild   | 1 +
 app-emulation/wine-vanilla/wine-vanilla-9.5.ebuild   | 1 +
 app-emulation/wine-vanilla/wine-vanilla-9.6.ebuild   | 1 +
 app-emulation/wine-vanilla/wine-vanilla-9.7.ebuild   | 1 +
 app-emulation/wine-vanilla/wine-vanilla-9.8.ebuild   | 1 +
 app-emulation/wine-vanilla/wine-vanilla-9999.ebuild  | 1 +
 8 files changed, 8 insertions(+)
Comment 6 unhappy-ending 2024-05-07 07:41:00 UTC
Thank you for testing GCC+BFD, glad I could help out.