https://bugs.winehq.org/show_bug.cgi?id=38893
Bug ID: 38893 Summary: wine is upset about its mmaps Product: Wine Version: 1.7.46 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: zl29ah@gmail.com Distribution: ---
readlink("/proc/self/exe", "/usr/bin/wine-preloader", 256) = 23 stat64("/usr/bin/wineserver", {st_mode=S_IFREG|0755, st_size=432352, ...}) = 0 mmap2(0x82000000, 2106523648, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory) mmap2(0x82000000, 1053229056, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xaa692000 munmap(0xaa692000, 1053229056) = 0 mmap2(0x82000000, 526581760, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xc9cd2000 munmap(0xc9cd2000, 526581760) = 0 mmap2(0x82000000, 263258112, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xd97f2000 munmap(0xd97f2000, 263258112) = 0 … mmap2(0x856e0000, 4128768, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xe8f12000 munmap(0xe8f12000, 4128768) = 0 mmap2(0x856e0000, 2031616, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xe9112000 munmap(0xe9112000, 2031616) = 0 … And this doesn't seem to end. Looks like someone forgot to MAP_FIXED, and it got triggered on RANDMMAP.
https://bugs.winehq.org/show_bug.cgi?id=38893
--- Comment #1 from Alexandre Julliard julliard@winehq.org --- RANDMMAP is not particularly useful with Wine, and will break memory reservation, but most things should still work. What is the actual problem you are seeing?
https://bugs.winehq.org/show_bug.cgi?id=38893
--- Comment #2 from Sergey Alirzaev zl29ah@gmail.com --- (In reply to Alexandre Julliard from comment #1)
RANDMMAP is not particularly useful with Wine, and will break memory reservation, but most things should still work. What is the actual problem you are seeing?
Well, i stumbled upon it when i tried to strace wine to catch what's happening with hanging Space Rangers HD. Somehow strace re-enables RANDMMAP even when it's disabled for the strace binary itself it seems. Anyway, the problem with Space Rangers is vanished somehow.
https://bugs.winehq.org/show_bug.cgi?id=38893
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- OK, if you see the problem again please file a new bug for it.
https://bugs.winehq.org/show_bug.cgi?id=38893
--- Comment #4 from Sergey Alirzaev zl29ah@gmail.com --- (In reply to Alexandre Julliard from comment #3)
OK, if you see the problem again please file a new bug for it.
Huh? Is this a correct usage of mmap?
https://bugs.winehq.org/show_bug.cgi?id=38893
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- (In reply to Sergey Alirzaev from comment #4)
(In reply to Alexandre Julliard from comment #3)
OK, if you see the problem again please file a new bug for it.
Huh? Is this a correct usage of mmap?
Yes, the goal is to reserve all available memory.
https://bugs.winehq.org/show_bug.cgi?id=38893
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- Closing invalid bugs.