[Bug 34330] New: Wine64 does not work on FreeBSD
http://bugs.winehq.org/show_bug.cgi?id=34330 Bug #: 34330 Summary: Wine64 does not work on FreeBSD Product: Wine Version: 1.7.0 Platform: x86-64 OS/Version: FreeBSD Status: NEW Keywords: download, source, win64 Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: austinenglish(a)gmail.com Classification: Unclassified Using PC-BSD 9.1 and gcc4.6, wine64 compiles, however, it fails to run: # ./wine64 cmd wine: failed to map the shared user data: c0000018 also tried the mmap patch from their port: http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/wine/files/patch-parti... but it made no difference. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv(a)dawncrow.de -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=31892 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #1 from Austin English <austinenglish(a)gmail.com> 2013-08-27 16:44:16 CDT --- If using the aforementioned patch, wine hangs. If I run: # ./loader/wine64 cmd manually, I get: Shared object "libwine.so.1" not found, required by "wine64" which does exist. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gerald(a)pfeifer.com, | |kris(a)pcbsd.com, | |kris(a)pcbsd.org -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2013-08-27 17:33:40 CDT --- (In reply to comment #1)
If using the aforementioned patch, wine hangs.
If I run: # ./loader/wine64 cmd manually, I get: Shared object "libwine.so.1" not found, required by "wine64"
which does exist.
Mild correction, that was caused by a debugging patch in my tree. With no patches, the problem is: wine: failed to map the shared user data: c0000018 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #3 from André H. <nerv(a)dawncrow.de> 2013-08-30 14:20:29 CDT --- Created attachment 45788 --> http://bugs.winehq.org/attachment.cgi?id=45788 Use try_mmap_fixed This hacky patch get's me further, but then we run into a "Bus error" setenv LD_LIBRARY_PATH ~/wine/libs/wine/ gdb loader/wine64
run cmd
tells me it crashes in RtlFreeHeap -> HEAP_MakeInUseBlockFree heap.c: size += (pFree->size & ARENA_SIZE_MASK) + sizeof(ARENA_FREE); with WINEDEBUG=heap we run into an assertion, i'll attach some more... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #4 from André H. <nerv(a)dawncrow.de> 2013-08-30 14:22:20 CDT --- Created attachment 45789 --> http://bugs.winehq.org/attachment.cgi?id=45789 What i did - including heap trace Here's what i did. Interesting parts of the heap trace: ... err:heap:HEAP_ValidateInUseArena Heap 0x10000: block 0x106c0 tail overwritten at 0x106e8 (byte 0/32 == 0x5c) ... Assertion failed: (FALSE), function HEAP_GetPtr, file heap.c, line 455. ... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #5 from Austin English <austinenglish(a)gmail.com> 2013-09-04 13:48:37 CDT --- (In reply to comment #3)
Created attachment 45788 [details] Use try_mmap_fixed
This hacky patch get's me further, but then we run into a "Bus error"
Works for me (./wine64 cmd), though our environments are a bit different: *) I'm running as root (inside a VM) *) I'm not running inside X *) I'm using gcc46 instead of gcc49 I suspect it's the different gcc version. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #45789|0 |1 is obsolete| | -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #6 from André H. <nerv(a)dawncrow.de> 2013-09-04 16:06:42 CDT --- (In reply to comment #5)
(In reply to comment #3)
Created attachment 45788 [details] Use try_mmap_fixed
This hacky patch get's me further, but then we run into a "Bus error"
Works for me (./wine64 cmd), though our environments are a bit different: *) I'm running as root (inside a VM) *) I'm not running inside X *) I'm using gcc46 instead of gcc49
I suspect it's the different gcc version.
True, it works here with *) running as user (inside a VM) *) running inside X *) using gcc46 instead of gcc49 cmd looks quite promising, but GUIs have glitches, e.g. winecfg being as small as possible or regedit missing much elements. not sure if that's because of missing freetype... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #7 from André H. <nerv(a)dawncrow.de> 2013-09-04 17:24:56 CDT --- (In reply to comment #6)
cmd looks quite promising, but GUIs have glitches, e.g. winecfg being as small as possible or regedit missing much elements. not sure if that's because of missing freetype...
Well, it was. So everything looks quite good now... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #8 from André H. <nerv(a)dawncrow.de> 2013-09-05 13:28:30 CDT --- What needs to be tested: pcbsd64/freebsd64: obviously done pcbsd32/freebsd32: outstanding dragonflybsd64: outstanding, expected to behave the same as freebsd64 dragonflybsd32: done, doesn't hurt sadly this patch doesn't obsolete that freebsd32 patch: http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/wine/files/patch-parti... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #9 from Austin English <austinenglish(a)gmail.com> 2013-09-05 16:33:32 CDT --- pc-bsd32 works -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #10 from Austin English <austinenglish(a)gmail.com> 2013-09-05 17:28:51 CDT --- kfreebsd32 works. Note that the macro needed there is __FreeBSD_kernel__. If that is set, the new behavior is used, which causes a compiler warning: mmap.c:142: warning: pointer targets in passing argument 3 of 'mincore' differ in signedness /usr/include/sys/mman.h:124: note: expected 'unsigned char *' but argument is of type 'char *' -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #11 from Austin English <austinenglish(a)gmail.com> 2013-09-06 18:25:39 CDT --- kfreebsd64 doesn't build (ntdll/signal_x86_64.c). -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #12 from Austin English <austinenglish(a)gmail.com> 2013-09-06 18:25:58 CDT --- (In reply to comment #11)
kfreebsd64 doesn't build (ntdll/signal_x86_64.c).
Obviously unrelated to the patch* -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #13 from André H. <nerv(a)dawncrow.de> 2013-09-10 13:45:31 CDT --- Status: pcbsd64/freebsd64: obviously done pcbsd32/freebsd32: patch doesn't hurt dragonflybsd64: outstanding, expected to behave the same as freebsd64 dragonflybsd32: patch doesn't hurt kfreebsd64: needed some more work in mmap.c after hacking around ntdll/signal_x86_64.c kfreebsd32: patch doesn't hurt except of a signed/unsigned warning also seen in kfreebsd64 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34330 --- Comment #14 from André H. <nerv(a)dawncrow.de> 2013-09-16 13:23:39 CDT --- Status: pcbsd64/freebsd64: obviously done pcbsd32/freebsd32: patch doesn't hurt kfreebsd64: needed some more work in mmap.c after hacking around ntdll/signal_x86_64.c kfreebsd32: patch doesn't hurt except of a signed/unsigned warning also seen in kfreebsd64 dragonflybsd64: looks even worse than on kfreebsd64 dragonflybsd32: patch doesn't hurt So only on freebsd this patch is a good idea for now -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=34330 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #45788|0 |1 is obsolete| | --- Comment #15 from André H. <nerv(a)dawncrow.de> --- Comment on attachment 45788 --> https://bugs.winehq.org/attachment.cgi?id=45788 Use try_mmap_fixed https://source.winehq.org/patches/data/108326 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=34330 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian(a)fds-team.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=34330 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4b708fc325753f1bb1c8210bb67 | |757ebbf9f60dd Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #16 from André H. <nerv(a)dawncrow.de> --- (In reply to André H. from comment #15)
Comment on attachment 45788 [details] Use try_mmap_fixed
got applied: https://source.winehq.org/git/wine.git/commitdiff/4b708fc325753f1bb1c8210bb6... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=34330 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |focht(a)gmx.net Component|-unknown |loader -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=34330 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #17 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.7.34. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org