comp.lang.ada
 help / color / mirror / Atom feed
From: mfb@mbunix.mitre.org (Michael F Brenner)
Subject: Re: GNAT exception traceback
Date: 1997/06/19
Date: 1997-06-19T00:00:00+00:00	[thread overview]
Message-ID: <5ob92l$lge@top.mitre.org> (raw)
In-Reply-To: EBxu4z.GFI@world.std.com


R. Dewar:
>First: The slient disappearence of exceptions raised in tasks is *required*
>by the Ada language. The semantics of an unhandled exception is that it
>silently terminates the task in which it appears if this is not the
>environment task. This is not considered an error by the language definition.

R. Duff:
>Quite true -- the semantics of Ada is that it's not an error to have an
>unhandled exception in a task.  Nonetheless, I think the default
>behavior of all Ada implementations should be to print out an error
>message (including a stack trace-back) when this happens.  You could
>even get away with making this the *only* behavior -- nothing in the Ada
>RM says the implementation can't print out interesting information
>whenever it likes.  I'd be reluctant to go that far, however, because
>somebody, somewhere is probably depending on this "silent" behavior.

Depending on this silent behavior? The only argument against having
the ability to generate a traceback given in this thread was 
that it would take a lot of memory. Other, unspoken arguments 
similarly have nothing to do with people depending on not being
able to get the tracebacks at their option: (a) embedded systems
without neither monitor nor file system nor Net connection might
give a problem to compiler vendors who are not creative enough
to program this option in a manner compatible to the available
radio controlled hardware on the space ship; (b) tasks which
are aborted or which terminate abnormally might have been
starved off by a main program (think of obsolete species
whose societies evolve to take up to much of the resources
of the planet so they get calamatied away right in the middle
of their supposed evolution), and that main program does not care
about any appeals from them, however, programmers who arent part of
that great green ooze of evolution, might wish to know why and how 
they got starved off for anthropological reasons;
(c) the great beauty of the intertwining of the two major cables
(mega-threads) which make up comp.lang.ada, namely 
comp.style.ada and comp.fast.ada, which contrast the efficiency
versus the stylistic aesthetics, are twisted in such a way
that efficiency always wins, either by permitting the language
to do things the efficient way, or by being a source of
whining on the part of the efficienados (to coin a word :).

As long as it remained an option, and did not disturb the
many users of commercial products who do not wish to know
why their mouse hung up, there is nothing in the manual that
forbids a compiler/runtime option to generate tracebacks
for either the main program or tasks. 

In addition, there is nothing that prevents more accurate
tracebacks, better control over which exceptions are
treated as fatal errors for debugging purposes versus
which are just handled.           




  reply	other threads:[~1997-06-19  0:00 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-13  0:00 GNAT exception traceback Huy Vo
1997-06-13  0:00 ` Robert Dewar
1997-06-16  0:00   ` wiljan
1997-06-17  0:00     ` Robert Dewar
1997-06-17  0:00       ` Robert A Duff
1997-06-19  0:00         ` Michael F Brenner [this message]
1997-06-17  0:00       ` Spam Hater
1997-06-17  0:00         ` Corey Minyard
1997-06-17  0:00           ` Spam Hater
1997-06-18  0:00             ` Corey Minyard
1997-06-18  0:00               ` Spam Hater
1997-06-18  0:00                 ` Tom Moran
1997-06-20  0:00                   ` Robert Dewar
1997-06-19  0:00                 ` Corey Minyard
1997-06-20  0:00                 ` Robert Dewar
1997-06-20  0:00                 ` Richard Kenner
1997-06-18  0:00         ` Richard Kenner
1997-06-23  0:00   ` Geert Bosch
1997-06-27  0:00     ` Michael F Brenner
1997-07-02  0:00     ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1997-06-19  0:00 Chris Sparks (Mr. Ada)
1997-06-16  0:00 Chris Sparks (Mr. Ada)
1997-06-16  0:00 ` Robert Dewar
1997-06-11  0:00 Steve Gibson
1997-06-12  0:00 ` Robert Dewar
1997-06-13  0:00   ` Mats.Weber
1997-06-14  0:00     ` Robert Dewar
1997-06-16  0:00       ` Mats.Weber
1997-06-16  0:00         ` Robert Dewar
1997-06-16  0:00         ` Fergus Henderson
1997-06-16  0:00     ` Gautier
1997-06-17  0:00       ` Robert Dewar
1997-06-14  0:00   ` Aaron Metzger
1997-06-14  0:00     ` Robert Dewar
1997-06-14  0:00       ` Robert A Duff
1997-06-16  0:00       ` Spam Hater
1997-06-17  0:00         ` Robert Dewar
1997-06-17  0:00         ` Robert Dewar
1997-06-16  0:00       ` Corey Minyard
1997-06-16  0:00     ` Spam Hater
1997-06-17  0:00       ` Robert Dewar
1997-06-19  0:00         ` Geert Bosch
1997-06-18  0:00       ` Samuel Tardieu
1997-06-18  0:00       ` Richard Kenner
1997-06-14  0:00 ` Martin Kristensson
1997-06-14  0:00   ` Robert Dewar
     [not found] <82@pluto.win-uk.net>
1996-02-17  0:00 ` GNAT : Exception traceback Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox