http://bugs.winehq.com/show_bug.cgi?id=1864
Summary: LdrInitializeThunk Main exe initialization failed, status c0000142 Product: Wine Version: unspecified Platform: Other OS/Version: FreeBSD Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.com ReportedBy: rbt@rbt.ca
New error with 20031118.
Snippet from debugmsg +all is below. Attempting to run Total Annihilation from CD installation on FreeBSD.
0009:trace:module:process_attach (L"smackw32.DLL",0x1) - END 0009:trace:module:process_attach (L"dplayx.dll",0x1) - START 0009:Call PE DLL (proc=0x5c9fa3ac,module=0x5c9e0000 L"dplayx.dll",reason=PROCESS_ATTACH,res=0x1) 0009:trace:dplay:DllMain (0x5c9e0000,0x00000001,0x1) 0009:Call kernel32.DisableThreadLibraryCalls(5c9e0000) ret=5c9fa3ee 0009:Ret kernel32.DisableThreadLibraryCalls() retval=00000001 ret=5c9fa3ee 0009:trace:dplay:DPLAYX_ConstructData DPLAYX dll loaded - construct called 0009:Call kernel32.CreateSemaphoreA(5c57fe00,00000001,00000001,5ca022df "WINE_DPLAYX_SM") ret=5c9f8077 0009: create_semaphore( initial=00000001, max=00000001, inherit=1, name=L"WINE_DPLAYX_SM" ) 0009: create_semaphore() = 0 { handle=0x58 } 0009:Ret kernel32.CreateSemaphoreA() retval=00000058 ret=5c9f8077 0009:trace:dplay:DPLAYX_ConstructData Semaphore 0x58 created 0009:trace:dplay:DPLAYX_ConstructData Waiting for DPLAYX semaphore 0009:Call kernel32.WaitForSingleObject(00000058,ffffffff) ret=5c9f80c1 0009: select( flags=4, cookie=0x5c57fb4c, timeout=0, handles={0x58} ) 0009: select() = 0 0009:Ret kernel32.WaitForSingleObject() retval=00000000 ret=5c9f80c1 0009:trace:dplay:DPLAYX_ConstructData Through wait 0009:Call kernel32.CreateFileMappingA(ffffffff,5c57fe00,08000004,00000000,000a0000,5ca022ee "WINE_DPLAYX_FM") ret=5c9f80e4 0009: create_mapping( size_high=0, size_low=655360, protect=67, access=000f0007, inherit=1, file_handle=0x0, name=L"WINE_DPLAYX_FM" ) 0009: create_mapping() = 0 { handle=0x5c } 0009:Ret kernel32.CreateFileMappingA() retval=0000005c ret=5c9f80e4 0009:trace:dplay:DPLAYX_ConstructData File mapped 0x5c created 0009:Call kernel32.MapViewOfFileEx(0000005c,00000002,00000000,00000000,00000000,50000000) ret=5c9f811b 0009:trace:virtual:NtMapViewOfSection handle=0x5c addr=0x50000000 off=000000000 size=0 access=4 0009: get_mapping_info( handle=0x5c ) 0009: get_mapping_info() = 0 { size_high=0, size_low=655360, protect=67, header_size=0, base=0x0, shared_file=0x0, shared_size=0, removable=0 } 0009: get_handle_fd( handle=0x5c, access=00000000 ) 0009: *fd* 0x5c -> 27 0009: get_handle_fd() = 0 { fd=-1, type=1, flags=0 } 0009: set_handle_info( handle=0x5c, flags=0, mask=0, fd=11 ) 0009: set_handle_info() = 0 { old_flags=1, cur_fd=11 } 0009:Ret kernel32.MapViewOfFileEx() retval=00000000 ret=5c9f811b 0009:err:dplay:DPLAYX_ConstructData : unable to map static data into process memory space (487) 0009:Ret PE DLL (proc=0x5c9fa3ac,module=0x5c9e0000 L"dplayx.dll",reason=PROCESS_ATTACH,res=0x1) retval=0 0009:trace:module:process_attach (L"dplayx.dll",0x1) - END 0009:trace:module:process_attach (L"totala.exe",0x1) - END 0009:err:module:LdrInitializeThunk Main exe initialization failed, status c0000142 0009:Call kernel32.__wine_unregister_dll_16(5f886d40) ret=5f87b4f0 0009:Ret kernel32.__wine_unregister_dll_16() retval=00000018 ret=5f87b4f0