Re: limits at infinity Re: Maple bug the long liver, 1992--2007--? (limit)



There are several research question in this bug or not bug. They have been voiced from time to time. To my knowledge it was of concern to the Macsyma project at least as early as 1970. I probably proposed to study it in some (unfunded) proposal to the NSF, within the last decade.

Before doing a (symbolic, or other) calculation, try to estimate the effort to complete it. This is, in general, impossible. But in specific
instances, sometimes easy. Without computing any coefficients, you can
deduce a close estimate for the number of coefficients in the
answer to a dense polynomial multiplication.

In the course of a (symbolic, or other) calculation, have the computer be sufficiently "aware" of what is going on so that it halts --before-- running out of some vital resource and crashing. Often this takes the form of stack overflow. It is, in some contexts, a bad thing to check for stack overflow. Specifically when the doofus who is comparing programs only compares their TIMES. In other contexts of course this is totally absurd. E.g. You could build an airplane that weighed less and cost less, and yet transport the same number of passengers. Leave off the safety systems.

I have, in specific instances, been told that the Lisp system we built at Berkeley (circa 1978) was too slow. After all, we checked for stack overflows. This makes sense only if you can a prior prove that the amount of stack that you provide is sufficient for any calculation,
or alternatively, you don't care if the system crashes sometimes.

From the self-aware perspective, if a CAS is asked to do something that takes too much of some resource, it should not lead to a system crash, and so even if VB's questions are essentially "user error", it is impolite for the CAS to crash the program (or even the whole OS).

This kind of feature is not easy to build. For example, Macsyma/Maxima can be run on several different implementations of Common Lisp. Some implementations treat stack overflow as an opportunity to crash. Others pause and allow you (or some program) to increase the size or signal a
(recoverable) error.
Thus the Maxima system must rely on features not described in the ANSI Common Lisp standard. It is not clear if this is also true of Maple or Mathematica's implementation base.

It is, in my view, clear that "out of memory, machine crash" is not a "feature".

RJF




.



Relevant Pages

  • Re: CE 5.0 crashes in editor during "intellisense"
    ... window with the PC at the point of the crash. ... Michel Verhagen, eMVP ... occasional "pregnant pause" whenever I typed a left parenthesis. ... FEACP.DLL throws a "stack overflow" exception whenever I ...
    (microsoft.public.windowsce.platbuilder)
  • Re: CE 5.0 crashes in editor during "intellisense"
    ... On smaller projects it has always been a more infrequent and random crash that I never bothered to track down because it always worked correctly on the next run. ... I seem to remember that if you install the raw CE 5.0 distribution from CD without any patches that the text editor keels over if you look at it cross-eyed. ... The problem I was seeing before it started reliably crashing was an occasional "pregnant pause" whenever I typed a left parenthesis. ... If anyone has any hints about how to not have a stack overflow crash in the Platform Builder IDE I'd love to hear about it. ...
    (microsoft.public.windowsce.platbuilder)
  • [Full-disclosure] ProFTPD 1.3.0 remote stack overflow
    ... A remotely exploitable stack overflow vulnerability has been found in ProFTPD ... The off-by-one heap overflow bug in proftpd's sreplace function has been ...
    (Full-Disclosure)
  • [Full-disclosure] ProFTPD remote buffer overflow vulnerability
    ... A remotely exploitable stack overflow vulnerability has been found in ProFTPD ... The off-by-one heap overflow bug in proftpd's sreplace function has been ...
    (Full-Disclosure)
  • Re: CE 5.0 crashes in editor during "intellisense"
    ... you have to be careful to not leave those parenthesis ... open too long or the crash will occur. ... Dean Ramsier - eMVP ... FEACP.DLL throws a "stack overflow" exception whenever I ...
    (microsoft.public.windowsce.platbuilder)