www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/13/07:18:47

Date: Wed, 12 Oct 94 20:34 PDT
From: jdp AT polstra DOT com (John Polstra)
To: djgpp AT polstra DOT com
Subject: Re: swap file weirdness

dj AT stealth DOT ctron DOT com writes:

> Page files (well, any file) can get corrupted if the application exits
> in such a way that go32 doesn't get a chance to clean up properly.  As
> of 1.12, go32 paging files always have the string "go32 paging file" in
> the first block of the file, so that you can tell that that's what they
> are.

I've noticed that (the string, I mean).  Nice touch!

> 
> I've seen this happen myself, but I can't figure out a reliable and
> short way of reproducing it.

I believe you can make it happen reliably like this:

    1.  Start up GDB to debug a program.
    2.  Start excuting the program under GDB.
    3.  Hit a breakpoint before the program has terminated.
    4.  Quit out of GDB without continuing the program (so that it never
	terminates).

   John Polstra                                       jdp AT polstra DOT com
   John D. Polstra & Co., Inc.                   Phone (206) 932-6482
   Seattle, Washington USA                         Fax (206) 935-1262
   "Self-knowledge is always bad news."                 -- John Barth

- Raw text -


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