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

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

[Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" c


From: Rik
Subject: [Octave-bug-tracker] [bug #52904] "mesh" with input array of "logical" causes error
Date: Tue, 16 Jan 2018 11:18:08 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #52904 (project octave):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #5:

I think we might as well be Matlab-compatible in this regard.  What does this
test code return under Matlab?


Z = logical (ones (25,25));
h = surf (Z);
Z2 = get (h, "zdata");
class (Z2)


Incidentally, running this in Octave results in a segfault because the handle
h is created, but it is in an invalid state.


octave:2> Z = logical (ones (25,25));
octave:3> h = surf (Z);
error: invalid value for array property "zdata"
error: called from
    surface>__surface__ at line 186 column 5
    surface at line 60 column 19
    surf at line 72 column 10
octave:3> Z2 = get (h, "zdata");
panic: Segmentation fault -- stopping myself...
attempting to save variables to 'octave-coredump'...
save to 'octave-coredump' complete
Segmentation fault


At least on the development branch the object is not created and no segfault
happens.


octave:1> Z = logical (ones (25,25));
octave:2> h = surf (Z);
error: invalid value for array property "zdata"
error: called from
    surface>__surface__ at line 189 column 5
    surface at line 63 column 19
    surf at line 72 column 10
octave:2> Z2 = get (h, "zdata");
error: 'h' undefined near line 1 column 11
octave:2> class (Z2)
error: 'Z2' undefined near line 1 column 8




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52904>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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