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@winehq.org ReportedBy: austinenglish@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.
http://bugs.winehq.org/show_bug.cgi?id=34330
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=34330
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=31892
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #1 from Austin English austinenglish@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.
http://bugs.winehq.org/show_bug.cgi?id=34330
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gerald@pfeifer.com, | |kris@pcbsd.com, | |kris@pcbsd.org
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #2 from Austin English austinenglish@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
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #3 from André H. nerv@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...
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #4 from André H. nerv@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. ...
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #5 from Austin English austinenglish@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.
http://bugs.winehq.org/show_bug.cgi?id=34330
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #45789|0 |1 is obsolete| |
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #6 from André H. nerv@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...
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #7 from André H. nerv@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...
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #8 from André H. nerv@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...
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #9 from Austin English austinenglish@gmail.com 2013-09-05 16:33:32 CDT --- pc-bsd32 works
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #10 from Austin English austinenglish@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 *'
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #11 from Austin English austinenglish@gmail.com 2013-09-06 18:25:39 CDT --- kfreebsd64 doesn't build (ntdll/signal_x86_64.c).
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #12 from Austin English austinenglish@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*
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #13 from André H. nerv@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
http://bugs.winehq.org/show_bug.cgi?id=34330
--- Comment #14 from André H. nerv@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
https://bugs.winehq.org/show_bug.cgi?id=34330
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #45788|0 |1 is obsolete| |
--- Comment #15 from André H. nerv@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
https://bugs.winehq.org/show_bug.cgi?id=34330
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=34330
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4b708fc325753f1bb1c8210bb67 | |757ebbf9f60dd Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #16 from André H. nerv@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...
https://bugs.winehq.org/show_bug.cgi?id=34330
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Component|-unknown |loader
https://bugs.winehq.org/show_bug.cgi?id=34330
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.34.