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

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

[Octave-bug-tracker] [bug #59938] Repeatable crash on pasting text with


From: anonymous
Subject: [Octave-bug-tracker] [bug #59938] Repeatable crash on pasting text with blank lines into Octave command prompt (CLI not GUI)
Date: Sun, 24 Jan 2021 19:46:46 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0

Follow-up Comment #1, bug #59938 (project octave):

More data if it helps you.

Input was this:

vec1 = find(mat1(:,cols(1)));
vec2 = find(mat1(:,cols(2)));
vec3 = find(mat1(:,cols(3)));
vec4 = find(mat1(:,cols(4)));


Test: Paste first one line into the Octave command prompt, then two lines,
then three lines, etc.

Expected result: Some complaints about undefined variables cols or mat1.

Actual result for pasting one line: Expected result.

Actual result for pasting two lines: parse error / syntax error.

Actual result for pasting three lines: crash.


$ octave -f -q
octave:1> vec1 = find(mat1(:,cols(1)));
error: 'cols' undefined near line 1, column 1
octave:2> vec1 = find(mat1(:,cols(1)));
vec2 = find(mat1(:,cols(2)));
error: parse error:

  syntax error

>>> vec1 = find(mat1(:,cols(1)));
vec2 = find(mat1(:,cols(2)));
       ^
octave:2> vec1 = find(mat1(:,cols(1)));
vec2 = find(mat1(:,cols(2)));
vec3 = find(mat1(:,cols(3)));
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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