[Bug 52743] cannot write to _fdopen'ed stdout

WineHQ Bugzilla wine-bugs at winehq.org
Wed Mar 30 03:16:03 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52743

--- Comment #4 from xantares <xantares09 at hotmail.com> ---
I failed to report that I was running it from a docker image (usually it
behaves the same).

FROM archlinux:latest
RUN echo -e "[multilib]\nInclude = /etc/pacman.d/mirrorlist" >>
/etc/pacman.conf
RUN pacman -Sy wine mingw-w64-gcc strace --noconfirm
WORKDIR /tmp
ADD main.c /tmp
RUN x86_64-w64-mingw32-gcc main.c
ENV WINEARCH=win64
RUN wine a.exe

I noticed that if I run it with the 64 bits exe right away it goes fine
(something wrong with the preloader code ?):

RUN wine64 a.exe

if I run it with strace I notice that some mmap call fails:

mmap2(NULL, 65536, PROT_NONE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0^[[0m^[[91m) = -1 EPERM
(Operation not permitted)

Actually this problem is a regression in 7.5 from 7.4 as another 7.3 bug fixed
in 7.4 was hiding it:
https://bugs.winehq.org/show_bug.cgi?id=52614

Bisecting yields
https://github.com/wine-mirror/wine/commit/c7e87b536edb28bb48162690e0d42c9ba9ccb43c:

c7e87b536edb28bb48162690e0d42c9ba9ccb43c is the first bad commit
commit c7e87b536edb28bb48162690e0d42c9ba9ccb43c
Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Thu Mar 17 08:27:22 2022 +0100

    start: Force no console creation when using start /exec.

    Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
    Signed-off-by: Jacek Caban <jacek at codeweavers.com>
    Signed-off-by: Alexandre Julliard <julliard at winehq.org>

 programs/start/start.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
bisect found first bad commitRemoving intermediate container b85bc621aa41

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list