http://bugs.winehq.org/show_bug.cgi?id=16068
Summary: 'failed to map segment from shared object' error where virtual memory is limited with ulimit or limits.conf Product: Wine Version: 1.1.4 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: tkedwards@fastmail.com.au
If the user who you run wine as has a limit on the amount of virtual memory they can use (set directly through ulimit -v or through as - address space limit in limits.conf) wine will not work. The error message is: wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory
Removing the limit on virtual memory works around this issue.
http://bugs.winehq.org/show_bug.cgi?id=16068
--- Comment #1 from Roderick Colenbrander thunderbird2k@gmx.net 2008-11-15 06:08:52 --- I'm not sure if this is a wine bug at all. Wine needs to emulate a complete Windows memory layout. Perhaps the mmap patch in http://bugs.winehq.org/show_bug.cgi?id=13335 helps but I don't think this is a wine bug.
http://bugs.winehq.org/show_bug.cgi?id=16068
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #2 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-11-15 06:18:44 --- Wine always uses the entire 3gb address space, restricting the amount of VM will break wine.
http://bugs.winehq.org/show_bug.cgi?id=16068
--- Comment #3 from Roderick Colenbrander thunderbird2k@gmx.net 2008-11-15 06:27:49 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=16068
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Dmitry Timoshkov dmitry@codeweavers.com 2008-11-15 10:10:06 --- Closing for real.