Date: Thu, 3 Jul 1997 10:42:00 -0700 (PDT) Message-Id: <199707031742.KAA02443@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: badman AT velocity DOT net From: Nate Eldredge Subject: Re: Newbie Question: SIGSEGV? Cc: djgpp AT delorie DOT com Precedence: bulk >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