From: mh AT mike DOT franken DOT de (Michael Hirmke) Subject: problems reading/writing to a file? 11 Jul 1998 16:53:50 -0700 Message-ID: <6xej7dZ4pfB.cygnus.gnu-win32@mike.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com Hi *, I'm sending this on behalf of Jonathan George, Tech. Support, Coder. Terra World, Inc. Email: outlaw AT terraworld DOT net ------------------------< snip snip snip >----------------------------- Hello all! I'm compiling a program using cygwin b19.1, (gcc -o lite lite.c). The compile goes smoothly (no errors), yet when I run the program it seems to core dump everytime it tries to either READ or WRITE to a file (using fprintf and/or fgets... Here is the core: (D:\LITE\LITE.EXE 1000) Exception trapped! (D:\LITE\LITE.EXE 1000) exception C0000005 at 4011A3 (D:\LITE\LITE.EXE 1000) exception: ax 401040 bx 0 cx 3 dx BFFBFA00 (D:\LITE\LITE.EXE 1000) exception: si 253FCA8 di 81587520 bp 253FC84 sp 253FA70 (D:\LITE\LITE.EXE 1000) exception is: STATUS_ACCESS_VIOLATION (D:\LITE\LITE.EXE 1000) Stack trace: (D:\LITE\LITE.EXE 1000) frame 0: sp = 0x253F780, pc = 0x1000A250 (D:\LITE\LITE.EXE 1000) frame 1: sp = 0x253F8A4, pc = 0xBFF76780 (D:\LITE\LITE.EXE 1000) frame 2: sp = 0x253F8C8, pc = 0xBFF858F3 (D:\LITE\LITE.EXE 1000) frame 3: sp = 0x253F960, pc = 0xFFECBAD7 (D:\LITE\LITE.EXE 1000) frame 4: sp = 0x253FC84, pc = 0x401921 (D:\LITE\LITE.EXE 1000) frame 5: sp = 0x253FC8C, pc = 0x10006B89 (D:\LITE\LITE.EXE 1000) frame 6: sp = 0x253FE0C, pc = 0x10006B9C (D:\LITE\LITE.EXE 1000) frame 7: sp = 0x253FE18, pc = 0x401A5E (D:\LITE\LITE.EXE 1000) frame 8: sp = 0x253FE28, pc = 0x40103A (D:\LITE\LITE.EXE 1000) frame 9: sp = 0x253FE38, pc = 0xBFF88E93 (D:\LITE\LITE.EXE 1000) frame 10: sp = 0x253FF78, pc = 0xBFF88D41 (D:\LITE\LITE.EXE 1000) frame 11: sp = 0x253FFF4, pc = 0xBFF87759 (D:\LITE\LITE.EXE 1000) frame 12: sp = 0x815A1F54, pc = 0x6 (D:\LITE\LITE.EXE 1000) Exception: STATUS_ACCESS_VIOLATION (D:\LITE\LITE.EXE 1000) Error while dumping state (probably corrupted stack) Any help in fixing this will be extremely appreciated... -------------------------------------------------------------- .---. .---------- Jonathan George, / \ __ / ------ Tech. Support, Coder. / / \( )/ ----- Terra World, Inc. ////// ' \/ ` --- Email: outlaw AT terraworld DOT net //// / // : : --- -support AT terraworld DOT net // / / /` '-- -root AT lite DOT net // //..\\ IRC: net @ irc.lite.net ====UU====UU==== Phone: 1-316-332-1616 [office] '//||\\` ``''`` --- mild-mannered programmer by day, positively grouchy programmer by night -------------------------------------------------------------- - 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".