msvcrt/libc clash?

Tijl Coosemans tijl at ulyssis.org
Tue Aug 1 17:37:01 CDT 2006


Somewhat further along the way of fixing Wine on FreeBSD I'm stuck with 
what appears to be a clash between msvcrt and libc.

Attached is the output of running "env WINEDEBUG=trace+msvcrt notepad". 
It looks like msvcrt's _spawnve is called to run a Wine process. The 
same happens when running the msvcrt file test (2nd attachment), where 
the test on line 563 and 565 fails.

The actual problem is probably with the _execve symbol, because FreeBSD 
doesn't have any of the spawn calls. So, how to solve this?
-------------- next part --------------
trace:msvcrt:DllMain (0x7cb50000, UNKNOWN, 0x0) pid(8), tid(9), tls(0)
trace:msvcrt:DllMain (0x7cb50000, DLL_PROCESS_ATTACH, 0x1) pid(8), tid(9), tls(0)
trace:msvcrt:msvcrt_init_mt_locks initializing mtlocks
trace:msvcrt:msvcrt_init_io :handles (0x3c)(0x40)(0x48)
trace:msvcrt:msvcrt_init_console :Opening console handles
trace:msvcrt:msvcrt_init_args got "notepad.exe", wide = L"notepad.exe" argc=1
trace:msvcrt:MSVCRT_setlocale (0 C)
trace:msvcrt:_lock (19)
trace:msvcrt:_lock (17)
trace:msvcrt:_lock : creating lock #19
trace:msvcrt:_unlock (17)
trace:msvcrt:_unlock (19)
trace:msvcrt:DllMain finished process init
trace:msvcrt:_spawnve :call ("/usr/local/lib/../bin/wine"), params ("/usr/local/lib/../bin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/local/lib/../bin/wine.exe
trace:msvcrt:_spawnve :call ("/sbin/wine"), params ("/sbin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /sbin/wine.exe
trace:msvcrt:_spawnve :call ("/bin/wine"), params ("/bin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /bin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/sbin/wine"), params ("/usr/sbin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/sbin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/bin/wine"), params ("/usr/bin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/bin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/games/wine"), params ("/usr/games/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/games/wine.exe
trace:msvcrt:_spawnve :call ("/usr/local/sbin/wine"), params ("/usr/local/sbin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/local/sbin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/local/bin/wine"), params ("/usr/local/bin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/local/bin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/X11R6/bin/wine"), params ("/usr/X11R6/bin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/X11R6/bin/wine.exe
trace:msvcrt:_spawnve :call ("/home/tijl/bin/wine"), params ("/home/tijl/bin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /home/tijl/bin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/local/bin/wine"), params ("/usr/local/bin/wine explorer.exe /desktop"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/local/bin/wine.exe
trace:msvcrt:DllMain (0x7cb50000, DLL_PROCESS_DETACH, 0x1) pid(8), tid(9), tls(2)
trace:msvcrt:msvcrt_free_mt_locks : uninitializing all mtlocks
trace:msvcrt:MSVCRT__fcloseall :closed (0) handles
trace:msvcrt:_close :fd (0) handle (0x3c)
trace:msvcrt:msvcrt_free_fd :fd (0) freed
trace:msvcrt:_close :ok
trace:msvcrt:_close :fd (1) handle (0x40)
trace:msvcrt:msvcrt_free_fd :fd (1) freed
trace:msvcrt:_close :ok
trace:msvcrt:_close :fd (2) handle (0x48)
trace:msvcrt:msvcrt_free_fd :fd (2) freed
trace:msvcrt:_close :ok
trace:msvcrt:msvcrt_free_console :Closing console handles
trace:msvcrt:DllMain finished process free
-------------- next part --------------
trace:msvcrt:_spawnve :call ("H:\\projects\\wine\\wine\\dlls\\msvcrt\\tests\\msvcrt_test.exe.so"), params ("msvcrt_test.exe.so tests/file.c 3"), env (Null)
trace:msvcrt:_spawnve fullname: H:\projects\wine\wine\dlls\msvcrt\tests\msvcrt_test.exe.so
trace:msvcrt:_spawnve :call ("/usr/local/lib/../bin/wine"), params ("/usr/local/lib/../bin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/local/lib/../bin/wine.exe
trace:msvcrt:_spawnve :call ("/sbin/wine"), params ("/sbin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /sbin/wine.exe
trace:msvcrt:_spawnve :call ("/bin/wine"), params ("/bin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /bin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/sbin/wine"), params ("/usr/sbin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/sbin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/bin/wine"), params ("/usr/bin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/bin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/games/wine"), params ("/usr/games/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/games/wine.exe
trace:msvcrt:_spawnve :call ("/usr/local/sbin/wine"), params ("/usr/local/sbin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/local/sbin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/local/bin/wine"), params ("/usr/local/bin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/local/bin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/X11R6/bin/wine"), params ("/usr/X11R6/bin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/X11R6/bin/wine.exe
trace:msvcrt:_spawnve :call ("/home/tijl/bin/wine"), params ("/home/tijl/bin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /home/tijl/bin/wine.exe
trace:msvcrt:_spawnve :call ("/usr/local/bin/wine"), params ("/usr/local/bin/wine msvcrt_test.exe.so tests/file.c 3"), env (Custom)
fixme:msvcrt:_spawnve only trying .exe when no extension given
trace:msvcrt:_spawnve fullname: /usr/local/bin/wine.exe
trace:msvcrt:_lseeki64 :fd (3) handle (0x2c)
trace:msvcrt:_lseeki64 :fd (3) to 0 pos SEEK_CUR
trace:msvcrt:_lseeki64 :fd (3) handle (0x2c)
trace:msvcrt:_lseeki64 :fd (3) to 0 pos SEEK_CUR
trace:msvcrt:pf_vsnprintf format is L"%s:%d: Test failed"
file.c:563: Test failedtrace:msvcrt:pf_vsnprintf format is L": "
: trace:msvcrt:pf_vsnprintf format is L"bad position %lu expecting 8\n"
bad position 0 expecting 8
trace:msvcrt:_lseeki64 :fd (3) handle (0x2c)
trace:msvcrt:_lseeki64 :fd (3) to 0 pos SEEK_SET
trace:msvcrt:read_i :fd (3) handle (0x2c) buf (0x7c55fe60) len (16)
trace:msvcrt:read_i :EOF ""
trace:msvcrt:read_i (0), ""
trace:msvcrt:pf_vsnprintf format is L"%s:%d: Test failed"
file.c:565: Test failedtrace:msvcrt:pf_vsnprintf format is L": "
: trace:msvcrt:pf_vsnprintf format is L"Couldn't read back the data\n"
Couldn't read back the data


More information about the wine-devel mailing list