bugGNU Octave - Bugs: bug #39123, Test failures in nrbbasisfunder...

 
 

bug #39123: Test failures in nrbbasisfunder (package: nurbs)

Submitter:  Thomas Weber <tweber>
Submitted:  Thu 30 May 2013 12:00:52 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  Thomas Weber Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 16 Nov 2016 08:03:38 PM UTC, comment #2: 

Closing this old bug report since I am no longer able to reproduce with nurbs 1.3.10 and Octave 4.2 over many trials. If there is still a real problem, this bug can be reopened or a new bug reported.

Mike Miller <mtmiller>
Group Member
Fri 13 Sep 2013 05:54:11 AM UTC, comment #1: 

Same problem with other routines as well. I have test failures and segfaults on both nrbderiv and nrbbasisfunder when building in a clean chroot or when running the built package exactly as shown below.

Mike Miller <mtmiller>
Group Member
Thu 30 May 2013 12:00:52 PM UTC, original submission:  

Hi,
I am experiencing several test failures when packaging the nurbs 1.3.7 release for Debian. I am only giving one here to get feedback on where to look. The error is not deterministic as it is not always the same test that fails and when it fails, the error margin changes (I somehow feel that this points to a library issue, but let's see):

octave:2> ver
----------------------------------------------------------------------
GNU Octave Version 3.6.4
GNU Octave License: GNU General Public License
Operating System: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
       nurbs *|   1.3.7 | /usr/share/octave/packages/nurbs-1.3.7
octave:3> test nrbbasisfunder
PASSES 3 out of 3 tests
octave:4> pwd
ans = /usr/share/octave/packages/nurbs-1.3.7
octave:5> cd ..
octave:6> test nrbbasisfunder
  *** test
 U = [0 0 0 0 1 1 1 1];
 x = [0 1/3 2/3 1] ;
 y = [0 0 0 0];
 w = rand(1,4);
 nrb = nrbmak ([x;y;y;w], U);
 u = linspace(0, 1, 30);
 [Bu, id] = nrbbasisfunder (u, nrb);
 #plot(u, Bu)
 assert (sum(Bu, 2), zeros(numel(u), 1), 1e-10),
!!!!! test failed
assert (sum (Bu, 2),zeros (numel (u), 1),1e-10) expected
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
   0
but got
   0.000000
  -0.000000
  -0.000000
   0.000000
   0.000000
  -0.000000
   0.000000
   0.000000
   0.000000
   0.000000
   0.000000
   0.000000
   0.000000
  -0.000000
   0.000000
   0.000000
   0.000000
  -0.000000
   0.000000
  -0.000000
  -0.000000
   0.000000
   0.000000
   0.057924
   0.000000
  -0.000000
   0.000000
   0.000000
  -0.000000
   0.000000
maximum absolute error 0.0579239 exceeds tolerance 1e-10
octave:7> diary off

So, when I am running the tests in the package directory, the tests pass. If I run it outside, it fails.

Thomas Weber <tweber>

 

(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 mtmiller (Posted a comment)
  • -email is unavailable- added by svillemot
  • -email is unavailable- added by tweber (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-16 mtmiller StatusConfirmed Works For Me
        Open/ClosedOpen Closed
    2013-09-13 mtmiller StatusNone Confirmed
    2013-06-19 svillemot Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code