public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* freopen failed, core dumped
@ 2014-09-01 21:23 Gery .
       [not found] ` <DUB129-W4109A2A3EB11D0A2FC4E32B0C60@phx.gbl>
  2014-09-02  8:46 ` Corinna Vinschen
  0 siblings, 2 replies; 3+ messages in thread
From: Gery . @ 2014-09-01 21:23 UTC (permalink / raw)
  To: cygwin

Hello,

I received the following message after using a computer-intensive program (seismic unix):


freopen failed in VNDseekVNDrwslice: seek failed mode = r iopanel = 0 idim = 0 iblock = 400 ipanel = 0
Aborted (core dumped)

What means that message?

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:

regtool -i set /HKLM/Software/Cygwin/heap_chunk_in_mb 1024
regtool -v list /HKLM/Software/Cygwin

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

Thanks for any pointers,

Gery


PS. Some details of my installation:

$ uname -a
CYGWIN_NT-6.3-WOW64 gery 1.7.31(0.272/5/3) 2014-07-25 11:08 i686 Cygwin

$ cygcheck -s

Cygwin Configuration Diagnostics
Current System Time: Mon Sep 01 22:16:41 2014

Windows 8.1 Ver 6.3 Build 9600

Running under WOW64 on AMD64 (i5-4200 cpu @ 1.6GHz 8gb ram) 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: freopen failed, core dumped
       [not found] ` <DUB129-W4109A2A3EB11D0A2FC4E32B0C60@phx.gbl>
@ 2014-09-01 21:36   ` Gery .
  0 siblings, 0 replies; 3+ messages in thread
From: Gery . @ 2014-09-01 21:36 UTC (permalink / raw)
  To: cygwin

I forgot to add the stack trace, here it is:

$ cat suradon.exe.stackdump
Stack trace:
Frame     Function  Args
0028A618  61030562 (000000D4, 0000EA60, 000000A4, 0028A678)
0028A738  610DAEDD (00000000, 00000000, 00000003, 00000000)

Any ideas?

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: freopen failed, core dumped
  2014-09-01 21:23 freopen failed, core dumped Gery .
       [not found] ` <DUB129-W4109A2A3EB11D0A2FC4E32B0C60@phx.gbl>
@ 2014-09-02  8:46 ` Corinna Vinschen
  1 sibling, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2014-09-02  8:46 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2051 bytes --]

On Sep  1 21:23, Gery . wrote:
> Hello,
> 
> I received the following message after using a computer-intensive
> program (seismic unix):
> 
> 
> freopen failed in VNDseekVNDrwslice: seek failed mode = r iopanel = 0 idim = 0 iblock = 400 ipanel = 0
> Aborted (core dumped)
> 
> 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.

> 
> 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:
> 
> 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

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

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-02  8:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01 21:23 freopen failed, core dumped Gery .
     [not found] ` <DUB129-W4109A2A3EB11D0A2FC4E32B0C60@phx.gbl>
2014-09-01 21:36   ` Gery .
2014-09-02  8:46 ` Corinna Vinschen

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).