bugGNU Octave - Bugs: bug #48536, Broadcasting turns on globally, on...

 
 

bug #48536: Broadcasting turns on globally, on its own:

Submitter:  deego <deego>
Submitted:  Sat 16 Jul 2016 11:08:36 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  DAVE GOEL Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 18 Jul 2016 02:39:01 PM UTC, comment #4: 

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Sun 17 Jul 2016 06:05:55 AM UTC, comment #3: 


Thanks to mtmx on #octave for testing on hg-branch, as well.

I installed the hg branch. (There broadcasting is known by Octave:language-extension.) And, after running the appropriately modified example,  I see the bug is fixed.

Can you please close this bugreport? thanks.


deego <deego>
Sun 17 Jul 2016 05:24:40 AM UTC, comment #2: 

I built the hg branch, and tried there too, to see if the error persists there.

Things seem even weirder there:

octave:19> warning ("error", "Octave:broadcast");
octave:20> cc=[1 1]+randn(2,2)
cc =

   2.08450   1.16570
   0.66492   2.18944

No warning or error at all.
Dave

deego <deego>
Sat 16 Jul 2016 11:22:48 PM UTC, comment #1: 

I should have mentioned. This is with octave 3.8.2 on debian stable.

deego <deego>
Sat 16 Jul 2016 11:08:36 PM UTC, original submission:  

Hi, here's a minimum working example, in 3.8.2, to turn on broadcasting globally, without asking it to:


## Run the following two commands
warning ("error", "Octave:broadcast");

## Now, execute this function with an error:
testbadbroadcastmy(1);

## Now, broadcasting is on, globally!
cc=[1 1]+randn(2,2);

## As you see above, broadcasting has been turned on globally, even though it shouldn't have!

## where, define this function in a file:


function out=testbadbroadcastmy(aa,bb)
  _bad2();
  warning ("off", "Octave:broadcast","local"); ## Notice that it ONLY does this locally.
  out=bb;
endfunction


function _bad2 ()
  tmp=1;
endfunction;


deego <deego>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by deego (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-18 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code