delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/01/20/07:25:37

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FE133858421
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1674217499;
bh=P9E4VSNCN/zBrcA7v73GLu7t+012FZsFJyUbTSvs0C8=;
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=PFQuqVllEfBQI2yBB2ze0hrHlP6zzqEWQVM9soYuCyFgnkWefO5kaM2N2zWlukeyn
kRaqDA9/zmWGqxESjTX6nzkqucUF1WB2QquTQudTj9cY07jP3u/C7/ZxE/tCctAobK
RKsBS7zoWCAJv6PH1YO5BENsHeSb9MAd/+l+ZMHg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
Date: Fri, 20 Jan 2023 13:24:41 +0100
To: cygwin AT cygwin DOT com
Subject: Re: Error: child_copy: cygheap read copy failed.
Message-ID: <Y8qICZ6RSub4TJNG@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20230120125633 DOT 05136d9ae091b097fc9f9cf5 AT nifty DOT ne DOT jp>
<Y8p7VR4dXAZZDWmd AT calimero DOT vinschen DOT de>
<20230120211820 DOT 7e80fa2bf7332b351f3ba2a2 AT nifty DOT ne DOT jp>
MIME-Version: 1.0
In-Reply-To: <20230120211820.7e80fa2bf7332b351f3ba2a2@nifty.ne.jp>
X-Provags-ID: V03:K1:fB/yoVch6Rr5p4baVEmkOweCvs1NpwLsmVXL68+CPLdi93q8TJE
F+e3tCACyy7P0KZyI055pCnEJY/PERSZedJRCoGE78WbTlyKmG2uIkueYqhG8k2G+v3mck7
1EPrr+I1J9E7uID6wG7R1uFAYBcrOJKhmDt6WBVf5sk0e4ZREXiHOV3qCebJ7aZ6FP/qUnM
dzG2SkDD2No5kMnXXOCfg==
UI-OutboundReport: notjunk:1;M01:P0:3NSbmUtgbAE=;WtGcpBFVcr64VGUQEyGCjE7cfCZ
mryVc9zy0pmh5PKtDzfdQZWiuwr1ggxh3qBy+dvIMyySSMprqGGm82iqzaV/2l33HHsMSP8Ix
g7jNSZAlWWdLjV/7dWHFlx2pr82HU3jwWLaaQdYRRhdmEi1FsXnMPwZ4oHuBByJ03CGz3EJBG
2ptQUi69DKdKdiUH1w4V9DEMMpQEi9SJgm4bU47+aRhk7HxwcehkifdXh/Z5qciAkLbs3xXQ9
n8I3GnLmscwiCMsv/bwqMo51X1UG1ubjUC/G+42B1WKIb03jSqoFe0BuYpO1J2Tjj60F0nbYW
xpdOgG1CvBR1uMawC/KUer1iPl+u6gQXlv+gofB5672P8l4qlUjwP4HNSnxBB7Z6L63NZr3Ko
P/09bZ2iEfDv+IaqMEVeEk9KMs7r702IJvqgmccShqPB4BiXrFSWLKEQMAYVCuXjGB+W8pZar
L6FVUTyaoxc/vSgau38fOXQ6Hgh7TEh67JKts9NzeCy0SErbwFeuN74Rt8G3H4UWcejysx2wD
ClIpDPcR2p4bhD8cf5jyTP2MTzD6VrUGxr8/0To87DTUbF9qVvXN1A/w+LUBDrB7XJZLRt+pB
6vmFxpfutSsJWkaEpio3SVvle52EVYWwrBEqrRrTSSMNOIjnnk3rMbbYCCZh2zOR1k47grwTi
biivIWOBrp/L3ANIBz8y5nxpWFFFCWk4ownBxEBBrQ==
X-Spam-Status: No, score=-97.0 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 Jan 20 21:18, Takashi Yano via Cygwin wrote:
> On Fri, 20 Jan 2023 12:30:29 +0100
> Corinna Vinschen wrote:
> > Also, your ffplay executable isn't high-entropy-VA enabled, by any
> > chance?
> 
> I'm sorry, but the high-entropy-va is ebabled.
> 
> $ peflags -v /usr/bin/ff{mpeg,probe,play}
> /usr/bin/ffmpeg: coff(0x022e[+executable_image,+line_nums_stripped,+local_syms_stripped,+bigaddr,+sepdbg]) pe(0x8160[+high-entropy-va,+dynamicbase,+nxcompat,+tsaware])
> /usr/bin/ffprobe: coff(0x022e[+executable_image,+line_nums_stripped,+local_syms_stripped,+bigaddr,+sepdbg]) pe(0x8160[+high-entropy-va,+dynamicbase,+nxcompat,+tsaware])
> /usr/bin/ffplay: coff(0x022e[+executable_image,+line_nums_stripped,+local_syms_stripped,+bigaddr,+sepdbg]) pe(0x8160[+high-entropy-va,+dynamicbase,+nxcompat,+tsaware])
> 
> peflags -e0 /usr/bin/ff{mpeg,probe,play} solves the issue.
> Thansk!

I'm glad to read that, actually!

> Shoud I remove dynamicbase flag as well?

I did a lot of local testing with ASLR locally, and it's fine for DLLs,
but not so much for the application executable itself.

You can keep dynamicbase for testing, but currently it's not advised
to do so, and you should definitely remove it for distro executables.


Thanks,
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