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

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

[Octave-bug-tracker] [bug #45921] Traditional mode hangs/errors when int


From: anonymous
Subject: [Octave-bug-tracker] [bug #45921] Traditional mode hangs/errors when interpreting m-file from bash
Date: Thu, 10 Sep 2015 23:56:00 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0

URL:
  <http://savannah.gnu.org/bugs/?45921>

                 Summary: Traditional mode hangs/errors when interpreting
m-file from bash
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 10 Sep 2015 11:55:59 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Timothy Rice
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hello,

I am using Octave to interpret the following script (b/w but not including the
tilde-fences):

~~~
A = [1 0 1 1 0;
    1 1 1 0 0;
    0 1 1 1 1;
    1 1 0 0 1];

x = [1 0 1 1 0]';

mod(A*x, 2)
~~~

When I don't use the "--traditional" option it gives the correct output and
then exits without error.

When I do use the "--traditional" option, it gives correct output but then
hangs. When I try to kill it with Control-C nothing happens until I press the
Enter key. After I press the Enter key, the following message is printed to
stderr:

~~~
error: fatal flex scanner internal error--end of buffer missed
fatal flex scanner internal error--end of buffer missed
panic: Segmentation fault -- stopping myself...
~~~

When I run "$ octave --traditional" without specifying a script to run, it
behaves correctly: this problem only occurs when I specify a script using
something like "$ octave --traditional ./script.m"

I suspect this might actually be two bugs in one: --traditional has problems
interpreting scripts, and the flex parser has problems understanding
Control-C.

The operating system is Arch Linux.

Please let me know if you require any more information or if there is any
other way I can assist in solving this problem.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 10 Sep 2015 11:55:59 PM UTC  Name: script.m  Size: 95B   By: None
M-file; wrapper script for running octave on m-file from bash; output from
running script with --traditional turned on.
<http://savannah.gnu.org/bugs/download.php?file_id=34855>
-------------------------------------------------------
Date: Thu 10 Sep 2015 11:55:59 PM UTC  Name: output  Size: 217B   By: None
M-file; wrapper script for running octave on m-file from bash; output from
running script with --traditional turned on.
<http://savannah.gnu.org/bugs/download.php?file_id=34856>
-------------------------------------------------------
Date: Thu 10 Sep 2015 11:55:59 PM UTC  Name: run.sh  Size: 63B   By: None
M-file; wrapper script for running octave on m-file from bash; output from
running script with --traditional turned on.
<http://savannah.gnu.org/bugs/download.php?file_id=34857>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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