help-octave
[Top][All Lists]
Advanced

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

Re: loop causes a crash


From: Carlo de Falco
Subject: Re: loop causes a crash
Date: Fri, 22 May 2009 08:32:11 +0200


On 21 May 2009, at 23:02, Carlo de Falco wrote:


On 21 May 2009, at 07:48, Bertrand Roessli wrote:

I submitted this report to


address@hidden

but I think it did not arrive:



Hello,

this loop causes a crash in Octave-3.1.55:

for i=1:10
      for j=1:10
              for l=1:10
                      a(j,l,i)=1; %crash
                      %a(i,j,l)=1; %is fine
              endfor
      endfor
endfor

This works fine for me with the latest sources from mercurial on OSX.
c.




Actually I was too quick in saying that it works for me:

---------------------------------
>> for i=1:10
       for j=1:10
               for l=1:10
                       a(j,l,i)=1; %crash
                       %a(i,j,l)=1; %is fine
               endfor
       endfor
endfor
>>
---------------------------------

produces no error, but

---------------------------------
>> size(a)
panic: Segmentation fault -- stopping myself...
Segmentation fault
---------------------------------

c.




reply via email to

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