Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Shue-Cheng CHEN , djgpp AT delorie DOT com Date: Wed, 6 May 1998 10:47:06 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: How to deal with my program crash? In-reply-to: <355022B3.7199D06A@ohriki.t.u-tokyo.ac.jp> Precedence: bulk Shue-Cheng CHEN 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