http://bugs.winehq.org/show_bug.cgi?id=24680
Summary: loader: segfault after loading krnl386.exe, while LoadLibraryEx for any buildin dll Product: Wine Version: 1.3.4 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: loader AssignedTo: wine-bugs@winehq.org ReportedBy: wine.dev@web.de
Created an attachment (id=31193) --> (http://bugs.winehq.org/attachment.cgi?id=31193) +loaddll,+process,+tid.txt
Detected while testing https://answers.launchpad.net/ubuntu/+source/wine/+question/127977
When using "wine inetcpl.cpl" (or any other builtin dll: "wine gdi32.dll" as example), the referenced builtin dlls are loaded and a Segmentation fault occur after loading "krnl386.exe16"
When loading a native dll, then no referenced dlls are loaded, and the error ".... gdi32.dll is a dll, not an executable") is printed to the console.
No referenced dll must be loaded, as we have in ___wine_kernel_init: LoadLibraryExW( main_exe_name, 0, DONT_RESOLVE_DLL_REFERENCES );
After renaming "krnl386.exe16.so", the segfault does no longer occur and the expected message is visible on the terminal:
009:err:module:LdrInitializeThunk L"C:\windows\system32\gdi32.dll" is a dll, not an executable
The segfault is present on x86 and x86-64 (wine32)