delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/02/04:47:13

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=bXpl0OgFLhJQczlHTM6kZhIOB0tqfe0o2Wx7xc5mA3rVPdUfnUCfa
dRJomPbEGAK/RM1xf7D3JT+SZht9lkeAx4rECNxoz7qCvZpmS0XF+Vk0mzCbgD9G
BqWqU7ad/Es5PSBJP6v9CRMbmgWDs0iJvIatN5Ul8JkaXHFeisMr14=
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=4B98VygdarJMpz5eMRdfmreYEsQ=; b=Zt5I7iUhCE9DnhSKmA7dYVe6mpJv
/Kpn+frlBRb4qOew599FLRIYaEboFr4KDxlfXjl+dkhiZqWhOIM5SQGm65y5hphx
HAgBde7ZYCN8t5p5nLTh8MDrBs1ioY3KRTbg8itV9KYgE2KhXB9LgBk2PmJV1SWC
q8EhdfpTZUbNgTM=
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.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 2 Sep 2014 10:46:41 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: freopen failed, core dumped
Message-ID: <20140902084641.GO2644@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <DUB129-W34A3770ACFDA287CBE49A7B0C60 AT phx DOT gbl>
MIME-Version: 1.0
In-Reply-To: <DUB129-W34A3770ACFDA287CBE49A7B0C60@phx.gbl>
User-Agent: Mutt/1.5.23 (2014-03-12)

--7l042bGvurpep9Wg
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sep  1 21:23, Gery . wrote:
> Hello,
>=20
> I received the following message after using a computer-intensive
> program (seismic unix):
>=20
>=20
> freopen failed in VNDseekVNDrwslice: seek failed mode =3D r iopanel =3D 0=
 idim =3D 0 iblock =3D 400 ipanel =3D 0
> Aborted (core dumped)
>=20
> What means that message?

No idea.  This message has been generated by the application after a
freopen system call returned NULL, then the application called abort.
Neither the message nor the stackdump created by abort is helpful in
this scenario.

>=20
> I presume that cygwin is complaining about that tool program, but this
> happens only with one executable called suradon, which requires a lot
> of resources. I just changed cygwin's heap maximum memory to 2GB with:
>=20
> regtool -i set /HKLM/Software/Cygwin/heap_chunk_in_mb 1024
> regtool -v list /HKLM/Software/Cygwin

??? Did you read the User's Guide lately?  The heap_chunk_in_mb method
has been deprecated with Cygwin 1.7.10.  We're at 1.7.32 ATM.
https://cygwin.com/cygwin-ug-net/setup-maxmem.html

But it's not at all clear if the heap is really the problem since we
don't know why freopen failed.  The application should also print errno
or strerror(errno), since freopen knows a whole bunch of potential errors.

Even if it's a memory problem, it could be the cygheap.  The cygheap is
a secondary heap which is only used for datastructures private to the
Cygwin DLL.  It's pretty restricted on 32 bit systems since it follows
immediately after the Cygwin DLL and the space after that is often taken
by other DLLs.  That in turn often disallows to raise its size.

> but that core dumped error persists. Any idea how to solve this USING
> cygwin (ie. without moving to linux)?

You could move to 64 bit Cygwin and recompile your application.  The
bigger virtual address space is quite helpful at times.


Corinna

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

--7l042bGvurpep9Wg
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUBYPxAAoJEPU2Bp2uRE+gBx0P/RycGoy0nMM5M+LmKDPpp8R2
JuyagmeCTn35OVQAqkRErjIKAUJct7uM0lbNd3dunuZy0XWaeEwhZWMV2j+pAnQL
SF17AYl9qJxbQ+prOLOhbh51sBDdSWXtm6D6rg1APh3nY2srkVjTdKyY9dOZGmUV
xf/SFDE0XEp0J+s8FKtYJ+DBvy5YMLa2MmeunPwtdI2xWWUzk2JA+DWAk+LSmJbZ
JRrlInlPr9kUpwRAWKflksTWzMQ3y2mr4JRIsMriNQmjRVErMY/NavOQw87iUjD+
5pNn62WDRG1kaC/JJN72haVvtegzcGOZrQhJ3TMv4hkk3w/46s0UQYPY1u9WQ/4C
//5wDjVRZpxGhsevIQGPH2f+sRTOsmQCnmT8myTmQfVXJExfBoy5mD4R7sUgWc30
X87/f0PWW7qQNOiCWhtKwPCf5W6W7w8tfoo2Y3qjKFvfs3KlnOxSg7Bpg8fIAn03
lytQPY92zaTvaDRxErQgLi1FeZl4tnlQBGlMHmeXHc0EhzI+L4pxhncABhc+jzQs
AJBBIa8tZmysWnQD3KjItcyEXLopeKVt6ySZj6HsUEcPScHJq2sli7e02hpserYm
2kY5rmjYRwdXPE74SpDbsDa4v7XKYuIDiAdW2xNufCGO/TqeE7jKA0oxCM5VRdRM
DZXl3Mh0D/JTrtOVVcAF
=HPZZ
-----END PGP SIGNATURE-----

--7l042bGvurpep9Wg--

- Raw text -


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