delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/12/03:19:34

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Symify output is silly ... help please!
Date: Tue, 12 May 1998 09:15:58 +0200
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 63
Message-ID: <3557F72E.BF3BFEE7@LSTM.Ruhr-UNI-Bochum.De>
References: <355d83e4 DOT 118624547 AT news DOT fast-net DOT de>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

^Hawk^ wrote:
> 
> Hello there!
> 
> Here's the output of sysmify:
> 
> Gambler: .-=[AUXHOST PHASE #1]=-.
> Gambler: The Gambler v2.00+ starts up
> Gambler: Registered to Thorsten Kaben
> Exiting due to signal SIGSEGV
> General Protection Fault at eip=00008e89
> eax=0011e140 ebx=0011c100 ecx=0000853c edx=0011e140 esi=00000054
> edi=000da5ec
> ebp=33313331 esp=0011a590 program=D:\CPP\EXE\GAMBLER.EXE
> cs: sel=00af  base=8303f000  limit=0012ffff
> ds: sel=00b7  base=8303f000  limit=0012ffff
> es: sel=00b7  base=8303f000  limit=0012ffff
> fs: sel=0087  base=00005310  limit=0000ffff
> gs: sel=00c7  base=00000000  limit=ffffffff
> ss: sel=00b7  base=8303f000  limit=0012ffff
> 
> Call frame traceback EIPs:
>   0x00008e89   _InfoMail__Fv+1081, line 786 of vgapu.cpp
> 
> But the line 786 is simple a "}" for the end of the function
> InfoMail(); ... :((= ... what excact tould me this output ... what for
> a fault is it ? Please explain it for me! Many thanks in advance!

Without seeing the actual code, there are two possibilities
I can think of. 
The first is that something cut together by the optimizer 
causes the fault, so the line info is not completely correct.
Look at the preceeding line to get an idea, or 
recompile without optimization (at least that module)
and try again. 

The other one is that InfoMail() returns a struct, that 
is assigned to an uninitialized pointer, something like

struct bar *foo;
struct bar InfoMail(void);
  foo = NULL;
  *foo = InfoMail();

I am not sure if this is triggered at the end of
InfoMail() or where the actual assignment takes place,
so this may be complete nonsense.


-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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