delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/25/05:25:02

From: dewoody AT athens DOT net (Andrew or Yssa DeWoody)
Subject: Help: corrupted stack
25 Nov 1997 05:25:02 -0800 :
Message-ID: <01bcf95f$42c2c000$1cc92acf.cygnus.gnu-win32@athens.net.dewoodyathens.net>
Reply-To: "Andrew or Yssa DeWoody" <dewoody AT athens DOT net>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

This is a multi-part message in MIME format.

------=_NextPart_000_0004_01BCF935.59ECB800
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm running a  C program at the DOS prompt that was compiled by gcc.  =
The program is using the  Kutta-Merson algorithm to integrate big set of =
differential equations forward in time.  The program (new3.c) compiles =
without warnings or errors.  The program appears to run fine (meaning =
the output to the screen is normal), but at the termination of the =
program I get the message displayed below and the output files created =
by the program are all mess up.  I get the same message if I run the =
program in bash.

(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) In cygwin_except_handler
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) Exception trapped!
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception C0000005 at 10027F6C
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception: ax 40100A bx 1EA8E850 =
cx 401073 dx 31
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception: si 1EA8E850 di =
1000C102 bp 254EF48 sp 254EF40
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception is: =
STATUS_ACCESS_VIOLATION
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) Stack trace:
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 0: sp =3D 0x254ED5C, pc =
=3D 0x1000CEC2
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 1: sp =3D 0x254ED78, pc =
=3D 0xBFF766B5
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 2: sp =3D 0x254ED9C, pc =
=3D 0xBFF85E6C
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 3: sp =3D 0x254EE30, pc =
=3D 0xFFECBAD7
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 4: sp =3D 0x254EF48, pc =
=3D 0x100306CB
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 5: sp =3D 0x254EF78, pc =
=3D 0x1002710B
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 6: sp =3D 0x254EFA4, pc =
=3D 0x40257F
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 7: sp =3D 0x254F294, pc =
=3D 0x1000C102
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 8: sp =3D 0x254FE0C, pc =
=3D 0x1000C113
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 9: sp =3D 0x254FE4A, pc =
=3D 0x45003377
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) In cygwin_except_handler
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) Error while dumping state =
(probably corrupted stack)


Is this a memory problem?  Any suggestions on how to fix it?

Thanks,
Yssa

------=_NextPart_000_0004_01BCF935.59ECB800
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000080 size=3D2>I'm running a&nbsp; C program at the =
DOS prompt=20
that was compiled by gcc.&nbsp; The program is using the&nbsp; =
Kutta-Merson=20
algorithm to integrate big set of differential equations forward in =
time.&nbsp;=20
The program (new3.c) compiles without warnings or errors.&nbsp; The =
program=20
appears to run fine (meaning the output to the screen is normal), but at =
the=20
termination of the program I get the message displayed below and the =
output=20
files created by the program are all mess up.&nbsp; I get the same =
message if I=20
run the program in bash.</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) In=20
cygwin_except_handler<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) =
Exception=20
trapped!<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception C0000005 =
at=20
10027F6C<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception: ax 40100A =
bx=20
1EA8E850 cx 401073 dx 31<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) =
exception:=20
si 1EA8E850 di 1000C102 bp 254EF48 sp=20
254EF40<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception is:=20
STATUS_ACCESS_VIOLATION<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) Stack =

trace:<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 0: sp =3D =
0x254ED5C, pc =3D=20
0x1000CEC2</FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame 1:=20
sp =3D 0x254ED78, pc =3D 0xBFF766B5</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame 2:=20
sp =3D 0x254ED9C, pc =3D 0xBFF85E6C</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame 3:=20
sp =3D 0x254EE30, pc =3D 0xFFECBAD7</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame 4:=20
sp =3D 0x254EF48, pc =3D 0x100306CB</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame 5:=20
sp =3D 0x254EF78, pc =3D 0x1002710B</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame 6:=20
sp =3D 0x254EFA4, pc =3D 0x40257F<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame=20
7: sp =3D 0x254F294, pc =3D 0x1000C102</FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame 8:=20
sp =3D 0x254FE0C, pc =3D 0x1000C113</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) frame 9:=20
sp =3D 0x254FE4A, pc =3D 0x45003377</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE =
1000) In=20
cygwin_except_handler<BR>(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) Error =
while=20
dumping state (probably corrupted stack)</FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 size=3D2>Is this a memory problem?&nbsp; Any =
suggestions=20
on how to fix it?</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000080 size=3D2>Thanks,</FONT></DIV>
<DIV><FONT color=3D#000080 size=3D2>Yssa</FONT></DIV></BODY></HTML>

------=_NextPart_000_0004_01BCF935.59ECB800--

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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