From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: David McFarland <corngood@gmail.com>
Cc: cygwin-developers@cygwin.com
Subject: Re: [PATCH] Cygwin: cygheap: fix fork error after heap has grown
Date: Tue, 18 Apr 2023 10:14:10 +0200 [thread overview]
Message-ID: <ZD5RUn0HnSIGkifP@calimero.vinschen.de> (raw)
In-Reply-To: <20230418004155.56163-1-corngood@gmail.com>
Hi David,
On Apr 17 21:41, David McFarland wrote:
> 2f9b8ff0 introduced a problem where forks would sometimes fail with:
>
> child_copy: cygheap read copy failed, 0x0..0x80044C750, done 0, windows pid 14032, Win32 error 299
>
> When cygheap_max was > CYGHEAP_STORAGE_INITIAL, commit_size would be set to
> allocsize(cygheap_max), which is an address, not a size. VirtualAlloc would be
> called to commit commit_size bytes, which would fail, and then child_copy would
> be called with zero as the base address.
>
> Fixes: 2f9b8ff00cce ("Cygwin: decouple cygheap from Cygwin DLL")
> Signed-off-by: David McFarland <corngood@gmail.com>
> ---
> winsup/cygwin/mm/cygheap.cc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Patch pushed.
Thanks,
Corinna
prev parent reply other threads:[~2023-04-18 8:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 2:35 David McFarland
2023-04-13 12:53 ` David McFarland
2023-04-13 16:16 ` Corinna Vinschen
2023-04-18 0:25 ` David McFarland
2023-04-18 0:41 ` David McFarland
2023-04-18 8:14 ` 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=ZD5RUn0HnSIGkifP@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=corngood@gmail.com \
--cc=cygwin-developers@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).