delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/10/04:22:32

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=LkyjwposUMe6LzgqeDneN2NhUXz8DCEosi2kzxwNqhWt1KU+hBio4
q7/f1E4973mFCvv3BdtICQVDuHD5rHyqv4vcXVLz1dotaED2rMBEQc1DWgPIsGaI
h9QcKpiJjQTGqKr8vefrK11PheRFOTx8ke+p3IF+K8sHm2Z81+WcCs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=U+ftfMWhK5E2J49HL1lvlFgXMA8=; b=mTRM8Ou/zFtb/ZBZtxJriDm1vPac
bwh8NH8cm70qeyOeySz61vxgCp/Zie9X0/aTmAB4b7f3Q049Z+L6kevcBA4c9bzL
gM/aPlH9oPSR36WsG1A1lb8FA7/b8qSo1yq0yovPkKDu/IQ+Dt1z19iKkTgXJvPv
vplZpRuGbQcG8Ds=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Mon, 10 Aug 2015 10:22:15 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: fork: can't reserve memory for parent stack
Message-ID: <20150810082215.GA1559@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <55BFDF1B DOT 4060800 AT gmail DOT com> <20150805075609 DOT GQ17917 AT calimero DOT vinschen DOT de> <55C5D5C3 DOT 8060000 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <55C5D5C3.8060000@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug  8 12:11, Marco Atzeri wrote:
>=20
>=20
> On 05/08/2015 09:56, Corinna Vinschen wrote:
> >On Aug  3 23:37, Marco Atzeri wrote:
> >>Testing on 64bit latest pure-ftp, I hit this issue:
> >>
> >>/usr/sbin/pure-ftpd.exe -d
> >>       1 [main] pure-ftpd 8860 E:\cygwin64\usr\sbin\pure-ftpd.exe: *** =
fatal
> >>error in forked process - fork: can't reserve memory for parent stack
> >>0x1E0000 - 0x3E0000, (child has 0x210000 - 0x410000), Win32 error 487
> >>    1593 [main] pure-ftpd 8860 cygwin_exception::open_stackdumpfile: Du=
mping
> >>stack trace to pure-ftpd.exe.stackdump
> >>       2 [main] pure-ftpd 8832 fork: child -1 - forked process 8860 died
> >>unexpectedly, retry 0, exit code 0x100, errno 11
> >>
> >>
> >>pure-ftpd.exe.stackdump is empty, and the code run fine on 32bit
> >>version.
> >>
> >>attached the process memory map.
> >>
> >>Suggestion ?
> >
> >Hmm, sorry, no.  Where is the unusual stack layout coming from?!?
> >
> >
> >Corinna
> >
>=20
> No idea, but it seems common on my machine
> see three maps on different programs.
> All have stack and heap intermixed.

The first (bash) and the third (mintty) one look normal w/ stack at
0x30000 - 0x230000.  The second one (pure-ftpd) has an uncomment main
stack area at 0x1A0000 - 0x3a0000 and the area is apparently taken
by something else when forking.
It's totally unclear to me why the executable main thread doesn't get
the standard stack area, and what it's taken by what.  That's info
you can't get from the maps, unfortunately.

> What is the meaning of tid ?

Thread ID, just like the PID for processes.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--tThc/1wpZn/ma/RB
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVyF83AAoJEPU2Bp2uRE+gOPcP/3bInQUsHHXXSKTie+xDlsNg
vSgvOxvHSu73+HMp+9fhi7UE4E/x5MIDSbO9rk1fQ2pwJl0RUygS7L4x29intjmL
a8dL19VUWfOG0AEBkuPHEqqQtfG8r+T/62OyXnjmSFbmKkRXTo5Ds+cQ6yhUF92P
5P0l1wAvsHEoPZW4ITMSI9ZB9ji+Btqq3dgtgWk+CGr+EEiwE3dceYoith/VvGk1
5P2q5701GC44Yb4Fq8lmDN3LUCa64RI/Q9xaN/aStxdgNsfuMFOrpgX/VGG3l8iN
B8Hl/DYSa1KVb3alsTH/jYe9aX49oT3K/pf/ai9EpP62JARhYiAXKcUgBTHkvV1K
DSiE1eoi5A2YTFEFMbiuKD6D9VxopiI5fNndy9ocZ2+NT46JTM8Y4F4yVABYUs9h
LDWjZok0msK6NwwSa4RiEtcB/YEeZ+adryqJZOIwo6UM6pE2C2wEEjoJJoYxpbNV
06oWFzIQ6jR1ojWAWOMBVsjX/g896NVLCS9rc8bzBIiQjBRwqTpAAqX/LD3a75PY
XeAGVFFb2zXf4Cy8Za6hoZRUOLuhVEqfwnHsuj1fMWkWGJcPDqHcdOyFIrLFcCzd
tHNY/ry2VIAm1ScwxaF4Yw+v6WC+kMUxrJExacWbEPgl9n03/tRp3By37GfTTBw8
eeYVRrzY8q7Sn1DKScFc
=WZLl
-----END PGP SIGNATURE-----

--tThc/1wpZn/ma/RB--

- Raw text -


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