octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Smashing the stack


From: Jordi Gutiérrez Hermoso
Subject: Smashing the stack
Date: Fri, 25 May 2012 16:40:04 -0400

This seems like a rather esoteric thing to do, but:

    a = {}
    for i = 1:1e6
        a = {rand, a};
    endfor

    for i = 2:1e6
        a = a{2};
    endfor

This segfaults for me after a relatively long time, presumably since
the call stack goes up to about 1e6 stack frames.

Is it worthwhile trying to fix this?

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]