public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Fork issues with 3.4 in Docker only
Date: Mon, 19 Dec 2022 10:44:53 +0100	[thread overview]
Message-ID: <Y6AylVxy04gNVMal@calimero.vinschen.de> (raw)
In-Reply-To: <CAE6_+UexE+2-G9FuK5NrSkkPdJzjNi=16t7Xy-52EJ2nZ0m-rg@mail.gmail.com>

On Dec 18 10:18, Christoph Reiter via Cygwin wrote:
> After the upgrade to 3.4 (disclaimer: in MSYS2) I'm seeing, and getting reports
> of, various things failing in Docker only, for example:
> 
>       1 [main] pacman 252 child_copy: dll data read copy failed,
> 0x7FF8C816C000..0x7FF8C8178EB0, done 0, windows pid 5096, Win32 error
> 299
>       0 [main] pacman 251 dofork: child -1 - forked process 5096 died
> unexpectedly, retry 0, exit code 0xC0000005, errno 11
>       0 [main] pacman 253 child_copy: dll data read copy failed,
> 0x7FF8C816C000..0x7FF8C8178EB0, done 0, windows pid 584, Win32 error
> 299
>   67887 [main] pacman 251 dofork: child -1 - forked process 584 died
> unexpectedly, retry 0, exit code 0xC0000005, errno 11
>       0 [main] pacman 254 child_copy: dll data read copy failed,
> 0x7FF8C816C000..0x7FF8C8178EB0, done 0, windows pid 2336, Win32 error
> 299
>  124719 [main] pacman 251 dofork: child -1 - forked process 2336 died
> unexpectedly, retry 0, exit code 0xC0000005, errno 11
> 
> Reverting https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=943433b00cacdde0cb9507d0178770a2fb67bd71
> fixes things again.
> 
> Note that this doesn't happen outside of Docker, I've built more than 100
> packages with 3.4 on different hosts without any issues, and the errors in
> Docker are pretty consistent, so I'm guessing that something with ASLR behaves
> differently under Docker(?)

No idea what docker is doing differently, but you could try to switch
off ASLR for the Cygwin DLL.  Right now, starting with 3.4.0, it's
supposed to be the only DLL using ASLR by default in the Cygwin distro,
all other DLLs should still use fixed addresses.

Try this:

  cp /bin/cygwin1.dll ~/docker-cygwin1.dll
  peflags -d0 ~/docker-cygwin1.dll

Then copy that DLL over to /bin/cygwin1.dll in your docker image
and try again.


Corinna

      reply	other threads:[~2022-12-19  9:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-18  9:18 Christoph Reiter
2022-12-19  9:44 ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y6AylVxy04gNVMal@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).