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

 
 

bug #65270: [octave forge] (parallel) parcellfun with incorrect ErrorHandler output

Submitter:  Muhali <muhali>
Submitted:  Wed 07 Feb 2024 11:01:51 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * stable Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 07 Feb 2024 11:01:51 AM UTC, original submission:  

suppose this function

# foo.m
function y = foo (s, x)
   warning("%d: %s\n", s.index, s.message) ;
   y = NaN;
endfunction

is in your path. Then executing

octave -f --eval 'pkg load parallel ; parcellfun (2, "factorial", {-1,2,-3}, "ErrorHandler", @foo);'

gives

warning: 3:
warning: 1:

Doing instead

octave -f --eval 'cellfun ("factorial", {-1,2,-3}, "ErrorHandler", @foo);'

gives the expected result

warning: 1: factorial: all N must be real non-negative integers
warning: 3: factorial: all N must be real non-negative integers

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 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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code