This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Help: corrupted stack


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 = 0x254ED5C, pc = 0x1000CEC2
 
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 1: sp = 0x254ED78, pc = 0xBFF766B5
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 2: sp = 0x254ED9C, pc = 0xBFF85E6C
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 3: sp = 0x254EE30, pc = 0xFFECBAD7
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 4: sp = 0x254EF48, pc = 0x100306CB
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 5: sp = 0x254EF78, pc = 0x1002710B
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 6: sp = 0x254EFA4, pc = 0x40257F
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 7: sp = 0x254F294, pc = 0x1000C102
 
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 8: sp = 0x254FE0C, pc = 0x1000C113
(C:\WINDOWS\DESKTOP\WALK\NEW3.EXE 1000) frame 9: sp = 0x254FE4A, pc = 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]