help-octave
[Top][All Lists]
Advanced

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

Re: loop causes a crash


From: Jaroslav Hajek
Subject: Re: loop causes a crash
Date: Fri, 22 May 2009 11:06:40 +0200

On Thu, May 21, 2009 at 7:48 AM, Bertrand Roessli
<address@hidden> 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
>
> octave:1> test
> *** glibc detected *** octave: double free or corruption (!prev):
> 0x08a6b6d0 ***
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6[0xb544a454]
> /lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb544c4b6]
> /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb56010b1]
> /usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb560110d]
> /usr/local/lib/octave-3.1.55/liboctinterp.so(_ZN5ArrayIdED2Ev
> +0x5e)[0xb778748e]
> /usr/local/lib/octave-3.1.55/liboctinterp.so(_ZN13octave_matrixD0Ev
> +0x4a)[0xb78da15a]
> /usr/local/lib/octave-3.1.55/liboctinterp.so(_ZN12symbol_table13symbol_record5clearEv+0x76)[0xb7893496]
> /usr/local/lib/octave-3.1.55/liboctinterp.so(_ZN12symbol_table15clear_variablesEPv+0x4b)[0xb789377b]
> /usr/local/lib/octave-3.1.55/liboctinterp.so(_ZN14unwind_protect9run_frameERKSs+0x5f)[0xb787dfff]
> ...
>
>
> Thanks,
>
> Bertrand Roessli
>
>
>
>

I checked in a fix:
http://hg.savannah.gnu.org/hgweb/octave/rev/f29db0a0aa85

thanks for the report

-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

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