Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How to find code error in source given offset in executable

Author: Dann Corbit

Date: 18:22:07 03/07/06

Go up one level in this thread


On March 07, 2006 at 21:07:51, David B Weller wrote:

>My engine has performed a segment fault error at offset 00001e52

That's a strange looking offset.  I think some information is missing.  Is that
an offset from a module address?  Addresses that close to the start of memory
are generally reserved for the OS kernel.

>How do I find that in the source? Or get close?

If you compiled with a map, it's easy.  Just look at the map.
If the program is running, attach the debugger and you can go right to the spot.

>I have no idea. Do I have to reverse engineer my own software??? :)

No.

>How do you even look at the assembly code of the compiler?

Assuming you have MS VC++, right click on the code --> go to assembly.
Gdb has something similar, but I can't remember what it is right now.
These commands are very Compiler + IDE specific.

>Thanks,
>
>-David

If you know how to reproduce the problem, compile with line numbers and start it
under the debugger.



This page took 0.07 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.