https://bugs.winehq.org/show_bug.cgi?id=49326
Bug ID: 49326 Summary: unable to run any applications since: 676f261e5e9959e8fb9fe6266ffd2a29bcda2c0d Updated ntdll-ForceBottomUpAlloc patchset. Product: Wine-staging Version: 5.10 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: bob.mt.wya@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 67357 --> https://bugs.winehq.org/attachment.cgi?id=67357 wine-staging-676f261e5e9959e8fb9fe6266ffd2a29bcda2c0d-wineboot_log.txt
Since:
676f261e5e9959e8fb9fe6266ffd2a29bcda2c0d Updated ntdll-ForceBottomUpAlloc patchset.
Running any application (builtin or external) with Wine fails e.g. wineboot , winecfg , etc.
Tested with Gentoo + wine-staging:9999 (EGIT_OVERRIDE_COMMIT_WINE_STAGING_WINE_STAGING="676f261e5e9959e8fb9fe6266ffd2a29bcda2c0d")
Attached is a log with: export WINEDEBUG=+virtual,+module,+seh
https://bugs.winehq.org/show_bug.cgi?id=49326
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|unable to run any |All applications fail to |applications since: |run due to an assertion |676f261e5e9959e8fb9fe6266ff |failure: |d2a29bcda2c0d Updated |"dlls/ntdll/virtual.c:272: |ntdll-ForceBottomUpAlloc |free_ranges_remove_range: |patchset. |Assertion `range->base <= | |view_base && range->end >= | |view_end' failed." CC| |gofmanp@gmail.com Regression SHA1| |676f261e5e9959e8fb9fe6266ff | |d2a29bcda2c0d Severity|normal |critical Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=49326
juliansperling@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |juliansperling@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=49326
ajmklean meanmklean@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |meanmklean@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=49326
Anya animegirl@stronzi.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |animegirl@stronzi.org
https://bugs.winehq.org/show_bug.cgi?id=49326
Kimball kdt3rd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kdt3rd@gmail.com
--- Comment #1 from Kimball kdt3rd@gmail.com --- Created attachment 67361 --> https://bugs.winehq.org/attachment.cgi?id=67361 log with range and next prints when error happening
I also am seeing this behavior. I added some prints to the ERR that happens to print the found free range and next, and (running wine64 start winecfg), it prints the attached error log. Based on that, and seeing that range->end == view_base, I injected the patch I will add next, and things are working (maybe). I wonder if there's a bug in gcc 10.1.0 or something - just the act of compiling seems to change the behavior - I had initially tried to bisect, and couldn't reproduce it. But a full clean recompile brought it right back. This did not seem to happen on vanilla wine.
https://bugs.winehq.org/show_bug.cgi?id=49326
--- Comment #2 from Kimball kdt3rd@gmail.com --- Created attachment 67362 --> https://bugs.winehq.org/attachment.cgi?id=67362 patch that may help
Adding this and recompiling seemed to make the error and assert go away for me, but not sure if the above patch is correct, it seems like it's patching up a logic error - but hope this helps isolate what that logic error might be.
https://bugs.winehq.org/show_bug.cgi?id=49326
Alexander Nikolaev avnick@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |avnick@gmail.com
--- Comment #3 from Alexander Nikolaev avnick@gmail.com --- Bug reproduced with gcc 9.3. Will check, if last patch helps
https://bugs.winehq.org/show_bug.cgi?id=49326
--- Comment #4 from juliansperling@gmail.com --- "Patch that may help" works for me, wineboot and Running programs works as before. (Arch Linux, gcc 10.1.0-2)
https://bugs.winehq.org/show_bug.cgi?id=49326
Nguyá»…n ChÃnh Hữu huupoke12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |huupoke12@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=49326
rtentser@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rtentser@yandex.ru
https://bugs.winehq.org/show_bug.cgi?id=49326
Alex Xu alex_y_xu@yahoo.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alex_y_xu@yahoo.ca
https://bugs.winehq.org/show_bug.cgi?id=49326
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shagooserver@gmail.com
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- *** Bug 49341 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=49326
aguertin+wine@aguertin.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aguertin+wine@aguertin.net
--- Comment #6 from aguertin+wine@aguertin.net --- Notably, the ntdll-ForceBottomUpAlloc patchset was disabled until commit 676f261e also removed 'Disabled: true' from its definition file. I confirmed that re-disabling the patchset gets things working again. Was enabling it intended? It seems like it's not ready yet.
https://bugs.winehq.org/show_bug.cgi?id=49326
Jonathan Liu net147@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |net147@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=49326
Paul Gofman pgofman@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pgofman@codeweavers.com
--- Comment #7 from Paul Gofman pgofman@codeweavers.com --- Created attachment 67372 --> https://bugs.winehq.org/attachment.cgi?id=67372 Test patch
Does the attached patch help?
https://bugs.winehq.org/show_bug.cgi?id=49326
--- Comment #8 from Robert Walker bob.mt.wya@gmail.com --- (In reply to Paul Gofman from comment #7)
Created attachment 67372 [details] Test patch
Does the attached patch help?
Yup, thanks! That resolves the issues I'm seeing on my system (after some rudimentary testing).
https://bugs.winehq.org/show_bug.cgi?id=49326
--- Comment #9 from Paul Gofman pgofman@codeweavers.com --- Should be fixed by 044cb930662d61f401a5d1bdd7b8e75d59cea5ea
https://bugs.winehq.org/show_bug.cgi?id=49326
--- Comment #10 from Robert Walker bob.mt.wya@gmail.com --- ZF... Is a re-release of Wine Staging (5.10.1) going to be tagged?
https://bugs.winehq.org/show_bug.cgi?id=49326
--- Comment #11 from Paul Gofman pgofman@codeweavers.com --- (In reply to Robert Walker from comment #10)
Could you please attach the full WINEDEBUG=+pid,+virtual,+module,+process log with the latest patch? And also the exact command line how do you run Wine (the way it would fail without the patch)?
The thing is, I could not ever reproduce the problem like described here without some very specific settings, and it was the same for some other people. And while there was definitely a bug (which should be fixed now), maybe I could finally guess the reason why it fails specifically for some people and maybe suggest some workaround with existing version.
https://bugs.winehq.org/show_bug.cgi?id=49326
--- Comment #12 from Alex Xu alex_y_xu@yahoo.ca --- (In reply to Paul Gofman from comment #11)
(In reply to Robert Walker from comment #10)
Could you please attach the full WINEDEBUG=+pid,+virtual,+module,+process log with the latest patch? And also the exact command line how do you run Wine (the way it would fail without the patch)?
The thing is, I could not ever reproduce the problem like described here without some very specific settings, and it was the same for some other people. And while there was definitely a bug (which should be fixed now), maybe I could finally guess the reason why it fails specifically for some people and maybe suggest some workaround with existing version.
I had this issue on Gentoo wine-staging-5.10.
$ export WINEPREFIX=$(mktemp -d) $ wine explorer 002c:fixme:winediag:__wine_start_process Wine Staging 5.10 is a testing version containing experimental patches. 002c:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on winehq.org. 0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002 0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002 0048:err:ole:get_local_server_stream Failed: 80004002 0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002 0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002 0050:err:ole:get_local_server_stream Failed: 80004002 0070:err:virtual:free_ranges_remove_range range 0x10000000 - 0x10020000 is already partially mapped exe: /tmp/portage/app-emulation/wine-staging-5.10/work/wine-5.10/dlls/ntdll/unix/virtual.c:581: free_ranges_remove_range: Assertion `range->base <= view_base && range->end >= view_end' failed. 0090:err:virtual:free_ranges_remove_range range 0x10000000 - 0x10020000 is already partially mapped exe: /tmp/portage/app-emulation/wine-staging-5.10/work/wine-5.10/dlls/ntdll/unix/virtual.c:581: free_ranges_remove_range: Assertion `range->base <= view_base && range->end >= view_end' failed. 002c:err:setupapi:SetupDiInstallDevice Failed to start service L"winebus" for device L"ROOT\WINE\WINEBUS", error 1359. 00a0:err:virtual:free_ranges_remove_range range 0x10000000 - 0x10020000 is already partially mapped exe: /tmp/portage/app-emulation/wine-staging-5.10/work/wine-5.10/dlls/ntdll/unix/virtual.c:581: free_ranges_remove_range: Assertion `range->base <= view_base && range->end >= view_end' failed. 002c:err:setupapi:SetupDiInstallDevice Failed to start service L"wineusb" for device L"ROOT\WINE\WINEUSB", error 1359. wine: configuration in L"/tmp/tmp.4YO2pEQ3dh" has been updated. 0024:err:ole:create_server class {9ba05972-f6a8-11cf-a442-00a0c90a8f39} not registered 0024:err:ole:CoGetClassObject no class object {9ba05972-f6a8-11cf-a442-00a0c90a8f39} could be created for context 0x4 0024:fixme:nstc:NSTC2_fnSetControlStyle2 mask & style (0x00000004) contains unsupported style(s): 0x00000004 0024:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x852938 (2, 1026, a003, 0, 0x31f5cc) 0024:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x852938 (2, 1026, a004, 1, 0x31f5cc) 0024:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x852938 (2, 1025, a003, 1, 0x31f5cc) 0024:fixme:shell:IShellBrowser_fnSendControlMsg stub, 0x852938 (2, 1025, a004, 1, 0x31f5cc) [ explorer opens; mouse over and close window ] 0024:fixme:shell:IShellBrowser_fnOnViewWindowActive stub, 0x852938 (0x874418) 0024:fixme:shell:ShellView_OnNotify LVN_KEYDOWN key=0x00000010 0024:fixme:shell:ShellView_OnNotify LVN_KEYDOWN key=0x0000005b wine: Unhandled page fault on read access to 00000000 at address 7EA7BF09 (thread 0024), starting debugger... 00ac:err:virtual:free_ranges_remove_range range 0x10000000 - 0x10020000 is already partially mapped
/tmp/portage/app-emulation/wine-staging-5.10/work/wine-5.10/dlls/ntdll/unix/virtual.c:581: free_ranges_remove_range: Assertion `range->base <= view_base && range->end >= view_end' failed. 0024:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 32 172" (1359) Read the Wine Developers Guide on how to set up winedbg or another debugger $ wine explorer 002c:err:virtual:free_ranges_remove_range range 0x10000000 - 0x10020000 is already partially mapped e: /tmp/portage/app-emulation/wine-staging-5.10/work/wine-5.10/dlls/ntdll/unix/virtual.c:581: free_ranges_remove_range: Assertion `range->base <= view_base && range->end >= view_end' failed. 0024:err:environ:run_wineboot failed to start wineboot c00000e5 0024:fixme:winediag:start_process Wine Staging 5.10 is a testing version containing experimental patches. 0024:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org. 0034:err:virtual:free_ranges_remove_range range 0x10000000 - 0x10020000 is already partially mapped e: /tmp/portage/app-emulation/wine-staging-5.10/work/wine-5.10/dlls/ntdll/unix/virtual.c:581: free_ranges_remove_range: Assertion `range->base <= view_base && range->end >= view_end' failed. 0024:err:ole:create_server class {9ba05972-f6a8-11cf-a442-00a0c90a8f39} not registered 0024:err:ole:CoGetClassObject no class object {9ba05972-f6a8-11cf-a442-00a0c90a8f39} could be created for context 0x4 0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0024:err:winediag:nodrv_CreateWindow The explorer process failed to start. [ explorer is not displayed, process hangs until ^C ] ^C0038:fixme:console:default_ctrl_handler Terminating process 20 on event 0
I am using 5.7.0+git kernel with gcc 10.1.0 and glibc 2.31. It could be related to gcc 10 or glibc 2.31, I don't know. I haven't tried this patch yet.
https://bugs.winehq.org/show_bug.cgi?id=49326
Alan A. grsfdhj@tiscali.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |grsfdhj@tiscali.it
--- Comment #13 from Alan A. grsfdhj@tiscali.it --- (In reply to Paul Gofman from comment #9)
Should be fixed by 044cb930662d61f401a5d1bdd7b8e75d59cea5ea
This commit fixes it for me. Now I'm able to at least launch winecfg in an existing WINEPREFIX. This is on a Slackware64 14.2 system, with gcc-5.5.0
https://bugs.winehq.org/show_bug.cgi?id=49326
--- Comment #14 from Robert Walker bob.mt.wya@gmail.com --- Created attachment 67379 --> https://bugs.winehq.org/attachment.cgi?id=67379 wine-staging-044cb930662d61f401a5d1bdd7b8e75d59cea5ea_wineboot_log
(In reply to Paul Gofman from comment #11)
(In reply to Robert Walker from comment #10)
Could you please attach the full WINEDEBUG=+pid,+virtual,+module,+process log with the latest patch? And also the exact command line how do you run Wine (the way it would fail without the patch)?
The thing is, I could not ever reproduce the problem like described here without some very specific settings, and it was the same for some other people. And while there was definitely a bug (which should be fixed now), maybe I could finally guess the reason why it fails specifically for some people and maybe suggest some workaround with existing version.
Log attached.
My minimal trigger command, for this bug, was simply:
wineboot -u
Which is used to create a (clean) 64-bit WINEPREFIX.
Tested with 64-bit Gentoo, with gcc (Gentoo 10.1.0 p1) 10.1.0
CPU: 16-Core (2-Die) AMD Ryzen 9 3950X (-MT MCP MCM-) speed/min/max: 3155/2200/3500 MHz Kernel: 5.7.0-gentoo-x86_64 x86_64
https://bugs.winehq.org/show_bug.cgi?id=49326
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |davech@t-online.de
--- Comment #15 from Zebediah Figura z.figura12@gmail.com --- *** Bug 49354 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=49326
Nikolay Borodin monsterovich@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |monsterovich@gmail.com
--- Comment #16 from Nikolay Borodin monsterovich@gmail.com --- This bug appears for me in in Warframe launcher. It doesn't occur in wine-staging 5.9.
https://bugs.winehq.org/show_bug.cgi?id=49326
Jan ThePsyjo@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ThePsyjo@googlemail.com
--- Comment #17 from Jan ThePsyjo@googlemail.com --- I can confirm the issue is fixed with commit 044cb930662d61f401a5d1bdd7b8e75d59cea5ea
https://bugs.winehq.org/show_bug.cgi?id=49326
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |044cb930662d61f401a5d1bdd7b | |8e75d59cea5ea Status|UNCONFIRMED |RESOLVED
--- Comment #18 from Zebediah Figura z.figura12@gmail.com --- Marking fixed.
https://bugs.winehq.org/show_bug.cgi?id=49326
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Zebediah Figura z.figura12@gmail.com --- Closing bugs fixed in wine-staging 5.11.