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:34:42 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0

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

                 Summary: Repeatable crash on pasting text with blank lines
into Octave command prompt (CLI not GUI)
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 25 Jan 2021 12:34:40 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

GNU Octave Version: 7.0.0 (hg id: 843b1f794544)
Xfce Terminal Emulator xfce4-terminal 0.8.10 
GNU bash, version 5.1.0(1)-release (x86_64-pc-linux-gnu)

There is a repeatable crash on pasting a multi-line block of code with empty
lines into the Octave command prompt. For other copy-paste input, there is a
parse error even for legal input.

This happens only when starting Octave from the shell prompt (CLI mode), not
when starting in the GUI mode.

This is recent behavior, so it's a regression.

Input (copy one or more lines and paste into the Octave command prompt):

what
whos

ls

(Note that there is a blank line between whos and ls.)

On copy-pasting the first two lines (what and whos separated by a newline):

$ octave -f -q
octave:1> what
whos
error: parse error:

  syntax error

>>> what
whos
       ^


On copy-pasting the first three lines, including the empty line:

$ octave -f -q
octave:1> what
whos

fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)


Crash happens on copying the second and third line too:

$ octave -f -q
octave:1> 
octave:1> whos

fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)
$ 


On pasting the third and fourth lines (empty line and ls), there's a parse
error.

$ octave -f -q
octave:1> 
ls
error: parse error:

  syntax error

>>> 
ls
     ^
octave:1> 


For comparison, pasting shell commands separated by empty lines at the bash
prompt does not cause problems. This indicates it is not a problem with the
shell or with the terminal emulator, but likely the Octave interpreter running
in CLI mode.





    _______________________________________________________

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]