[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55071] SegFault, calling contour()
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #55071] SegFault, calling contour() |
Date: |
Thu, 22 Nov 2018 09:43:00 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063 |
Follow-up Comment #3, bug #55071 (project octave):
Confirmed. This isn't valid syntax, but it shouldn't segfault. The problem
seems to lie behind contour with countourc which actually calculates the
levels.
-- [C, LEV] = contourc (Z)
-- [C, LEV] = contourc (Z, VN)
-- [C, LEV] = contourc (X, Y, Z)
-- [C, LEV] = contourc (X, Y, Z, VN)
Compute contour lines (isolines of constant Z value).
The matrix Z contains height values above the rectangular grid
determined by X and Y. If only a single input Z is provided then X
is taken to be '1:columns (Z)' and Y is taken to be '1:rows (Z)'.
The optional input VN is either a scalar denoting the number of
contour lines to compute or a vector containing the Z values where
lines will be computed. When VN is a vector the number of contour
lines is 'numel (VN)'. However, to compute a single contour line
at a given value use 'VN = [val, val]'. If VN is omitted it
defaults to 10.
I get a segfault on the original data
octave:2> Z = 0:0.1:10;
octave:3> VN = sin (Z);
octave:4> C = contourc (Z, VN)
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55071>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/