www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/26/09:02:27

Date: Wed, 26 Apr 1995 13:47:36 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: sbecuwe AT wins DOT uia DOT ac DOT be
Subject: Re: Gen. Prot. Fault / Segm. Fault MSDOS / OS2
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> I have the following problem:
> my programs just won't compile under MSDOS (version 5),
> but when I use a DOS box or DOS full screen under OS/2 v2.1,
> then, most of the time, everything goes well.

What do you mean by ``won't compile''?  Does the compiler segfault,
hangs the machine, or what?  Did you read Chapter 6 of the DJGPP FAQ
list?  It discusses some causes for such calamities and gives some
solutions.  You can get the FAQ list as faqNNN.zip from the same place
you get DJGPP (NNN is a version number).

> Running the output however, causes from time to time a General Protection
> Fault (the programs I compile are not graphical or so; they are part=20
> of a compiler) under OS/2, and Segmentation Faults when running the output
> under MSDOS (i.e. after rebooting the machine).

What about some trivial program, like hello.c?  Does it also GP Fault?  If so,
read Chapter 6 and Chapter 9 of the FAQ and see if that helps.  If the trivial
programs work, may I suggest you consider the possiblity of a bug in your
program?  There is a program called SYMIFY which will translate the stack dump,
printed after the program crashes, into a human-readable source lines; you then
can see what line in what source file caused the problem.

- Raw text -


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