delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/02/06:38:53

Date: Sun, 2 Mar 1997 13:32:33 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Paul Derbyshire <ao950 AT FreeNet DOT Carleton DOT CA>
cc: djgpp AT delorie DOT com
Subject: Re: TIP: If you ever see 0x00000000 in a traceback
In-Reply-To: <5f8hho$c55@freenet-news.carleton.ca>
Message-ID: <Pine.SUN.3.91.970302133215.6609S-100000@is>
MIME-Version: 1.0

On 1 Mar 1997, Paul Derbyshire wrote:

> If you get a crash with a traceback of just 0x00000000 with nothing symify
> can use, chances are you accidentally used a NULL pointer somewhere a
> pointer to a function was expected. I.e.
> 
> int main (int argc, char *argv[]) {
>   void (*func)(void);
>   func=NULL;
>   func();
> }
> 
> will generate such a crash.

Another, more common case is that your program crashed inside a signal
handler, or used some other method of a non-local goto.

- Raw text -


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