Bug 152115

Summary: wine crashes when ulimit -v is set
Product: [openSUSE] SUSE Linux 10.1 Reporter: Dirk Mueller <dmueller>
Component: BasesystemAssignee: Marcus Meissner <meissner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: suse-beta
Version: Beta 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: perso.pat

Description Dirk Mueller 2006-02-19 21:28:54 UTC
when ulimit package is installed, ulimit -v is set by default, and when done so, wine crashes immediately.
Comment 1 Marcus Meissner 2006-02-23 16:25:14 UTC
can confirm.
Comment 2 Marcus Meissner 2006-02-28 14:43:25 UTC
From: Alexandre Julliard <julliard@winehq.org>
To: Marcus Meissner <meissner@suse.de>
Cc: wine-devel@winehq.org
Date: Fri, 24 Feb 2006 18:55:14 +0100
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)
Subject: Re: Problem with virtual memory rlimits

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.

--
Alexandre Julliard
julliard@winehq.org
Comment 3 Marcus Meissner 2006-03-17 15:43:57 UTC
got an idea. :)
Comment 4 Marcus Meissner 2006-03-17 16:08:37 UTC
Created attachment 73716 [details]
perso.pat

hack to change personality.
Comment 5 Marcus Meissner 2006-03-17 16:09:09 UTC
fixed package submitted to stable.