Bug 152115 - wine crashes when ulimit -v is set
Summary: wine crashes when ulimit -v is set
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 4
Hardware: Other Other
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: Marcus Meissner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-19 21:28 UTC by Dirk Mueller
Modified: 2006-03-17 16:09 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
perso.pat (1.74 KB, patch)
2006-03-17 16:08 UTC, Marcus Meissner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.