http://bugs.winehq.org/show_bug.cgi?id=30809
Bug #: 30809 Summary: ConEmu: Fails to start cmd.exe Product: Wine Version: 1.5.5 Platform: x86 URL: http://code.google.com/p/conemu-maximus5/downloads/det ail?name=ConEmu.120527a.7z&can=2&q= OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: techtonik@gmail.com Classification: Unclassified
wine ConEmu.exe fails. It should start a console child process with CMD.EXE that connects to the main ConEmu GUI, but child process fails with an error message:
ConEmuC.M, PID=39, Injecting hooks into PID=51 FAILED, code=-710:0x00000005
stdout shows:
$ wine ConEmu.exe fixme:uxtheme:BufferedPaintInit Stub () fixme:win:RegisterShellHookWindow (0x10072): stub err:rebar:REBAR_WindowProc unknown msg 200b wp=00000000 lp=00495520 fixme:x11drv:sync_window_opacity LWA_COLORKEY not supported fixme:console:GetConsoleProcessList (0x51dbe8,1000): stub fixme:console:GetConsoleProcessList (0x51dbe8,1000): stub
fixme:console:GetConsoleProcessList (0x51dbe8,1000): stub fixme:console:GetConsoleProcessList (0x33ec8c,10): stub
http://bugs.winehq.org/show_bug.cgi?id=30809
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=30809
Maximus ConEmu.Maximus5@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ConEmu.Maximus5@gmail.com
--- Comment #1 from Maximus ConEmu.Maximus5@gmail.com 2012-06-01 02:30:59 CDT --- This means, that GetThreadContext was failed, with code ERROR_ACCESS_DENIED. I suppose, that SetThreadContext will fails too.
Process/thread handle were created with CreateProcessW
http://bugs.winehq.org/show_bug.cgi?id=30809
--- Comment #2 from anatoly techtonik techtonik@gmail.com 2012-06-01 04:07:41 CDT --- Can't find anything strange from process log: $ WINEDEBUG=process wine ConEmu.exe ... trace:process:create_process_impl app (null) cmdline L"C:\windows\System32\cmd.exe" trace:process:find_exe_file looking for L"C:\windows\System32\cmd.exe" trace:process:find_exe_file Trying native exe L"C:\windows\System32\cmd.exe" trace:process:create_process_impl starting L"C:\windows\System32\cmd.exe" as Win32 binary (0x10000000-0x10094000) trace:process:init_current_directory starting in L"C:\ConEmu\" 0x1c trace:process:__wine_kernel_init starting process name=L"C:\windows\system32\cmd.exe" argv[0]=L"C:\windows\System32\cmd.exe" trace:process:create_process_impl started process pid 0033 tid 0034 ...
Although relay log is a bit strange - looks like some race condition in log writer. $ WINEDEBUG=relay wine ConEmu.exe ... 0009:Call KERNEL32.lstrlenW(00d60456 L"") ret=00468938 0028:Call KERNEL32.CreateProcessW(00000000,00519bd8 L"C:\w0009:Call KERNEL32.lstrlenW(00d60458 L"") ret=00468938 0009:Ret KERNEL32.lstrlenW() retval=00000000 ret=00468938 ...
http://bugs.winehq.org/show_bug.cgi?id=30809
--- Comment #3 from Maximus ConEmu.Maximus5@gmail.com 2012-06-01 05:18:39 CDT --- Problem occured in ConEmuC.exe. Why you are looking the log from ConEmu.exe?
http://bugs.winehq.org/show_bug.cgi?id=30809
--- Comment #4 from anatoly techtonik techtonik@gmail.com 2012-06-01 05:22:30 CDT --- Forget about my last message - wrong trace. GetThreadContext failed, indeed. .. 0028:Ret KERNEL32.GetThreadContext() retval=00000000 ret=5462433f 0028:Call KERNEL32.GetLastError() ret=54624349 0028:Ret KERNEL32.GetLastError() retval=00000005 ret=54624349
Well, I am looking at ConEmu.exe log, because that's the program I launch. If you tell me the corresponding way to execute ConEmuC.exe - I'll try it.
http://bugs.winehq.org/show_bug.cgi?id=30809
Sergey sohorev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sohorev@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30809
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED URL|http://code.google.com/p/co |http://code.google.com/p/co |nemu-maximus5/downloads/det |nemu-maximus5/downloads/det |ail?name=ConEmu.120527a.7z& |ail?name=ConEmu.120527a.7z |can=2&q= | CC| |focht@gmx.net Resolution|--- |FIXED
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
works as designed here. The hook dll gets successfully injected.
--- snip --- $ WINEDEBUG=+tid,+seh,+relay,+cmd wine ./ConEmu.exe >>log.txt 2>&1 ... 0041:Call KERNEL32.CreateProcessW(00000000,00737a90 L""Z:\home\focht\Downloads\ConEmu\ConEmuC.exe" /GID=60 /BW=80 /BH=25 /BZ=1000 "/FN=Lucida Console" /FW=3 /FH=5 /HIDE /ROOT C:\windows\System32\cmd.exe",00000000,00000000,00000000,04000030,00000000,00000000,0118e740,0118e794) ret=0045ff99 ... 0043:Call KERNEL32.__wine_kernel_init() ret=7bc5a3aa ... 0041:Ret KERNEL32.CreateProcessW() retval=00000001 ret=0045ff99 ... 0043:Starting process L"Z:\home\focht\Downloads\ConEmu\ConEmuC.exe" (entryproc=0x401020) ... 0043:Call KERNEL32.CreateProcessW(00000000,00519bd8 L"C:\windows\System32\cmd.exe",00517150,00517150,00000000,00000024,00000000,00000000,0033fb94,0033fbe0) ret=546113e8 ... 0023:Call KERNEL32.__wine_kernel_init() ret=7bc5a3aa ... 0043:Ret KERNEL32.CreateProcessW() retval=00000001 ret=546113e8 ... ... 0043:Call KERNEL32.GetThreadContext(000000f4,0033dae8) ret=5462433f ... 0043:Ret KERNEL32.GetThreadContext() retval=00000001 ret=5462433f ... 0043:Call KERNEL32.VirtualAllocEx(000000f0,00000000,0000006c,00003000,00000240) ret=54624380 0043:Ret KERNEL32.VirtualAllocEx() retval=00340000 ret=54624380 0043:Call KERNEL32.WriteProcessMemory(000000f0,00340000,0061c638,0000006c,00000000) ret=54624544 0043:Ret KERNEL32.WriteProcessMemory() retval=00000001 ret=54624544 ... 0043:Call KERNEL32.SetThreadContext(000000f4,0033dae8) ret=546245b7 0043:Ret KERNEL32.SetThreadContext() retval=00000001 ret=546245b7 ... 0043:Call KERNEL32.ResumeThread(000000f4) ret=54611d4b 0043:Ret KERNEL32.ResumeThread() retval=00000001 ret=54611d4b ... 0023:Call KERNEL32.LoadLibraryW(00340014 L"Z:\home\focht\Downloads\ConEmu\ConEmuHk.dll") ret=00340011 ... 0023:Ret PE DLL (proc=0x7e134eb9,module=0x7e110000 L"ConEmuHk.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1 ... 0023:Ret KERNEL32.LoadLibraryW() retval=7e110000 ret=00340011 ... 0023:Starting process L"C:\windows\system32\cmd.exe" (entryproc=0x7ed3b1d4) --- snip ---
"Show real console" in settings will show the wine console window.
$ sha1sum ConEmu.120527a.7z c7563e635e7bde56297da7400726345e4fe54228 ConEmu.120527a.7z
$ du -sh ConEmu.120527a.7z 1.4M ConEmu.120527a.7z
$ wine --version wine-1.7.14-52-g31faed5
Regards
https://bugs.winehq.org/show_bug.cgi?id=30809
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.15.
http://bugs.winehq.org/show_bug.cgi?id=30809
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |saulius2@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30809
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |obfuscation