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

 
 

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

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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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

 

CC list is empty

 

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

Only project members can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.6