http://bugs.winehq.org/show_bug.cgi?id=18479
Summary: problem with writing to stdout under MSYS Product: Wine Version: 1.1.21 Platform: PC-x86-64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jeffz@jeffz.name
install MSYS and MinGW, start MSYS using c:\MSYS\1.0\msys.bat
cd /c/mingw/bin ld --help
Nothing is printed, looking at a trace:
and an exception occurs in ld.exe, it looks like something has gone wrong with stdout:
Lots of: 0040:warn:msvcrt:msvcrt_fdtoh :fd (1) - no handle!
All the calls to puts printing the --help output etc return 0:
0040:Call msvcrt.puts(0048aafa "Link little-endian objects") ret=004070ab 0040:Ret msvcrt.puts() retval=00000000 ret=004070ab
And eventually the exception occurs:
0040:Call KERNEL32.MultiByteToWideChar(00000000,00000000,0048a305 " ",ffffffff,00000000,00000000) ret=7ed98632 0040:Ret KERNEL32.MultiByteToWideChar() retval=00000003 ret=7ed98632 0040:Call ntdll.RtlAllocateHeap(00110000,00000000,00000006) ret=7ed98658 0040:trace:seh:raise_exception code=c0000005 flags=0 addr=0x7bc4501d ip=7bc4501d tid=0040 ...