kern/94413: [kernel] wine fails when increasing kern.maxdsiz

Tijl Coosemans tijl at
Thu Aug 3 12:50:27 UTC 2006

The following reply was made to PR kern/94413; it has been noted by GNATS.

From: Tijl Coosemans <tijl at>
To: bug-followup at
Cc: gerald at
Subject: Re: kern/94413: [kernel] wine fails when increasing kern.maxdsiz
Date: Thu, 3 Aug 2006 14:46:14 +0200

 The problem is that mmap(2), when called with NULL for the addr 
 argument, only looks for free pages after the maximum data segment. 
 Given that Wine is located at the end of the first 2Gb of address space 
 (to leave room for the Windows executable), plus a maximum data segment 
 size of 1Gb, you're simply running out of user address space.
 There's a comment in the mmap code hinting at how this can be improved, 
 but really I don't think mmap should change (i.e. become more 
 complicated just for Wine). I'm not 100% sure, but I believe the 
 problem can be fixed by porting the Wine preloader and have it lower 
 the maximum RLIMIT_DATA.

More information about the freebsd-bugs mailing list