bugGNU Octave - Bugs: bug #58313, [octave forge] (parallel) should...

 
 

bug #58313: [octave forge] (parallel) should use octave-cli-VERSION executable by default

Submitter:  Mike Miller <mtmiller>
Submitted:  Wed 06 May 2020 08:20:28 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 07 Sep 2020 07:07:07 PM UTC, comment #1: 

Thanks for pointing this out for both local and remote execution. This changeset:

https://sourceforge.net/p/octave/parallel/ci/4045205aad9c969271022c7416586521244b76e7/

should fix this for both by first trying the octave-cli-VERSION and then octave-cli.

Olaf Till <i7tiol>
Group Member
Wed 06 May 2020 08:20:28 PM UTC, original submission:  

In both local and remote parallel modes, the parallel package runs Octave as the 'octave-cli' binary. However, this command name is not safe, 'octave-cli-${OCTAVE_VERSION}' should be used instead.

Example on a system where the 'octave-cli' symlink does not exist in the same directory as 'octave-cli-6.0.1':


>> y = parcellfun (...)
open: No such file or directory
couldn't set executable
open: No such file or directory
couldn't set executable
error: can't reset scheduler
error: called from
    parcellfun at line 117 column 9
    pararrayfun at line 85 column 28


Example on a system where the 'octave-cli' symlink exists but points to a different version of Octave that doesn't have the parallel package installed:


>> y = parcellfun (...)
error: package parallel is not installed
could not load variable
could not save variable.
error: package parallel is not installed
could not load variable
error: __parcellfun_initialize_job__: could not initialize job
error: called from
    parcellfun at line 181 column 7


I'm aware that the Debian and Ubuntu packages only install /usr/bin/octave-cli, without the version suffix, but maybe that target can be treated as a special case, either detected at install time or at run time. In general, if you want to handle both possibilities, I'd think that 'octave-cli-${OCTAVE_VERSION}' should always be preferred if it exists.

Mike Miller <mtmiller>
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 i7tiol (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-07 i7tiol StatusNone Fixed
        Open/ClosedOpen Closed
    2020-05-14 mtmiller Carbon-CopyRemoved 80942 -

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code