Marcus Meissner meissner@suse.de writes:
If you limit the virtual memory size using "ulimit -v 1400000" for instance, wine will only crash.
The problem is, that VIRTUAL_alloc_teb() tries to allocate a memory area within the acceptable userspace ... but it does so much mmap()s that it runs out of available mmap space before.
I was only able to reproduce this on AMD64 machines up to now, which pass out memory starting from 0xf7fffffff somewhere.
Any clue how to solve this?
I don't think you can. We are using MAP_NORESERVE, which could be argued should not count against the limit, but if it does then we need a limit high enough to reserve everything above 0x80000000.