bugGNU Octave - Bugs: bug #65018, failing unit test "bug...

 
 

bug #65018: failing unit test "bug 40117"

Submitter:  Hartmut <hardy>
Submitted:  Tue 12 Dec 2023 11:30:37 AM UTC
   
 
Category:  Test Suite Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 8.4.0 Operating System:  * GNU/Linux
Fixed Release:  9.1.0 Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 14 Apr 2024 09:37:26 PM UTC, comment #9: 

I think this got fixed in the 9.1.0 release so I am closing this report.

Rik <rik5>
Group administrator
Thu 29 Feb 2024 08:23:25 AM UTC, comment #8: 

@Rik: I have recently run the "run_test_suite" of the Octave 9.0.90 release candidate excessivle on the very same laptop that I used for comment #0 to comment #5 in this issue. The results can be seen in bug #65277, and there were no test failures observed at all. So I would conclude that this issue here is resolved in Octave 9.0.90 (at least for the linux laptop I originally used in this bug report).

@Dmitri: A short time ago, my linux laptop used to file this bug report "died" suddenly. So unfortunatelly I will not be able to re-run or check things on my "original" laptop. But I do not remember to ever use some special mount options of the laptop, it was a standard installation of Ubuntu 20.04 with some additional software installed on it lateon. The fstab line for my system partition (with Octave on it) was the following on my dead laptop: UUID=10b02a-more-numbers /  ext4  errors=remount-ro 0  1

Hartmut <hardy>
Tue 27 Feb 2024 08:45:29 PM UTC, comment #7: 


comment #2:

> All filesystems on this Ubuntu machine are ext4, and they are on a solid state disk.
>


Do you use some special mount options? E.g. do you use "noatime"?

Dmitri.
--


Dmitri A. Sergatskov <dasergatskov>
Tue 27 Feb 2024 04:24:39 PM UTC, comment #6: 

Is the unit test failing with the release candidate 9.0.90?  I'm more concerned with the future, rather than 8.4 which will soon be the past.

Rik <rik5>
Group administrator
Tue 12 Dec 2023 04:34:06 PM UTC, comment #5: 

When I copy the exact code from comment #3 into an m-file (I named it demo_quiver.m) and then run it on my machine, I do get the following error:


>> demo_quiver

quiver example 1:
 clf;
 [x,y] = meshgrid (1:2:20);
 h = quiver (x,y, sin (2*pi*x/10), sin (2*pi*y/10));
 title ("quiver() plot w/arrowheads (default)");

error: 'scripts' undefined near line 3, column 1
error: called from
    demo_quiver at line 3 column 21


This is a different error, than mentioned in comment #3.

When I instead copy the code from comment #3 directly into a (GUI) Octave console, then I see this error:


>> demo ("quiver", 1)
quiver example 1:
 clf;
 [x,y] = meshgrid (1:2:20);
 h = quiver (x,y, sin (2*pi*x/10), sin (2*pi*y/10));
 title ("quiver() plot w/arrowheads (default)");

>> ## In another terminal window, execute 'touch
>> scripts/plot/private/__quiver__.m
error: 'scripts' undefined near line 1, column 1
>> demo ("quiver", 1)
quiver example 1:
 clf;
 [x,y] = meshgrid (1:2:20);
 h = quiver (x,y, sin (2*pi*x/10), sin (2*pi*y/10));
 title ("quiver() plot w/arrowheads (default)");

>> quiver example 1:
error: quiver: U and V must be the same size
error: called from
    __quiver__ at line 67 column 9
    quiver at line 92 column 10
>>  clf;
>>  [x,y] = meshgrid (1:2:20);
>>  h = quiver (x,y, sin (2*pi*x/10), sin (2*pi*y/10));
>>  set (h, 'maxheadsize', 0.33);
>>


I hope this helps. Let me know if I should run different code on my machine.

Hartmut <hardy>
Tue 12 Dec 2023 03:42:10 PM UTC, comment #4: 

In bug #40117, Dmitri found several intermittent occurrences of the behavior that Hartmut reports in this thread. There was a mention of a race condition?

Cc Dmitri and cross-linking 40117.

Arun Giridhar <arungiridhar>
Group Member
Tue 12 Dec 2023 03:12:31 PM UTC, comment #3: 

in bug #40117 the specific issue could be triggered with:


demo ("quiver", 1)
## In another terminal window, execute 'touch scripts/plot/private/__quiver__.m
demo ("quiver", 1)
quiver example 1:
 clf;
 [x,y] = meshgrid (1:2:20);
 h = quiver (x,y, sin (2*pi*x/10), sin (2*pi*y/10));
 set (h, 'maxheadsize', 0.33);

quiver example 1: failed
'__add_datasource__' undefined near line 152 column 14


does that trigger an error on your system?

Nicholas Jankowski <nrjank>
Group Member
Tue 12 Dec 2023 02:04:47 PM UTC, comment #2: 

All filesystems on this Ubuntu machine are ext4, and they are on a solid state disk.

Unfortunatelly, I am not able to change the code of the unit test and let it run again (with an enlarged value for the pause as suggested), because the _mktestfun_40117_ does not seem to work from within a "normal" m-file. With a more detailed description how to do this, or an m-file to simply run on my machine, I could try again, though.

Hartmut <hardy>
Tue 12 Dec 2023 12:37:59 PM UTC, comment #1: 

From the test:

   ## Update the secondary private function, attempting to avoid
   ## filesystem timestamp resolution problems.
   pause (1);


Which filesystem is used for your tmp directory? Does the test still fail if you increase the pause?

Markus Mützel <mmuetzel>
Group administrator
Tue 12 Dec 2023 11:30:37 AM UTC, original submission:  

I have just downloaded, compiled and installed the official Octave 8.4.0 tar-ball onto my Ubuntu (20.04.6) machine.

Compiling, installing and "make check" passed fine without any failing unit tests. But when I run "__run_test_suite__" from within the Octave GUI, with all startup.m files disabled, I see a "regression" from the unit test "bug 40117". I will attach the relevant part of fntest.log.

I am happy if anyone suggests further tests to do on my machine, to narrow down the problem (if there is any at all).

Hartmut <hardy>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-14 rik5 Open/ClosedOpen Closed
    2024-04-14 rik5 StatusNone Fixed
        Fixed ReleaseNone 9.1.0
    2024-02-27 rik5 CategoryNone Test Suite
    2023-12-12 arungiridhar Dependencies- Depends on bugs #40117
        Carbon-Copy- Added dasergatskov
    2023-12-12 hardy Attached File- Added regression_with_Octave_8.4.0.txt, #55438

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code