www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/03/06:42:30

Date: Mon, 3 Jun 1996 13:38:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DAAAAAAAAAN <s0183100 AT unix1 DOT cc DOT ysu DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Strange behavior with DLList's a.clear(), a.append(x)?
In-Reply-To: <4osjgq$1fi0@unix1.cc.ysu.edu>
Message-Id: <Pine.SUN.3.91.960603133348.21344H-100000@is>
Mime-Version: 1.0

On 2 Jun 1996, DAAAAAAAAAN wrote:

> At seemingly random times, in the process of appending to a previously 
> cleared lists, the program will crash with the error:
> Exiting due to signal SIGSEGV
> General Protection Fault at eip=0001c738    
> eax=0000000c ebx=00000001 ecx=fffffffc edx=41442e31 esi=0000000c edi=00000001
> ebp=0008093c esp=00080934 cs=00a7 ds=00af es=00af fs=008f gs=00bf ss=00af
> Call frame traceback EIPs:
>   0x0001c738
>   0x0001b3be
>   0x0000bef9

It is impossible to help you without seeing what was the code that 
triggered the GPF.

Please compile your program with -g switch, and when it crashes, run 
symify on it, like this:

	symify myprog

Symify will print the names of the functions and their location in the 
sources right next to these addresses.  This will show you what functions 
were called in the sequence that led to the disaster.  Chances are that 
given this information you will be able to understand what the problem 
is.  If you won't, either step through those functions with a debugger, 
or post the relevant code fragments here and ask more specific questions.

- Raw text -


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