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

 
 

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

Submitted by:  Avinoam Kalma <avinoam>
Submitted on:  Sun 10 Jul 2016 03:43:01 AM UTC  
 
Category: InterpreterSeverity: 5 - Blocker
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: AvinoamOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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>
Project 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>
Project 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>
Project 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>
Project Administrator
Sun 10 Jul 2016 06:23:31 PM UTC, comment #5:

sorry:

Avinoam Kalma <avinoam>
Project Member
Sun 10 Jul 2016 06:21:42 PM UTC, comment #4:
Avinoam Kalma <avinoam>
Project 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>
Project Administrator
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>
Project 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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 13 Jul 2016 07:09:24 PM UTCavinoamStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 11 Jul 2016 08:39:22 PM UTCjweStatusConfirmed=>Ready For Test
    Mon 11 Jul 2016 08:02:23 PM UTCmtmillerOperating SystemMicrosoft Windows=>Any
      Summaryoctave.vbs --force-gui crashes on startup=>octave command-line processing fails since bd4f3d2ce52f
    Sun 10 Jul 2016 07:57:31 AM UTCphilipnienhuisStatusNone=>Confirmed
    Sun 10 Jul 2016 03:43:01 AM UTCavinoamCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1