delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/12/19/05:49:20

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A5EF138378FC
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1671446752;
bh=C33ohzwrcLhr2SkqO3hp1ifezoYDGwbHljwXZpG8HRo=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=IRxQypAqhvX03qTn5K9F8x0g5Vy/xGNF9PnpzLgMEXTvhBwWPjJzPpcmJcmw9AVSc
NBB+MaQMZ9ZOZOHshdmZvQ0BRfsUM42KM6/PGqDRQzdFrzgfb+JdER5cmjr5UikgbO
A5tat1O+7/m6yWaw0EnoPx/bEGFWF4jtUHdXJiJE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
Date: Mon, 19 Dec 2022 10:44:53 +0100
To: cygwin AT cygwin DOT com
Subject: Re: Fork issues with 3.4 in Docker only
Message-ID: <Y6AylVxy04gNVMal@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAE6_+UexE+2-G9FuK5NrSkkPdJzjNi=16t7Xy-52EJ2nZ0m-rg AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAE6_+UexE+2-G9FuK5NrSkkPdJzjNi=16t7Xy-52EJ2nZ0m-rg@mail.gmail.com>
X-Provags-ID: V03:K1:NNldhyIc9e6IBeYuR6TkgUvXMcIOBgnOHKzBLPvvfc7f1cFPGGj
a3vxisSIl9IwTwKtg/ljxY6thAEgMnwLGGRezXMK8xZssuvd229/2ydArCAK0IAnBrW4zIo
hXCD0WZE6oGPk/LuGq3H+TgTO2eYBUr9k5cg0qJJgQyMDnXUsQ4RgrZNNHz1R04apEicLWr
2fn6eZe1DN6QpESh9mgXA==
UI-OutboundReport: notjunk:1;M01:P0:U20y4ODlOQM=;+JSGk7Z/r8OZzn1On20Nl+8Xymo
yzEGDojaK3s7XAoVA1ZdHlwwfSKojmez+tJ42ysPU3NsgkJu+V0lGN7ScYn5kqnIo8EwXQv3F
hPeY7hNfpt2onb7MazHsvB5w/KDmCBhmmuHK7Pday8hz0xNJNTtrfpjpk8SiXILWRJYxYPMYE
JZTAzq6Bbc/tTYykZygCN22PyfSB64ENut09FFmGPsSNF+onAk9xL3QT8g0TkcTadhAL0lBbw
DGbEu8k2Iv1gkvaVAUx1o83cusV/hNp2ookmZp6KywyA9wqqnd4dPeSiGVcTWnh/3jlmrVACd
JZbG7zzthF+d0ayFX6RZQyzOmsxKTNz8qdIEv8anZoBbhFnzgALC//jIKLcU/0NhAR1QmO/YB
Xxm5qv8lv4AhCSExmBEx9SWQlpeAri7vs3I6pE8I2zQ1CTQ5WWgAltlECifRhutX+uIaX6mSt
KbH1N4bjT+4B+C+0vMQ6oSUDXnMdYcrTyrE7zDLn2IG1YVrOY/2p4l/1TTc93nytXIac2Go9i
IpC1L7mUmNwJJusJPcjG5j2/4ed0EIv6caBgtelcpkgBI6T47G6BmX2QGEQreOAa98riD8wp6
5OEiyq0oNV5GS/CbAbuu/sM9KzCrJ5ZzRT4H87Gq8Vkdsd9fRDiEdkReUcQRyFdYZXcLpXGn9
mI4ji1LbSgAK2c65BXP0RaIveSIiZrr6q0CoEDLwpw==
X-Spam-Status: No, score=-96.6 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_FAIL, SPF_HELO_NONE,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT 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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019