Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2017 15:23:01 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Jan Kokem??ller <jan.kokemueller@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: 11.1-RC2 breaks wine, creates unkillable process
Message-ID:  <20170709122301.GI1935@kib.kiev.ua>
In-Reply-To: <e26f4e71-e88b-f339-19ab-93b39e1fee5e@gmail.com>
References:  <176da83a-f6be-7f20-3416-f961c2ae91e0@gmx.net> <e26f4e71-e88b-f339-19ab-93b39e1fee5e@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 09, 2017 at 01:53:24PM +0200, Jan Kokem??ller wrote:
> Same here on -CURRENT r320620. r319481 (I think) was working fine.
> 
> I'm using the i386-wine-devel package from the official repository.

This should fix creation of the unkillable processes, but untested.

After that, if wine still does not work, you need to look exactly
what breaks, perhaps using ktrace.  Most likely there would be some
unsuccessfull mmap(2) syscall.

diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 0a99ddde486..a0688fe4f0c 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -1571,7 +1571,7 @@ vm_map_find_min(vm_map_t map, vm_object_t object, vm_ooffset_t offset,
 		    find_space, prot, max, cow);
 		if (rv == KERN_SUCCESS || min_addr >= hint)
 			return (rv);
-		*addr = min_addr;
+		*addr = hint = min_addr;
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170709122301.GI1935>