octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #37469] crash when making a large cell array


From: Rik
Subject: [Octave-bug-tracker] [bug #37469] crash when making a large cell array
Date: Sun, 30 Sep 2012 05:29:10 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1

Follow-up Comment #2, bug #37469 (project octave):

Here is a bit more information.  The problem is not in the construction of the
large nested cell array.  Rather the segfault results from the 'whos' command.
 Apparently while trying to calculate the size of the variable 'a' Octave
repeatedly calls byte_size on each element.  This leads to a call stack that
is on the order of 2.4e5.

So, one way to test things is to increase the size of the stack.  I find that
if I increase the size of the stack to 64MB then everything works correctly. 
You might try increasing the size of the stack at the shell prompt and then
trying 'run-octave' and see if everything works.  It does for me.  If that is
the case then this is not an Octave issue and I will close this report.


Limit commands
Operation                sh/ksh/bash command    csh/tcsh command
View soft limits         ulimit -S -a           limit
View hard limits         ulimit -H -a           limit -h
Set stack size to 64 MB  ulimit -S -s 65536     limit stacksize 64m



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37469>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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