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

 
 

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

Submitted by:  Muhali <muhali>
Submitted on:  Wed 27 May 2020 12:14:40 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  6.0.90 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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

    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.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    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 Forge Package

    Back to the top


    Powered by Savane 3.5