help-octave
[Top][All Lists]
Advanced

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

Re: Memory exhausted when using \


From: Jordi Gutiérrez Hermoso
Subject: Re: Memory exhausted when using \
Date: Fri, 20 Jul 2012 10:28:37 -0400

On 20 July 2012 08:15, Mathieu Dubois <address@hidden> wrote:

>> De: "Jordi Gutiérrez Hermoso" <address@hidden>

>> On 19 July 2012 16:17, Jordi Gutiérrez Hermoso <address@hidden>
>> wrote:
>> > On 19 July 2012 16:06, Mathieu Dubois <address@hidden>
>> > wrote:
>> >> You can download the dump at:
>> >> http://www.ensta-paristech.fr/~mdubois/memory-exhausted
>> >>
>> >>
>> >> The command I used was:
>> >> save memory-exhausted A b
>> >> right before the line:
>> >>
>> >> tic; X = A \ b; toc;
>> >> (executing this line raises the error)
>> >
>> > Ok, great, thanks. I can now reproduce this problem, and I think it
>> > shouldn't happen. This may be a bug in Octave. I'm investigating
>> > now.
>>
>> I can see the problem now. I just patched it:
>>
>>     http://hg.savannah.gnu.org/hgweb/octave/rev/4315a39da4c9
>>
>> You'll have to wait for our 3.6.3 release or apply this patch
>> yourself
>> to the current 3.6.2 release.
>>
> I have tried to patch octave 3.6.2 but it fails altough differently.
> I'm not completely sure if this is correct.

Yes, from your description, you patched Octave correctly.

> When I run test_inpaintZ it stops on the first test (the one with
> the small matrices). The output message and the core dump are
> attached.

I'm unable to reproduce this problem with the code you've sent me, but
I was also unable to reproduce the "memory exhausted" error message to
begin with. Either you're sending me code that is different from the
code that you're running yourself, or... well, I don't know what else
could be happening. I am suspicious of the nvidia blob that shows up
in your memory map, but that could be unrelated.

If you want to keep debugging this, do the following:

    1) Compile Octave again, this time as a debug build:

       ./configure CFLAGS=-g CXXFLAGS=-g FFLAGS=-g
       make
       ## no make install

   2) Run Octave with gdb, from the build directory:

     ./run-octave -g /path/to/test_inpaintZ.m
     (gdb) run

   3) When Octave crashes, get a stack trace:

     (gdb) bt

   4) Send us that stack trace.

You should also do this again but with valgrind instead of gdb
(-valgrind option to ./run-octave instead of -g).

> Is that a problem?

Well, of course, Octave shouldn't crash.

- Jordi G. H.


reply via email to

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