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" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01BCF935.59ECB800" To: 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
I'm running a  C program at the = DOS prompt=20 that was compiled by gcc.  The program is using the  = Kutta-Merson=20 algorithm to integrate big set of differential equations forward in = time. =20 The program (new3.c) compiles without warnings or errors.  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.  I get the same = message if I=20 run the program in bash.
 
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) In=20 cygwin_except_handler
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) = Exception=20 trapped!
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception C0000005 = at=20 10027F6C
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception: ax 40100A = bx=20 1EA8E850 cx 401073 dx 31
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) = exception:=20 si 1EA8E850 di 1000C102 bp 254EF48 sp=20 254EF40
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) exception is:=20 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=20 0x1000CEC2
 
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame 1:=20 sp =3D 0x254ED78, pc =3D 0xBFF766B5
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame 2:=20 sp =3D 0x254ED9C, pc =3D 0xBFF85E6C
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame 3:=20 sp =3D 0x254EE30, pc =3D 0xFFECBAD7
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame 4:=20 sp =3D 0x254EF48, pc =3D 0x100306CB
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame 5:=20 sp =3D 0x254EF78, pc =3D 0x1002710B
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame 6:=20 sp =3D 0x254EFA4, pc =3D 0x40257F
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame=20 7: sp =3D 0x254F294, pc =3D 0x1000C102
 
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame 8:=20 sp =3D 0x254FE0C, pc =3D 0x1000C113
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) frame 9:=20 sp =3D 0x254FE4A, pc =3D 0x45003377
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE = 1000) In=20 cygwin_except_handler
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) Error = while=20 dumping state (probably corrupted stack)
 
 
 
Is this a memory problem?  Any = suggestions=20 on how to fix it?
 
Thanks,
Yssa
------=_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".