Program dieing immediatly upon execution

Stephen Wheatcraft steve at olympus.wrcr.unr.edu
Mon Nov 12 05:44:45 AEST 1990


In article <9011081612.AA02433 at aero4.larc.nasa.gov> blbates at AERO4.LARC.NASA.GOV ("Brent L. Bates AAD/TAB MS361 x42854") writes:
>
>    I am trying to port some software that was writen for a 3130 to a 4D/VGX.
>Everything compiles ok, however when I try to execute it, I immediatly get
>a segmentation violation.  Using edge to debug it, I found it dies upon the
>very first executable line.  The line was originally ginit();  I tried 
>changing this to winopen, but that didn't change things.
>    Anyone have any ideas why it would die on the very first executable line?
>There is nothing to debug, because it hasn't done anything.
>--

It may not really be dying on the first line, despite what edge
tells you. You can't always depend on edge (or dbxtool on Suns,
which is very similar) to "tell the truth". I have had several
debugging problems with both in which I was ultimately able to
determine that the debugger was leading me astray. Cost me
several days of wild goose chases a few times. I could go into
details, but I don't think they would help in your case and would
just waste bandwidth. Just remember not to put all your trust in
edge - try some other debugging methods just to be sure.

Steve Wheatcraft                Internet: steve at olympus.wrc.unr.edu
Desert Research Institute       Bitnet  : steve at unsvax.bitnet
University of Nevada System
P.O. Box 60220                  AT&T    : (702) 673-7393
Reno, NV 89506                  FAX     : (702) 673-7397



More information about the Comp.sys.sgi mailing list