You are not logged in.
Pages: 1
Hello guys.Since i turned on my system today i am not able to run any wine programms or wine itself as user.
The error message is :
/usr/bin/wine: error while loading shared libraries: out of memory: Operation not permitted
Running wine as root seems to be fine.I tried removing wine,libs and prefix and reinstalling but with no success.Permissions on libraries and prefix seem to be fine.
ldd /usr/bin/wine
linux-gate.so.1 (0x2aa77000)
libwine.so.1 => /usr/bin/../lib32/libwine.so.1 (0x2a89f000)
libpthread.so.0 => /usr/bin/../lib32/libpthread.so.0 (0x2a880000)
libc.so.6 => /usr/bin/../lib32/libc.so.6 (0x2a6aa000)
libdl.so.2 => /usr/lib32/libdl.so.2 (0x2a67b000)
/lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0x2aa78000)
lrwxrwxrwx 1 root root 14 Oct 18 18:59 /usr/lib32/libwine.so.1 -> libwine.so.1.0*
lrwxrwxrwx 1 root root 18 Sep 4 12:48 /usr/lib32/libpthread.so.0 -> libpthread-2.26.so*
lrwxrwxrwx 1 root root 12 Sep 4 12:47 /usr/lib32/libc.so.6 -> libc-2.26.so*
lrwxrwxrwx 1 root root 13 Sep 4 12:47 /usr/lib32/libdl.so.2 -> libdl-2.26.so*
lrwxrwxrwx 1 root root 10 Sep 4 12:48 /usr/lib32/ld-linux.so.2 -> ld-2.26.so*
The problem manifests on wine,wine-staging and wine-staging-git(aur) as well.
Any ideas how to fix that?
Last edited by DimitrisLol (2017-10-25 10:54:05)
Offline
Are you out of memory?
free -m
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
sorry i forgot to mention it.i have plenty of free ram.This message must be irrelevant.
Offline
/lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0x2aa78000)
I would expect that to be /usr/lib32/ld-linux.so.2
Unless it's an Arch-specific thing.
Offline
after extended googling and debugging i have found out that this problem might be irrelevant to shared libraries.I run strace as both user and root trying to run wine and i got that wine crashes when attempting a mmap call
openat(AT_FDCWD, "/usr/bin/../lib32/libwine.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@}\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1820592, ...}) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 EPERM (Operation not permitted)
close(3) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 EPERM (Operation not permitted)
writev(2, [{iov_base="/usr/bin/wine", iov_len=13}, {iov_base=": ", iov_len=2}, {iov_base="error while loading shared libra"..., iov_len=36}, {iov_base=": ", iov_len=2}, {iov_base="", iov_len=0}, {iov_base="", iov_len=0}, {iov_base="out of memory", iov_len=13}, {iov_base=": ", iov_len=2}, {iov_base="Operation not permitted", iov_len=23}, {iov_base="\n", iov_len=1}], 10/usr/bin/wine: error while loading shared libraries: out of memory: Operation not permitted
) = 92
Could this be of any help?
User trace winedbg https://pastebin.com/04kpTVZ0
Root trace winedbg https://pastebin.com/NDG5e5Bf
Offline
Setting
vm.mmap_min_addr=0
did the trick for me.Someone explaining why to me would be very nice.Please mark as solved
Offline
See Wine wiki.
Offline
Setting
vm.mmap_min_addr=0
did the trick for me.Someone explaining why to me would be very nice.Please mark as solved
You can mark it solved yourself by editing the first post. See the following: https://wiki.archlinux.org/index.php/Co … ow_to_post
Offline
Thanks for sharing the fix - was fighting this issue myself. I had previously opened a big fix at https://bugs.archlinux.org/task/55954 - it would still be great to figure out an appropriate package level fix, if possible.
Offline
Pages: 1