bugGNU Octave - Bugs: bug #53636, failing test under Windows:...


bug #53636: failing test under Windows: bsxfun.cc-tst

Submitted by:  Hartmut <hardy>
Submitted on:  Fri 13 Apr 2018 11:53:27 AM UTC  
Category:  Test Suite Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  4.3.90 Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

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


( Jump to the original submission)

Sat 14 Apr 2018 12:17:57 PM UTC, comment #12:

I pushed the temporary fix here http://hg.savannah.gnu.org/hgweb/octave/rev/9b93b85459da. Marking this bug as a duplicate and closing report.

Rik <rik5>
Project Administrator
Sat 14 Apr 2018 11:31:06 AM UTC, comment #11:

I have tested on a Win7 machine (as I have currently no access to the Win10 machine from comment #0):

  • running the loop code from comment #7 on the original bsxfun.cc-tst (included 4.3.90) does also throw an error once in a while.
  • running the modified bsxfun.cc-tst file from file #43920 works totally fine. (loop result=200)

So I would say that this modified test file is appropriate for a temporary workaround as proposed in comment #5).

Hartmut <hardy>
Fri 13 Apr 2018 10:01:36 PM UTC, comment #10:

@Dmitri: Was your testing on Windows or a Linux machine?

Rik <rik5>
Project Administrator
Fri 13 Apr 2018 09:51:05 PM UTC, comment #9:

Works for me too.


Dmitri A. Sergatskov <dasergatskov>
Fri 13 Apr 2018 08:52:55 PM UTC, comment #8:

I got 200 (on Debian).

Would be good to get a verification from Hartmut or from someone else on Windows with 4.3.90.

Mike Miller <mtmiller>
Project Administrator
Fri 13 Apr 2018 08:00:42 PM UTC, comment #7:

I have made a preliminary changeset to fix the rand and randn random number generator to a known state before the BIST tests are done. However,m s I never see a probleo I need someone else to help do the testing.

I am uploading a file bsxfun.cc-tst. To test, download this file and place it in the current directory where you start Octave (so it is picked before the default version). Then run

If it passes (after about 15 minutes) then we are good. Otherwise, adjust the random number generator state to a different value (currently 42) and re-run.

(file #43920)

Rik <rik5>
Project Administrator
Fri 13 Apr 2018 07:28:12 PM UTC, comment #6:

Good plan.

Mike Miller <mtmiller>
Project Administrator
Fri 13 Apr 2018 05:00:28 PM UTC, comment #5:

I propose that we

1) Fix the random seed ahead of these tests to a known good value (temporary workaround)
2) Close this bug report as a duplicate of bug #51779
3) Take up the questions in bug #51779 on the development branch


Rik <rik5>
Project Administrator
Fri 13 Apr 2018 04:10:23 PM UTC, comment #4:

This is similar and may be the same as bug #51779.

That bug fails for me (and on buildbots) occasionally because bsxfun with @pow is doing a different operation between float operands than the test was written for.

This intersects with the larger overall bug that Matlab does mixed-type operations in double and casts the result, while Octave does mixed-type operations in single.

Mike Miller <mtmiller>
Project Administrator
Fri 13 Apr 2018 04:08:20 PM UTC, comment #3:

I got 1 failure out of 100.

I am pretty sure it is the same as #51779


Dmitri A. Sergatskov <dasergatskov>
Fri 13 Apr 2018 03:29:49 PM UTC, comment #2:

I tried running the test 100 times and it works for me

Rik <rik5>
Project Administrator
Fri 13 Apr 2018 03:07:11 PM UTC, comment #1:

The test file is mentioned in fntests.log

Copy that file to your current working directory so that it is on the search path for Octave. Then do

Also, is this related to bug #51779?

Rik <rik5>
Project Administrator
Fri 13 Apr 2018 11:53:27 AM UTC, original submission:

I installed the official 4.3.90 w64 installer under Win 10.

One (and only one) test is failing: bsxfun.cc-tst . This test was not yet failing with Octave 4.2.2 on the same PC.

This is what I found in fntest.log :

How do I repeat a cc-tst test? Just "test bsxfun.cc-tst" did not work.

Hartmut <hardy>


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

Attach Files:

Attached Files
file #43920:  bsxfun.cc-tst added by rik5 (6KiB - application/octet-stream)


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by hardy (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-14 rik5 StatusNeed Info => Duplicate
        Open/ClosedOpen => Closed
    2018-04-13 rik5 Attached File- => Added bsxfun.cc-tst, #43920
    2018-04-13 mtmiller Dependencies- => Depends on bugs #51779
    2018-04-13 rik5 StatusNone => Need Info

    Back to the top

    Powered by Savane 3.4