wine fails to run with: "KERNEL32.DLL" failed to i

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ggking7
Newbie
Newbie
Posts: 3
Joined: Tue Nov 18, 2008 2:53 am

wine fails to run with: "KERNEL32.DLL" failed to i

Post by ggking7 »

I'm use Gentoo and I've tried wine-1.1.4 as well as the latest version from git. No matter which wine command I try, the error is always just about the same:

# winecfg
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\wineboot.exe" failed, status c0000005
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005

I've tried deleting .wine and I've tried running as a normal user and as root with the same results. Does anyone know how to fix this?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

wine fails to run with: "KERNEL32.DLL" failed to i

Post by austin987 »

On Tue, Nov 18, 2008 at 2:02 AM, ggking7 <[email protected]> wrote:
I'm use Gentoo and I've tried wine-1.1.4 as well as the latest version from git. No matter which wine command I try, the error is always just about the same:

# winecfg
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\wineboot.exe" failed, status c0000005
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005

I've tried deleting .wine and I've tried running as a normal user and as root with the same results. Does anyone know how to fix this?
Remove ~/.wine and run as normal user.


--
-Austin
ggking7
Newbie
Newbie
Posts: 3
Joined: Tue Nov 18, 2008 2:53 am

Post by ggking7 »

austin987,

Thank you for your response, but as I said I've already tried that. Here it is without .wine as a normal user:

$ winecfg
wine: created the configuration directory '/home/grant/.wine'
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\wineboot.exe" failed, status c0000005
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:heap:HEAP_GetPtr Invalid heap (nil)!
err:module:attach_process_dlls "KERNEL32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005
Gert van den Berg

wine fails to run with: "KERNEL32.DLL" failed to i

Post by Gert van den Berg »

On Tue, Nov 18, 2008 at 5:43 PM, ggking7 <[email protected]> wrote:
austin987,

Thank you for your response, but as I said I've already tried that. Here it is without .wine as a normal user:
Try re-emerging it (the ~* versions work fine...), run revdep-rebuild
and check your kernel settings related to User / Kernel split...

http://forum.winehq.org/viewtopic.php?t=1905

Gert
ggking7
Newbie
Newbie
Posts: 3
Joined: Tue Nov 18, 2008 2:53 am

Post by ggking7 »

Thank you, my kernel's pax support was causing the problem.
Locked