www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/01/02:06:41

Date: Mon, 31 Oct 94 21:34:05 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: babcock AT cfa DOT harvard DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: NULL pointers in (ANSI) string functions [was: strcat() ?]

> I agree that a stack trace does tell you exactly where it broke, but if the
> trace were accompanied by a message "NULL pointer passed to xxxxxx", you
> would know the cause a little quicker.  Whether this small advantage is worth
> the trouble of creating and maintaining a debugging library is questionable.

It does.  The stack trace lists strcat as the failing function, and
the register dump says that the offending memory address (cr2) is
0x00000000.  It's not spelled out in plain English, but it's there.


- Raw text -


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