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

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

[Octave-bug-tracker] [bug #65057] Byte-code interpreter is not compatibl


From: Hendrik K
Subject: [Octave-bug-tracker] [bug #65057] Byte-code interpreter is not compatible with the pythonic package
Date: Tue, 26 Dec 2023 03:00:31 -0500 (EST)

Follow-up Comment #6, bug#65057 (group octave):

But if one starts really using pythonic with actual (large) data, it seems not
to work in certain cases.
 
Sample below produces a core dump.


function ret = test2();
  pkg load pythonic;
  py.sys.path.insert (int32 (0), pwd());

  x = py.numpy.sqrt(py.numpy.arange(1000000));
  x = py.numpy.reshape(x, pyeval("(1000,1000)"));
  y = reshape(double(py.array.array("d",
py.numpy.ndarray.flatten(x,order="F"))),size(x));
  disp("Test2 execution finished.");
  disp(__vm_is_executing__);
endfunction




__vm_enable__(0);
test2()

Test2 execution finished.
0


__vm_enable__(1);
>> test2()
warning: auto-compilation of pyobject failed with message classdef
constructors are not supported by the VM yet
warning: called from
    subsref at line 53 column 7
    test2 at line 3 column 3

--> core dump


Interesting is, that if the array size is smaller (e.g. 100x100), octave does
not crash with the byte code interpreter.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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