[Wine] Building big app in Visual C++ in Wine uses too many file handles in wineserver, wheee....

Charles Davis cdavis at mymail.mines.edu
Wed Jan 27 17:28:03 CST 2010

Dan Kegel wrote:
> The wineserver is process 1247, and sure enough, ls /proc/1247 shows
> file descriptors as high as 973 in use.  The default ulimit -n is 1024,
> so it probably briefly exceeded that.
If you think that's low, on Mac OS X the default FD limit is 256! You
can only open 256 handles before the system says EMFILE.

> No idea what those ld.so errors are, though.
Anyway, recall that all loading of shared libraries is done by ld.so in
userland. I'd venture a guess that ld.so opens the file, then tries to
mmap(2) the file into memory. Key words: "opens the file". It, too is
running out of FDs. That's probably why you're getting the
dlopen(3)-related error.


More information about the wine-users mailing list