limits to Limit [Re: Severe bug in Mathematica 6 - Limit - 1 - No more memory available. Mathematica kernel has shut down.]



On Jun 15, 1:20 pm, Vladimir Bondarenko <v...@xxxxxxxxxxxxxxx> wrote:
Limit[Sqrt[1/z^1000000000+z], z-> Infinity]

No more memory available.
Mathematica kernel has shut down.

Best wishes,

Vladimir Bondarenko
[...]


Looks like a reasonable consequence of sensible methodology. More
details below.

As a bug report, this would, hereabouts, be regarded poorly insofar as
it is overly complicated. The same behavior happens with:

In[26]:= Limit[1/z^1000000000+z, z->Infinity]

No more memory available.
Mathematica kernel has shut down.
Try quitting other applications and then retry.

An ambitious QA analyst might guess the problem is in a power series
expansion, and check as thus.

In[1]:= Unprotect[Series];

In[2]:= Series[a__]:= Null /; (Print[InputForm[ser[a]]];False)

In[3]:= Limit[1/z^1000000000+z, z->Infinity]
ser[(1 + z^1000000001)/z, {z, 0, 1}, Assumptions -> z^(-1) >
1073741824]

No more memory available.

This takes us to the cause of the crash. Limit recognized it had a
rational function in the variable z and, quite sensibly, attempted to
find a series expansion. That in turn uses a dense data structure and
ran out of memory. We now have the underlying example

Series[(1 + z^1000000001)/z, {z,0,2}]

Further removal of dross shows that

Series[(1 + z^1000000001), {z,0,2}]

will likewise crash. At this point someone (me) looks hard in a
debugger and sees the crash is from attempting to add SeriesData
objects with powers quite far apart.

1 + SeriesData[z, 0, {}, 1000000001, 1000000001, 1]

This is something I might look at further, though frankly I give it no
more than a low priority. Your classification of this as a "severe
bug" indicates some prioritization issues, to say the least.

Daniel Lichtblau
Wolfram Research

.



Relevant Pages

  • Re: benchmarking CAS
    ... and that more advanced garbage collection techniques ... means that the garbage collector has to scan more memory each ... be hit twice because garbage collection flushes the L2/L3 cache. ... clearing the value of x will restore the Mathematica kernel to ...
    (sci.math.symbolic)
  • Re: Wolfram Research QA process defect: Bug in Mathematica 6 - Integrate - 66 (Sqrt, No more
    ... Vladimir Bondarenko schrieb: ... Mathematica kernel has shut down. ... Mathematica 5.2 No more memory available. ... BUG #2 ...
    (sci.math.symbolic)
  • Re: Time to fix my PC
    ... intermittently bad) is the power supply 'system'. ... Intermittent memory often passes all tests at room temperature. ... Responsible computer manufacturers provide comprehensive hardware ... such as the crash code or data from system logs in the OS ...
    (comp.os.linux.hardware)
  • Re: Time to fix my PC
    ... Intermittent memory often passes all tests at room temperature. ... such as the crash code or data from system logs in the OS ... only certain hardware can crash a properly designed ... I'll pull out the audio and DVD drives while testing to simplify ...
    (comp.os.linux.hardware)
  • Re: MyString Class
    ... > I compiled your program and run it under the debugger. ... > The first crash happens in ... ... > memory is flawed. ... First bug fixed. ...
    (comp.lang.cpp)