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

 
 

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

Submitted by:  Dave Goel <deego>
Submitted on:  Sat 16 Jul 2016 11:08:36 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: DAVE GOELOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

Marking as fixed and closing report.

Rik <rik5>
Project 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.

Dave Goel <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

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

Dave Goel <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;

Dave Goel <deego>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by deego (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 18 Jul 2016 02:39:01 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1