Bug 255336 - emulators/wine-devel: Won't start
Summary: emulators/wine-devel: Won't start
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gerald Pfeifer
Depends on:
Reported: 2021-04-22 20:19 UTC by Dwayne MacKinnon
Modified: 2021-07-12 00:55 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (gerald)


Note You need to log in before you can comment on or make changes to this bug.
Description Dwayne MacKinnon 2021-04-22 20:19:57 UTC
When I try to do anything with wine-devel, such as winecfg on a new prefix, all I get is this:

err:virtual:try_map_free_area mmap() error Cannot allocate memory, range 0x7fffffdf0000-0x7fffffff0000, unix_prot 0.
err:virtual:try_map_free_area mmap() error Cannot allocate memory, range 0x7fffffdf0000-0x7fffffff0000, unix_prot 0.
002c:fixme:winediag:LdrInitializeThunk wine-staging  is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (1001).
002c:err:wineboot:start_services_process Couldn't start services.exe: error 1001
wine: configuration in L"/home/dwayne/.local/share/wineprefixes/magic" has been updated.
0024:err:module:open_builtin_file failed to load .so lib "/usr/local/lib/wine/kernelbase.dll.so"
0024:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\kernel32.dll") failed (error c000007a).
wine: could not load kernel32.dll, status c0000135

The kernel32.dll, kernel32.dll.so, kernelbase.dll and kernelbase.dll.so files all exist.

I've seen this with both the staging patches and without.
Comment 1 Alex S 2021-04-22 21:22:05 UTC
Oh, this error...

Let me quote myself (from the FreeBSD Discord "server"):

> That only happens on FreeBSD 13.
> I'm looking into updating wine-proton to 6.3 and apparently it has this patch from staging applied: https://github.com/wine-staging/wine-staging/blob/534f6ae34e89615fa424ee3e3002b1b3d419a8ba/patches/ntdll-ForceBottomUpAlloc/0003-ntdll-Force-virtual-memory-allocation-order.patch.
> In combination with /usr/local/lib/gcc10/libgcc_s.so.1 this leads to the issue above.
> One workaround is to use /lib/libgcc_s.so.1 instead (for pure C apps they are fully compatible).
> No idea what's the root cause, of course.

Whatever you see without the staging patches is a different issue. (Likely https://bugs.winehq.org/show_bug.cgi?id=50257.)