delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/03/13:49:14

Date: Thu, 3 Jul 1997 10:42:00 -0700 (PDT)
Message-Id: <199707031742.KAA02443@adit.ap.net>
Mime-Version: 1.0
To: badman AT velocity DOT net
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Newbie Question: SIGSEGV?
Cc: djgpp AT delorie DOT com

>I am new to 3d programming and to start I went ahead and wrote a simple 3d
>engine that reads in a world definition file and renders it with full
>freedom of movement...anyway when I try to run it I get some SIGSEGV
>errors. Are these errors in memory addressing by pointers (I use a lot of
>them) or something else?
That's the usual cause. Check for uninitialized and overrun pointers. If you
compile with -g, using `symify myprog.exe' after the crash will give you a
traceback which may help you fing the bug. (If it's inside a library
function, check what you passed to the function.)

 Sometimes it comes up with "error: 0006" but I
>can't find any reference to that error code. I'm also  wondering how to use
>the debugging tools. Right now all I can do is insert "printf"s at certain
>locations and hope the program gets to them without an error. Any help
>would be greatly appreciated. 
I like GDB a lot, but there are several available. Read Section 12 of the
FAQ, particularly 12.5.

HTH


Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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