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

 
 

bug #60622: [octave forge] (parallel) reads init file despite --no-init-file

Submitter:  None
Submitted:  Mon 17 May 2021 11:50:53 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.2.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 07 Sep 2023 12:27:41 PM UTC, comment #1: 

Fixed with changeset 229951fe1354 (sorry, currently can't give link to repository webpage at SourceForge since it is offline) for Octave >= 7 (tested with Octave 8.3 and checked presence of corresponding interface code in Octave 7.2). See no way to fix it for Octave 6.

Olaf Till <i7tiol>
Group Member
Mon 17 May 2021 11:50:53 AM UTC, original submission:  

When starting Octave using  --no-init-file (for example “octave-6.2.0.bat --no-gui --no-init-file”) and then using the parallel
package, the parallel processes do read the init file.

This became apparent because a printf


printf('.octaverc read, home=%s\n', tilde_expand('~'))


in c:\users\username\.octaverc was executed three times after calling parcellfun(3, ...)

System: Win10, octave 6.2.0, parallel 4.0.1

Associated thread on help-octave: https://lists.gnu.org/archive/html/help-octave/2021-05/msg00029.html

In this thread, Kai suggested:

To fix this, the content of "argv"
https://octave.org/doc/v6.2.0/XREFargv.html should be regarded by the
parallel package when creating the "Octave-sub-processes" as you describe.

The Octave binary to be called:

https://sourceforge.net/p/octave/parallel/ci/default/tree/src/p-control.h#l196

is set here:

https://sourceforge.net/p/octave/parallel/ci/default/tree/src/p-control.cc#l392


A new "instance" is constructed only given the binary:

https://sourceforge.net/p/octave/parallel/ci/default/tree/src/p-control.cc#l309

and appended with an "--eval" statement to be evaluated within this
instance:

https://sourceforge.net/p/octave/parallel/ci/default/tree/src/p-control.cc#l67

Anonymous

 

(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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-09-07 i7tiol StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code