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

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

[Octave-bug-tracker] [bug #58381] Consistent crash on large memory opera


From: anonymous
Subject: [Octave-bug-tracker] [bug #58381] Consistent crash on large memory operations
Date: Thu, 21 May 2020 00:54:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

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

Sorry for the delay. GDB was not helpful. I have pasted it below. With the
unoptimized debug version being much slower than the -O3 release version, I
could see the memory usage rise slowly to 96% memory and 100% swap before the
swap daemon activated and killed Octave.


$ gdb octave
GNU gdb (GDB) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from octave...
warning: File "/home/myname/src/octave/debug/.gdbinit" auto-loading has been
declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /home/myname/src/octave/debug/.gdbinit
line to your configuration file "/home/myname/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/home/myname/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the
shell:
        info "(gdb)Auto-loading safe path"
(gdb) run
Starting program: /usr/local/bin/octave 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
process 436859 is executing new program:
/usr/local/libexec/octave/7.0.0/exec/x86_64-pc-linux-gnu/octave-gui
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffd5839700 (LWP 436863)]
qt5ct: using qt5ct plugin
[New Thread 0x7fffd4927700 (LWP 436864)]
[New Thread 0x7fffcffff700 (LWP 436865)]
[New Thread 0x7fffcf7fe700 (LWP 436866)]
GNU Octave, version 7.0.0
Copyright (C) 2020 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

octave:1> arr = zeros(352e6, 5, "int16");
octave:2> arr = zeros(352e6, 5, "int16"); 
octave:2> for i = 1:5, arr(:,i) = randi(8500, size(arr,1),1); end
octave:3> whos
Variables visible from the current scope:

variables in scope: top scope

   Attr Name           Size                     Bytes  Class
   ==== ====           ====                     =====  ===== 
        arr    352000000x5                 3520000000  int16
        i              1x1                          8  double

Total is 1760000001 elements using 3520000008 bytes

octave:4> vvec = rand(1,1e4);
octave:5> whos
Variables visible from the current scope:

variables in scope: top scope

   Attr Name           Size                     Bytes  Class
   ==== ====           ====                     =====  ===== 
        arr    352000000x5                 3520000000  int16
        i              1x1                          8  double
        vvec           1x10000                  80000  double

Total is 1760010001 elements using 3520080008 bytes

octave:6> s = sortrows(vvec(mat));
error: 'mat' undefined near line 1, column 1
octave:7> s = sortrows(vvec(arr));
[Thread 0x7fffcf7fe700 (LWP 436866) exited]
[Thread 0x7fffcffff700 (LWP 436865) exited]
[Thread 0x7fffd4927700 (LWP 436864) exited]
[Thread 0x7fffd5839700 (LWP 436863) exited]

Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb) bt
No stack.
(gdb) 


Octave was configured with:

CFLAGS="-g" CXXFLAGS="-g" FFLAGS="-g" ../configure --enable-largefile
--enable-threads=posix --enable-64 --enable-openmp --enable-readline
--disable-jit --disable-java --enable-docs --enable-hg-id


The BLAS library is OpenBLAS, multithreaded.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58381>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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