cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/06/09:42:02

Message-Id: <m0yX4PZ-000S3xC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Shue-Cheng CHEN <scchen AT ohriki DOT t DOT u-tokyo DOT ac DOT jp>, djgpp AT delorie DOT com
Date: Wed, 6 May 1998 10:47:06 +0000
MIME-Version: 1.0
Subject: Re: How to deal with my program crash?
In-reply-to: <355022B3.7199D06A@ohriki.t.u-tokyo.ac.jp>

Shue-Cheng CHEN <scchen AT ohriki DOT t DOT u-tokyo DOT ac DOT jp> wrote:

> 	My program can be compiled by GCC to generate an execution
> file but always crashes during execution. I followed the direction in
> the DJGPP FAQ to print out its stack dump.
> 
> 	I don't know how to deal with my problem with the stack dump
> list. Please show me a way to do that. Thanks a lot! 
> 
> 	The related information is attached to this mail.

1) Consider using RHIDE it will make the stack dump translation automatically.
2)  What the trace says is:

in the file feappp2.cc line 56 function main you call to
istrstream::Comment, then in the file func2.cc line 355 it calls to
istream::peek where the crash is produced 80 bytes after the start of the 
function.

The is using a bad pointer (99% sure of it)

eax=00000002 ebx=000b39a8 ecx=000bff9c edx=00000000 esi=000b3f90 edi=000b3f34

Perhaps is EDX (a NULL pointer) or maybe EAX.

Now, take a look to main and see if you are making a correct call, then the 
same in istrstream::Comment. Debug the code and see the values in these points.
Additionally you can dissasemble your program (objdump -d file.exe > file.asm) 
and see what's going on in peek, perhaps you can figure out what member of the 
class is a NULL pointer.

SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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