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.