[Bug 57819] New: Wine unable to start since rebuild with glibc 2.41
https://bugs.winehq.org/show_bug.cgi?id=57819 Bug ID: 57819 Summary: Wine unable to start since rebuild with glibc 2.41 Product: Wine Version: 10.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: mike(a)fireburn.co.uk Distribution: --- I've rebuilt my gentoo system with glibc 2.41, binutils 2.44 and gcc 14.2.1_p20241221 No wine programs start including winecfg and wineboot, even if I remove ~/.wine I see the following problem: winecfg 002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) 002c:fixme:winediag:loader_init wine-staging 10.0 is a testing version containing experimental patches. 002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org. 0044:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) wine: Unhandled page fault on write access to 0000000140021B30 at address 00006FFFFFF36730 (thread 0044), starting debugger... 0044:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 64 168" (2) Read the Wine Developers Guide on how to set up winedbg or another debugger wine: Unhandled page fault on write access to 0000000140021940 at address 00006FFFFFF36730 (thread 002c), starting debugger... 002c:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 40 160" (2) Read the Wine Developers Guide on how to set up winedbg or another debugger wine: could not load kernel32.dll, status c0000135 I'm guessing its related to the dlopen execstack stuff -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Mike Lothian <mike(a)fireburn.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine unable to start since |Wine unable to start when |rebuild with glibc 2.41 |built with binutils 2.44 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #1 from Mike Lothian <mike(a)fireburn.co.uk> --- I tried buiding with execstack and noexecstack - to no avail However downgrading bintuils from 2.44 back to 2.43 and rebuild wine allowed things to start again I'll try and figure out what exactly broke -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Zeckma <zeckma.tech(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zeckma.tech(a)gmail.com --- Comment #2 from Zeckma <zeckma.tech(a)gmail.com> --- I was also on glibc-2.41 + binutils-2.44. I was and am on an LFS system having followed Gaming LFS and came across the same error. After I have downgraded to Binutils-2.43 and MinGW-w64-Binutils-2.43 and rebuilt Wine-10.1, Wine worked. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #3 from Zeckma <zeckma.tech(a)gmail.com> --- I upgraded to Binutils-2.44 but kept MinGW-w64-Binutils at 2.43 and rebuilt Wine-10.1. Wine still worked, so I believe it is an issue with the MinGW-w64-Binutils side of things. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Béla Gyebrószki <gyebro69(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Sam James <sam(a)gentoo.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam(a)gentoo.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #4 from Mike Lothian <mike(a)fireburn.co.uk> --- Yeah, I'm bisecting now I'll open a bug with the binutils folk once I've pinpointed a commit -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #5 from Mike Lothian <mike(a)fireburn.co.uk> --- Yeah, I'm bisecting now I'll open a bug with the binutils folk once I've pinpointed a commit -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #6 from Mike Lothian <mike(a)fireburn.co.uk> --- db00f6c3aceabbf03acdb69e74b59b2d2b043cd7 is the first bad commit commit db00f6c3aceabbf03acdb69e74b59b2d2b043cd7 Author: Liu Hao <lh_mouse(a)126.com> Date: Wed Nov 27 14:27:53 2024 +0000 PE LD: Merge .CRT .ctors and .dtors into .rdata PR 32264 bfd/peXXigen.c | 3 ++- ld/scripttempl/pe.sc | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------- ld/scripttempl/pep.sc | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------- ld/testsuite/ld-pe/aarch64.d | 35 +++++++++++++---------------------- ld/testsuite/ld-pe/longsecn-1.d | 7 +++++-- ld/testsuite/ld-pe/longsecn-2.d | 7 +++++-- ld/testsuite/ld-pe/longsecn.d | 7 +++++-- ld/testsuite/ld-pe/orphan.d | 9 +++++---- ld/testsuite/ld-pe/orphan_nu.d | 9 +++++---- ld/testsuite/ld-pe/pdb2-section-contrib.d | 2 +- ld/testsuite/ld-pe/pe-aarch64.d | 13 ++----------- ld/testsuite/ld-pe/secidx.d | 6 +++--- ld/testsuite/ld-pe/secidx_64.d | 4 ++-- ld/testsuite/ld-pe/secidx_aarch64.d | 4 ++-- ld/testsuite/ld-pe/secrel.d | 2 +- ld/testsuite/ld-pe/secrel_64.d | 4 ++-- ld/testsuite/ld-pe/tlssec64.d | 2 +- 17 files changed, 172 insertions(+), 165 deletions(-) I'll try reverting -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #7 from Mike Lothian <mike(a)fireburn.co.uk> --- Yes reverting that patch fixes things -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Mike Lothian <mike(a)fireburn.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://sourceware.org/bugz | |illa/show_bug.cgi?id=32675 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #8 from Mike Lothian <mike(a)fireburn.co.uk> --- Reported upstream https://sourceware.org/bugzilla/show_bug.cgi?id=32675 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #9 from Mike Lothian <mike(a)fireburn.co.uk> --- From: LIU Hao 2025-02-10 15:02:28 UTC ``` 00007FFA9AF3C81C <ntdll.sub_7FFA | 48:8BC4 | mov rax, rsp | 00007FFA9AF3C81F | 48:8958 08 | mov qword ptr ds:[rax + 0x8], rbx | 00007FFA9AF3C823 | 48:8968 10 | mov qword ptr ds:[rax + 0x10], rbp | ... ... 00007FFA9AF3C93A | 48:893E | mov qword ptr ds:[rsi], rdi | rdi:InitCommonControls 00007FFA9AF3C93D | EB D8 | jmp ntdll.7FFA9AF3C917 | 00007FFA9AF3C93F | 45:33C0 | xor r8d, r8d | 00007FFA9AF3C942 | E9 59FFFFFF | jmp ntdll.7FFA9AF3C8A0 | ``` It faults at 00007FFA9AF3C93A, writing to `[rsi]` which is in `.idata` ``` 00007FF7757F0000 0000000000001000 regedit.exe IMG -R--- ERWC- 00007FF7757F1000 0000000000010000 ".text" IMG ER--- ERWC- 00007FF775801000 0000000000001000 ".data" IMG -RW-- ERWC- 00007FF775802000 0000000000001000 ".rodata" IMG -RWC- ERWC- 00007FF775803000 0000000000002000 ".rdata" IMG -R--- ERWC- 00007FF775805000 0000000000001000 ".pdata" IMG -R--- ERWC- 00007FF775806000 0000000000001000 ".xdata" IMG -R--- ERWC- 00007FF775807000 0000000000001000 ".bss" IMG -RWC- ERWC- 00007FF775808000 0000000000002000 ".idata" IMG -R--- ERWC- 00007FF77580A000 0000000000094000 ".rsrc" IMG -R--- ERWC- 00007FF77589E000 0000000000001000 ".reloc" IMG -R--- ERWC- ``` Also please be advised this happens in the main function, so it's Wine regedit that bugs. It must unprotect the `.idata` section before overwriting that pointer. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com Keywords| |download, source -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Sam James <sam(a)gentoo.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lh_mouse(a)126.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 --- Comment #10 from LIU Hao <lh_mouse(a)126.com> --- Please see the patch attached in https://sourceforge.net/p/mingw-w64/mailman/message/59129001/ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Jacek Caban <jacek(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek(a)codeweavers.com --- Comment #11 from Jacek Caban <jacek(a)codeweavers.com> --- It should be fixed with https://gitlab.winehq.org/wine/wine/-/merge_requests/7328 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Jacek Caban <jacek(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |c9519f68ea04915a60704534ab3 | |afec5ec1b8fd7 --- Comment #12 from Jacek Caban <jacek(a)codeweavers.com> --- Fixed in git. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57819 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #13 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 10.2. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla