Date: Wed, 01 Aug 2007 22:58:23 +0200 From: Volker <volker@vwsoft.com> To: Tijl Coosemans <tijl@ulyssis.org> Cc: freebsd-stable@freebsd.org, John Baldwin <jhb@freebsd.org> Subject: Re: Call for testing: patch that helps Wine on 6.x Message-ID: <46B0F3EF.9020702@vwsoft.com> In-Reply-To: <200707311725.33059.tijl@ulyssis.org> References: <200707111442.33336.jhb@freebsd.org> <4697BFBB.1050009@vwsoft.com> <200707311725.33059.tijl@ulyssis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/31/07 17:25, Tijl Coosemans wrote: > On Friday 13 July 2007 20:08:59 Volker wrote: >> On 07/11/07 20:42, John Baldwin wrote: >>> This patch attempts to remove a gross hack with a slightly less >>> gross hack in order to avoid clobbering data in signal info that >>> Wine needs. In 7 this was fixed by a major change to how the kernel >>> manages signals internally, and that change is too large to be >>> MFC'd, hence this lighter weight patch. It has already been tested >>> by the folks working on Wine, but I would like a bit more widespread >>> testing before I commit it. Please test this patch and let me know >>> if anything breaks. Note that this patch is only for i386. >>> >>> http://www.FreeBSD.org/~jhb/patches/sig_eva.patch >> I've patched and recompiled world + kernel using your patch. I can >> confirm it does not hurt but what does it good (my wine already ran >> fine despite some DDE and performance issues)? What to look for >> especially - any specific test procedures? > > Could you try Mozilla Firefox (for Windows) with and without this > patch? > Tijl, sorry for delay. It took some hours to cleanly build new world + kernel w/o patches, test and patch and rebuild everything. Here are the results: clean world + kernel (unpatched), csup'ed 2007-07-31, ports-tree up to date, installed wine: wine-0.9.42,1 - trying to start an already installed Win32 Firefox (installed under W2k, contained on a mounted NTFS volume): %wine /media/CesNt2/Program\ Files/Comm/Firefox/firefox.exe fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems wine: Unhandled page fault on read access to 0x000000a1 at address 0x9ccdc232 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x000000a1 in 32-bit code (0x9ccdc232). file_set_error: Bad address file_set_error: Bad address Register dump: CS:0033 SS:003b DS:003b ES:003b FS:1007 GS:001b EIP:9ccdc232 ESP:0034ea78 EBP:0034ea78 EFLAGS:00010202( - 00 - -RI1) EAX:9cc80490 EBX:9cc7fe48 ECX:00000009 EDX:9cc7f544 ESI:00000064 EDI:7bf1b800 Stack dump: 0x0034ea78: 0034f0c8 9cc40cc3 00000009 9cc80490 0x0034ea88: 9cc80494 00000064 0d790266 9bf2d300 0x0034ea98: 00000001 7bf05840 0034e6a0 7bf38240 0x0034eaa8: 00000400 00020048 0034e6a0 00000400 0x0034eab8: 00000000 9c13a4f0 00000000 0034ebe4 0x0034eac8: 9bf087a7 9c12a18c 0034ebb8 00000001 0200: sel=1007 base=00112000 limit=00001fff 32-bit rw- Backtrace: =>1 0x9ccdc232 (0x0034ea78) 2 0x9cc40cc3 (0x0034f0c8) 3 0x9cc5a93f (0x0034f278) 4 0x9cc691de (0x0034f2a8) 5 0x9c195f09 (0x0034f2c8) 6 0x9c197e32 (0x0034f348) 7 0x9c198051 (0x0034f378) 8 0x9c19a0cb (0x0034f398) 9 0x9c26d0d0 in kernel32 (+0x3d0d0) (0x0034f5f8) 10 0x9c26d305 in kernel32 (+0x3d305) (0x0034f618) 11 0x9c26d3d3 in kernel32 (+0x3d3d3) (0x0034f638) 12 0x9c26d3ff in kernel32 (+0x3d3ff) (0x0034f658) 13 0x9c59b308 (0x0034f7d8) 14 0x9c595b6e (0x0034fa78) 15 0x9c48c736 (0x0034fb18) 16 0x9c48cdde (0x0034fb78) 17 0x9c48ee44 (0x0034fc08) 18 0x9c48f4a0 (0x0034fca8) 19 0x9c48f64f (0x0034fce8) 20 0x9c48587e (0x0034fd18) 21 0x9c4858c8 (0x0034fd28) 22 0x9c4e6890 (0x0034fda8) 23 0x9c4f751a (0x0034fdd8) 24 0x9c195f09 (0x0034fdf8) 25 0x9c197e32 (0x0034fe78) 26 0x9c198051 (0x0034fea8) 27 0x9c1980d4 (0x0034fec8) 28 0x9c1980d4 (0x0034fee8) 29 0x9c1980d4 (0x0034ff08) 30 0x9c1980d4 (0x0034ff28) 31 0x9c19a36a (0x0034ff68) 32 0x9c277dcf in kernel32 (+0x47dcf) (0x0034ffe8) 0x9ccdc232: movl 0x98(%ecx),%edx Modules: Module Address Debug info Name (27 modules) PE 400000- b5f000 Deferred firefox PE 600d0000-60141000 Deferred js3250 PE 601a0000-601c7000 Deferred nspr4 PE 601d0000-6022b000 Deferred nss3 PE 60280000-60287000 Deferred plc4 PE 60290000-60296000 Deferred plds4 PE 602b0000-602ca000 Deferred smime3 PE 602d0000-6030f000 Deferred softokn3 PE 60310000-60330000 Deferred ssl3 PE 60340000-60354000 Deferred xpcom_compat PE 60360000-603ca000 Deferred xpcom_core PE 9c170000-9c174000 Deferred ntdll PE 9c230000-9c29c000 Export kernel32 PE 9c330000-9c334000 Deferred advapi32 PE 9c370000-9c374000 Deferred wsock32 PE 9c390000-9c394000 Deferred ws2_32 PE 9c3d0000-9c418000 Deferred winmm PE 9c460000-9c471000 Deferred user32 PE 9c580000-9c584000 Deferred gdi32 PE 9c660000-9c6c9000 Deferred shell32 PE 9c7a0000-9c824000 Deferred comctl32 PE 9c840000-9c902000 Deferred ole32 PE 9c8d0000-9c923000 Deferred rpcrt4 PE 9c8d0000-9c923000 Deferred rpcrt4 PE 9c950000-9c9af000 Deferred comdlg32 PE 9c9e0000-9c9e6000 Deferred winspool PE 9ca20000-9cab2000 Deferred oleaut32 Threads: process tid prio (all id:s are in hex) 00000008 (D) Z:\media\CesNt2\Program Files\Comm\Firefox\firefox.exe 00000009 0 <== - trying to run Win32 Firefox Setup (2.0.0.6): %wine ~/Desktop/Downloads/Firefox\ Setup\ 2.0.0.6.exe err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems wine: Unhandled page fault on read access to 0x000000a1 at address 0x9cb21232 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x000000a1 in 32-bit code (0x9cb21232). fixme:dbghelp:addr_to_linear Failed to linearize address 108f:0000ffd0 (mode 0) Register dump: CS:0033 SS:003b DS:003b ES:003b FS:1007 GS:001b EIP:9cb21232 ESP:0034eab8 EBP:0034eab8 EFLAGS:00010206( - 00 - RIP1) EAX:9cac5490 EBX:9cac4e48 ECX:00000009 EDX:9cac4544 ESI:0000003c EDI:7bf22000 Stack dump: 0x0034eab8: *** Invalid address 0x0034eab8 *** Backtrace: 0x9cb21232: -- no code accessible -- Modules: Module Address Debug info Name (11 modules) PE 400000- 420000 Deferred firefox setup 2.0.0.6 PE 9c170000-9c174000 Deferred ntdll PE 9c230000-9c29c000 Deferred kernel32 PE 9c330000-9c3b4000 Deferred comctl32 PE 9c3f0000-9c401000 Deferred user32 PE 9c500000-9c504000 Deferred gdi32 PE 9c580000-9c584000 Deferred advapi32 PE 9c5d0000-9c639000 Deferred shell32 PE 9c700000-9c792000 Deferred oleaut32 PE 9c790000-9c852000 Deferred ole32 PE 9c820000-9c873000 Deferred rpcrt4 Threads: process tid prio (all id:s are in hex) 00000008 (D) Z:\user\home\vwerth\Desktop\Downloads\Firefox Setup 2.0.0.6.exe 00000009 0 <== Now, patched everything (signal, mmap, pfault). - trying to run Win32 Firefox (installed under W2k from NTFS volume): %wine /media/CesNt2/Program\ Files/Comm/Firefox/firefox.exe fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems wine: Unhandled page fault on read access to 0x000000a1 at address 0x7ecb9232 (thread 0009), starting debugger... (I needed to ctrl+c here as the system did nothing else for minutes and did not exit wine). - trying to run Win32 Firefox Setup: %wine Desktop/Downloads/Firefox\ Setup\ 2.0.0.6.exe err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems wine: Unhandled page fault on read access to 0x000000a1 at address 0x7eafe232 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x000000a1 in 32-bit code (0x7eafe232). file_set_error: Bad address file_set_error: Bad address Register dump: CS:0033 SS:003b DS:003b ES:003b FS:1007 GS:001b EIP:7eafe232 ESP:0034eab8 EBP:0034eab8 EFLAGS:00010206( - 00 - RIP1) EAX:7eaa2490 EBX:7eaa1e40 ECX:00000009 EDX:7eaa1544 ESI:0000003c EDI:7bf19000 Stack dump: 0x0034eab8: 0034f108 7ea62cc3 00000009 7eaa2490 0x0034eac8: 7eaa2494 0000003c 00000b1e 01000000 0x0034ead8: 7df26018 7df2f060 0034e6e0 0034eb24 0x0034eae8: 00000400 00020048 0034e6e0 00000400 0x0034eaf8: 00000000 7e127550 00000002 00000000 0x0034eb08: 7df2d300 7e1171fc 0d790266 7e0689a3 0200: sel=1007 base=00112000 limit=00001fff 32-bit rw- Backtrace: =>1 0x7eafe232 XDisplayKeycodes+0x6() in libx11.so.6 (0x0034eab8) 2 0x7ea62cc3 X11DRV_InitKeyboard+0x77() in winex11 (0x0034f108) 3 0x7ea7c93f in winex11 (+0x4c93f) (0x0034f2b8) 4 0x7ea8b1de in winex11 (+0x5b1de) (0x0034f2e8) 5 0x7e179f09 call_dll_entry_point+0x15() in ntdll (0x0034f308) 6 0x7e17be32 in ntdll (+0x2be32) (0x0034f388) 7 0x7e17c051 in ntdll (+0x2c051) (0x0034f3b8) 8 0x7e17e0cb LdrLoadDll+0x5b() in ntdll (0x0034f3d8) 9 0x7e2410d0 in kernel32 (+0x410d0) (0x0034f638) 10 0x7e241305 LoadLibraryExW+0x4d() in kernel32 (0x0034f658) 11 0x7e2413d3 LoadLibraryExA+0x33() in kernel32 (0x0034f678) 12 0x7e2413ff LoadLibraryA+0x1f() in kernel32 (0x0034f698) 13 0x7e4f2308 DRIVER_load_driver+0x1b4() in gdi32 (0x0034f818) 14 0x7e4ecb6e CreateDCW+0x5e() in gdi32 (0x0034fab8) 15 0x7e3e3736 CreateIconFromResourceEx+0x382() in user32 (0x0034fb58) 16 0x7e3e3dde in user32 (+0x23dde) (0x0034fbb8) 17 0x7e3e5e44 LoadImageW+0x388() in user32 (0x0034fc48) 18 0x7e3e64a0 LoadImageA+0x11c() in user32 (0x0034fce8) 19 0x7e3e664f LoadCursorA+0x87() in user32 (0x0034fd28) 20 0x7e3dc87e in user32 (+0x1c87e) (0x0034fd58) 21 0x7e3dc8c8 CLASS_RegisterBuiltinClasses+0x1c() in user32 (0x0034fd68) 22 0x7e43d890 in user32 (+0x7d890) (0x0034fde8) 23 0x7e44e51a in user32 (+0x8e51a) (0x0034fe18) 24 0x7e179f09 call_dll_entry_point+0x15() in ntdll (0x0034fe38) 25 0x7e17be32 in ntdll (+0x2be32) (0x0034feb8) 26 0x7e17c051 in ntdll (+0x2c051) (0x0034fee8) 27 0x7e17c0d4 in ntdll (+0x2c0d4) (0x0034ff08) 28 0x7e17c0d4 in ntdll (+0x2c0d4) (0x0034ff28) 29 0x7e17e36a LdrInitializeThunk+0x222() in ntdll (0x0034ff68) 30 0x7e24bdcf in kernel32 (+0x4bdcf) (0x0034ffe8) 0x7eafe232 XDisplayKeycodes+0x6 in libx11.so.6: movl 0x98(%ecx),%edx Modules: Module Address Debug info Name (50 modules) PE 400000- 420000 Deferred firefox setup 2.0.0.6 ELF 7bf00000-7bf03000 Deferred <wine-loader> ELF 7df02000-7df2b000 Deferred ld-elf.so.1 ELF 7df33000-7e046000 Deferred libwine.so.1 ELF 7e046000-7e058000 Deferred libthr.so.2 ELF 7e058000-7e13f000 Deferred libc.so.6 ELF 7e140000-7e1d2000 Export ntdll<elf> \-PE 7e150000-7e1d2000 \ ntdll ELF 7e1d2000-7e1e8000 Deferred libm.so.4 ELF 7e1e8000-7e2fa000 Export kernel32<elf> \-PE 7e200000-7e2fa000 \ kernel32 ELF 7e2fa000-7e3a1000 Deferred comctl32<elf> \-PE 7e300000-7e3a1000 \ comctl32 ELF 7e3a1000-7e4c0000 Export user32<elf> \-PE 7e3c0000-7e4c0000 \ user32 ELF 7e4c0000-7e54a000 Export gdi32<elf> \-PE 7e4d0000-7e54a000 \ gdi32 ELF 7e54a000-7e589000 Deferred advapi32<elf> \-PE 7e560000-7e589000 \ advapi32 ELF 7e589000-7e675000 Deferred shell32<elf> \-PE 7e5a0000-7e675000 \ shell32 ELF 7e675000-7e6c5000 Deferred shlwapi<elf> \-PE 7e680000-7e6c5000 \ shlwapi ELF 7e6c5000-7e753000 Deferred oleaut32<elf> \-PE 7e6e0000-7e753000 \ oleaut32 ELF 7e753000-7e7e0000 Deferred ole32<elf> \-PE 7e760000-7e7e0000 \ ole32 ELF 7e7e0000-7e832000 Deferred rpcrt4<elf> \-PE 7e7f0000-7e832000 \ rpcrt4 ELF 7e832000-7e84f000 Deferred iphlpapi<elf> \-PE 7e840000-7e84f000 \ iphlpapi ELF 7e858000-7e8b7000 Deferred msvcrt<elf> \-PE 7e870000-7e8b7000 \ msvcrt ELF 7e8b7000-7e91b000 Deferred libfreetype.so.9 ELF 7e91b000-7e92c000 Deferred libz.so.3 ELF 7e92c000-7e954000 Deferred libfontconfig.so.1 ELF 7e954000-7e972000 Deferred libexpat.so.6 ELF 7ea25000-7eaa8000 Export winex11<elf> \-PE 7ea30000-7eaa8000 \ winex11 ELF 7eaa8000-7eaaf000 Deferred libsm.so.6 ELF 7eaaf000-7eac5000 Deferred libice.so.6 ELF 7eac5000-7eaca000 Deferred libxxf86vm.so.1 ELF 7eaca000-7ead7000 Deferred libxext.so.6 ELF 7ead7000-7ebbc000 Export libx11.so.6 ELF 7ebbc000-7ebbf000 Deferred libxau.so.6 ELF 7ebbf000-7ebc4000 Deferred libxdmcp.so.6 ELF 7ebc4000-7ebcc000 Deferred librpcsvc.so.3 ELF 7ebcc000-7ebcf000 Deferred libxinerama.so.1 ELF 7ebcf000-7ebd7000 Deferred libxrender.so.1 ELF 7ebd7000-7ebdd000 Deferred libxrandr.so.2 Threads: process tid prio (all id:s are in hex) 00000008 (D) Z:\user\home\vwerth\Desktop\Downloads\Firefox Setup 2.0.0.6.exe 00000009 0 <== So, no luck with Firefox here. I've tried to use IE under wine a few weeks ago as I needed that for getting "StarMoney" to work but also had problems installing and running IE. Other Win16 and Win32 apps are working nearly fine on my system. I've also tested using a newly created wine config - near same results. Do you need any system specific infos? Anything else you want me to patch / try? ``uname -a'': FreeBSD cesar.sz.vwsoft.com 6.2-STABLE FreeBSD 6.2-STABLE #3: Wed Aug 1 12:04:20 CEST 2007 root@cesar.sz.vwsoft.com:/usr/obj/usr/src/sys/CESAR i386 Volker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46B0F3EF.9020702>