Message-ID: <19990607150623.32073.qmail@email.seznam.cz> From: SpaZe / ST To: djgpp AT delorie DOT com Date: Mon, 07 Jun 1999 17:06:23 +0200 Subject: Re: What about the registers???? Mime-Version: 1.0 Content-Type: text/plain Reply-To: djgpp AT delorie DOT com Hi! > My program crashes due to a GPF. > Can somebody please explain what one can read > out from all > the regiser results as shown below > > eax, ebx, esi ,es, ds???????????? > ----------- > Exiting due to signal SIGSEGV > General Protection Fault at eip=00001016 > eax=e20000e4 ebx=000001ee ecx=00000000 > edx=00000003 esi=00004284 > edi=00091fc8 > ebp=007b00a1 esp=0008f88f > program=C:\DJGPP\USER\DATABAS\DBASE3.EXE > cs: sel=01cf base=01ee0000 limit=000affff > ds: sel=01d7 base=01ee0000 limit=000affff > es: sel=01d7 base=01ee0000 limit=000affff > fs: sel=019f base=00006720 limit=0000ffff > gs: sel=01df base=00000000 limit=0010ffff > ss: sel=01d7 base=01ee0000 limit=000affff > App stack: [000934f4..000134f4] Exceptn stack: > [000133d8..00011498] > > Call frame traceback EIPs: > 0x00001016 > --------------- That are the values of regs at crashpoint. I think the most valuable numbers are after Call frame traceback EIPs: These are the calls of functions up to crash. You can run 'symify yourprog.exe' to get the names of functions which were run until crash so you can trackdown the crashpoint function and line. (The names and line #s will be printed next to EIP values with brightwhite color) But you must compile with '-g' (debug info) to get the names of the funcs, otherwise you'll see the same numbers as EIPs. Happy debugging and bye! SpaZe ---------------------------------------------------------------- SpaZe / STEALTH Technologies We can only hope there is compassion, E-Mail: stealth DOT tech AT seznam DOT cz understanding, even WWW: http://stealthtech.tsx.org pity inside the Rave AV: http://rav.tsx.org mind of the machine. ---------------------------------------------------------------- -- http://email.seznam.cz -- email zdarma na cely zivot