bugGNU Octave - Bugs: bug #48454, octave command-line processing...

 
 

bug #48454: octave command-line processing fails since bd4f3d2ce52f

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Sun 10 Jul 2016 03:43:01 AM UTC
   
 
Category:  Interpreter Severity:  5 - Blocker
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 13 Jul 2016 07:09:24 PM UTC, comment #9: 

The fix solves the problem. Closing as fixed.

Avinoam Kalma <avinoam>
Group Member
Tue 12 Jul 2016 09:36:26 PM UTC, comment #8: 

In a brief test [*] this works fine again. Thanks.

Tomorrow I have more time to install & test.

[*] Starting Octave directly from the .../mxe-octave/dist/octave-<datetime>/octave.vbs; I have my Linux home partition mounted in Windows through ext2fsd.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 11 Jul 2016 08:39:22 PM UTC, comment #7: 

I checked in the following changeset:

  http://hg.savannah.gnu.org/hgweb/octave/rev/66db9a493c84

Does this fix the problem for you?

John W. Eaton <jwe>
Group administrator
Mon 11 Jul 2016 08:02:23 PM UTC, comment #6: 

I think this is due to

http://hg.savannah.gnu.org/hgweb/octave/rev/bd4f3d2ce52f

The libinterp/octave.cc command-line option processing code uses the global variables 'optarg' and 'optind' provided by the getopt.h header file. This change was made to encapsulate the gnulib implementation of getopt on non-GNU systems, but doesn't correctly handle the 'optarg' and 'optind' global values.

Setting system to "Any" even though it's really only non-GNU (IOW Windows and macOS) systems.

Mike Miller <mtmiller>
Group Member
Sun 10 Jul 2016 06:23:31 PM UTC, comment #5: 

sorry:


C:\Octave\Octave-4.1.0+\bin>octave-cli.exe --eval a
error: no such file, 'C:\Octave\Octave-4.1.0+\bin\--eval'
error: source: error sourcing file 'C:\Octave\Octave-4.1.0+\bin\--eval'
error: execution exception in --eval


Avinoam Kalma <avinoam>
Group Member
Sun 10 Jul 2016 06:21:42 PM UTC, comment #4: 


C:\Octave\Octave-4.1.0+\bin>octave-cli.exe --eval a
error: no such file, 'D:\Octave\Octave-4.1.0+\bin\--eval'
error: source: error sourcing file 'C:\Octave\Octave-4.1.0+\bin\--eval'
error: execution exception in --eval



Avinoam Kalma <avinoam>
Group Member
Sun 10 Jul 2016 04:33:24 PM UTC, comment #3: 

What is the error message with reading command line options?

Mike Miller <mtmiller>
Group Member
Sun 10 Jul 2016 08:58:09 AM UTC, comment #2: 

Thanks for the confirmation. I wasn't sure if this is a global problem or a problem with my build.

You can activate octave-cli directry, from the bin directory.
It doesn't fail either.

It's seems to be a problem with getting the options. try for example "octave-cli --eval a" when a.m is a valid Octave file.

Avinoam Kalma <avinoam>
Group Member
Sun 10 Jul 2016 07:57:31 AM UTC, comment #1: 

I noted this as well.

A message about --force-gui flashes by for a split second before the GUI disappears.
If you adapt the shortcuts to omit "--force-gui" Octave's GUI starts up and works fine.
I didn't see a way to get octave-cli started :-(  "--no-gui" isn't recognized either.

Philip Nienhuis <philipnienhuis>
Group Member
Sun 10 Jul 2016 03:43:01 AM UTC, original submission:  


Clicking on the Octave icon in windows starts Octave, but it immediately crashes. "octave.exe" or "octave.vbs" works well.

maybe this is related to http://hg.savannah.gnu.org/hgweb/octave/rev/bd4f3d2ce52f?

Avinoam Kalma <avinoam>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by avinoam (Submitted the item)
  • -email is unavailable- added by avinoam
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-13 avinoam StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2016-07-11 jwe StatusConfirmed Ready For Test
    2016-07-11 mtmiller Operating SystemMicrosoft Windows Any
        Summaryoctave.vbs --force-gui crashes on startup octave command-line processing fails since bd4f3d2ce52f
    2016-07-10 philipnienhuis StatusNone Confirmed
    2016-07-10 avinoam Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code