delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/17/14:26:36

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: unload_datafile( ) freezes - please help :(
Date: Thu, 17 Feb 2000 10:26:52 +0200
Organization: NetVision Israel
Lines: 35
Message-ID: <Pine.SUN.3.91.1000217102632.20415I-100000@is>
References: <e1 DOT 143510b DOT 25dbac7f AT aol DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1000216131014 DOT 9560C-100000 AT is> <7idlasg6csd38ifjirfp3rgl8ah0p26ufj AT 4ax DOT com>
NNTP-Posting-Host: 199.203.121.2
Mime-Version: 1.0
X-Trace: news.netvision.net.il 950776190 1812 199.203.121.2 (17 Feb 2000 08:29:50 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 17 Feb 2000 08:29:50 GMT
X-Sender: eliz AT is
In-Reply-To: <7idlasg6csd38ifjirfp3rgl8ah0p26ufj@4ax.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 16 Feb 2000, Damian Yerrick wrote:

> On Wed, 16 Feb 2000 13:12:10 +0200 (IST), Eli Zaretskii
> <eliz AT is DOT elta DOT co DOT il> wrote:
> 
> >On Wed, 16 Feb 2000 Riddler02 AT aol DOT com wrote:
> >     
> >>     Shutting down Allegro
> >>     Exiting due to signal SIGINT
> >>     INTR key Pressed at eib=000339d7
> >> 
> >> which is not too much help at all.
> >
> >Try pressing Ctrl-BREAK instead, and it should produce a regsiter dump 
> >and a stack traceback.  Post that message here, and somebody might be 
> >able to glean something useful from that.
> 
> Allegro catches Ctrl+Break in its keyboard handler.

Does it gobble Ctrl-BREAK without a trace?  It obviously doesn't do
that with Ctrl-C (see above).  If Ctrl-BREAK gets the same treatment
as Ctrl-C does, you will see the full traceback instead of just "INTR
key Pressed at eip=".

If Allegro does cause Ctrl-BREAK disappear without a trace, I'd say
that's a misfeature: the fact that Ctrl-BREAK generates a full
traceback is a valuable feature, designed just for such cases where a
program gets stuck in an endless loop.  Losing it is IMHO a Bad Idea:
it makes debugging harder.

(FWIW, generation of SIGINT given Ctrl-C or Ctrl-BREAK is done by the
keyboard handler installed by the stock DJGPP startup code.  So a
keyboard handler doesn't necessarily contradict proper treatment of
Ctrl-BREAK.)

- Raw text -


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