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

 
 

bug #58452: [octave forge] (parallel) parcellfun does not work with ErrorHandler

Submitter:  Muhali <muhali>
Submitted:  Wed 27 May 2020 12:14:40 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 09 Sep 2023 03:43:23 PM UTC, comment #3: 


> Functions defined with 'function ... endfunction' on the command line won't work with the newly implemented parcellfun and pararrayfun. This is not yet explicitly mentioned in the docs and the NEWS file, but probably should be.


It is in the docs, didn't check since when, but referenced from a sentence which only mentioned Octave < 5.1. This is corrected now with changeset c0073935e1db.

Anyway, closing this report as invalid.

Olaf Till <i7tiol>
Group Member
Tue 03 May 2022 03:03:52 AM UTC, comment #2: 

I notice that you mentioned "threaded Octave", so I wonder if Octave supports multithreading or multiprocessing now?
comment #1:

> It should have nothing to do with passing an error handler or not, but only with how the passed function was defined.
>
> Functions defined with 'function ... endfunction' on the command line won't work with the newly implemented parcellfun and pararrayfun. This is not yet explicitly mentioned in the docs and the NEWS file, but probably should be. This is one of the limitations which are the price for making parcellfun and pararrayfun safe with threaded Octave, sorry.
>

Glite <linuxbckp>
Sun 07 Jun 2020 11:34:56 AM UTC, comment #1: 

It should have nothing to do with passing an error handler or not, but only with how the passed function was defined.

Functions defined with 'function ... endfunction' on the command line won't work with the newly implemented parcellfun and pararrayfun. This is not yet explicitly mentioned in the docs and the NEWS file, but probably should be. This is one of the limitations which are the price for making parcellfun and pararrayfun safe with threaded Octave, sorry.

Olaf Till <i7tiol>
Group Member
Wed 27 May 2020 12:14:40 PM UTC, original submission:  

If one applies the corresponding code from the cellfun help


function y = foo (s, x), y = NaN; endfunction
parcellfun (2, "factorial", {-1,2}, "ErrorHandler", @foo)


the following error(s) occur(s):

could not save variable.
could not save variable.
error: function handle points to non-existent function
could not save variable.
could not send arguments
error: _parcellfun_send_next_args_: could not send args
error: called from
    parcellfun at line 190 column 10

>> error: function handle points to non-existent function


----------------------------------------------------------------------
GNU Octave Version: 6.0.1 (hg id: f54cc65a487b)
GNU Octave License: GNU General Public License
Operating System: Linux 5.4.40-1-MANJARO #1 SMP PREEMPT Sun May 10 14:17:40 UTC 2020 x86_64
----------------------------------------------------------------------
Package Name    | Version | Installation directory
----------------+---------+-----------------------
      parallel *|   4.0.0 | /opt/octave-6.0/share/octave/packages/parallel-4.0.0

Muhali <muhali>

 

(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 linuxbckp (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by i7tiol (Posted a comment)
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2023-09-09 i7tiol Open/ClosedOpen Closed
    2020-11-27 jwe Release6.0.90 other
    2020-06-07 i7tiol StatusNone Wont Fix
    2020-05-28 siko1056 Summary[octave-forge](parallel) parcellfun does not work with ErrorHandler [octave forge] (parallel) parcellfun does not work with ErrorHandler
    2020-05-27 rik5 Carbon-CopyRemoved 72865 -
    2020-05-27 rik5 CategoryNone Octave Package

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code