This issue should remain open until all the tests are commented back in.
From: Hans Johnson [email protected]
Date: Wednesday, December 9, 2015 at 4:13 PM
To: Octavian Biris [email protected]
Subject: Re: VXL test failures
PRUNING IS GOOD! Any pruning you can do will greatly improve the software.
I would really like to get to all test passing. Removing tests that are no longer meaningful is the quickest way to do that.
Can you please do the pruning?
Thanks,
Hans
From: Octavian Biris [email protected]
Date: Wednesday, December 9, 2015 at 3:51 PM
To: Hans Johnson [email protected]
Subject: Re: VXL test failures
I don't have access to a mac machine so I can't assess the status of those tests. Most of them are legacy and will require some pruning.
On Wed, Dec 9, 2015 at 4:18 PM, Johnson, Hans J [email protected] wrote:
Octavian,
Thank you! I ran test this morning, and this afternoon. It represents pre-and post your patch set changes (along with other changes in the repository today).
It appears that there is a new test failure boxm_util_test_plane_ransac
It also appears that many of the boxm2 tests are still failing with the clang compiler.
It should be noted that on mac with the clang compiler that unitialized variables are often NOT set to 0’s, and that the gcc compiler often does set uninitialized variables to 0’s. The standard does NOT require that uninitialized variables are set to zero.
The attached patch was my start at trying to fix this problem, but I quickly realized that I could not understand the code at a level necessary to make reasonable default values.
PRE-FAILURES: The following tests FAILED:
x156 - vgl_test_cartesian (Failed)
FIX258 - vil1_test_file_format_read (Failed)
FIX688 - bsta_algo_test_mean_shift (Failed)
FIX694 - bsta_test_histogram_io (Failed)
FIX813 - sdet_test_sel (Failed)
x714 - bocl_test_command_queue (SEGFAULT)
x793 - volm_test_find_overlapping (Failed)
x832 - bvxm_pro_test_rpc_registration_process (SEGFAULT)
x886 - boxm2_test_merge_function (Failed)
x887 - boxm2_ocl_pro_test_filter_kernel (SEGFAULT)
x892 - boxm2_ocl_test_kernel_filter (Failed)
x893 - boxm2_ocl_test_kernel_vector_filter (Failed)
x915 - boxm2_test_io (Timeout)
POST-FAILURES The following tests FAILED:
x156 - vgl_test_cartesian (Failed)
x714 - bocl_test_command_queue (SEGFAULT)
x793 - volm_test_find_overlapping (Failed)
x832 - bvxm_pro_test_rpc_registration_process (SEGFAULT)
NEW859 - boxm_util_test_plane_ransac (Failed)
x886 - boxm2_test_merge_function (Failed)
x887 - boxm2_ocl_pro_test_filter_kernel (SEGFAULT)
x892 - boxm2_ocl_test_kernel_filter (Failed)
x893 - boxm2_ocl_test_kernel_vector_filter (Failed)
x915 - boxm2_test_io (Timeout)
Hans
From: Octavian Biris [email protected]
Date: Wednesday, December 9, 2015 at 11:45 AM
To: Hans Johnson [email protected]
Subject: Re: VXL test failures
Hans,
I have committed the fixes for these tests. They were conceptually wrong to begin with as a result of a functionality change in the boxm2_block_class that never got carried over to the tests . This required some modifications to the underlying classes in order to have the tests work and pass as expected. Let me know if the tests succeed on your machine
Best,
-Octavian
On Sat, Nov 28, 2015 at 3:59 PM, Johnson, Hans J [email protected] wrote:
The test that I was tracking down was boxm2_test_cache and boxm2_test_cache2.
But there are also failures in boxm_test_io
It is failing on both a gcc 4.9 build on linux and a clang build on mac.
It feels like perhaps some variables are not being explicitly initialized, and that perhaps when they are lucky enough to get a starting point of zero that it works.
Hans
From: Octavian Biris [email protected]
Date: Friday, November 27, 2015 at 1:15 PM
To: Hans Johnson [email protected]
Subject: Re: VXL test failures
Which tests are in question? That line is required for boxm2_cache to work properly and safely. Let me know which tests fail and I will look into it.
Best,
-Octavian
On Fri, Nov 27, 2015 at 1:56 PM, Johnson, Hans J [email protected] wrote:
Octavian,
The command "this->trees().begin()"
On line 45 is causing a segmentation fault.
I also think that this should not be
boxm2_block::uchar16*
But rather:
boxm2_array_3d::const_iterator
Hans
From: Hans Johnson [email protected]
Date: Friday, November 27, 2015 at 12:36 PM
To: "[email protected]" [email protected]
Subject: VXL test failures
Octavian,
This commit isis caussing many tests to fail on multiple platforms. If I remove these 3 lines, then the tests begin to pass.
commit 4af9d00
Author: Octavian Biris [email protected]
Date: Thu Jul 16 12:18:22 2015
Protected boxm2_block tree array, changed the way ocl cache retrieves data
If I remove these 3 lines, then the tests begin to pass.
diff --git a/contrib/brl/bseg/boxm2/boxm2_block.cxx b/contrib/brl/bseg/boxm2/boxm2_block.cxx
index 3279984..fd10d96 100644
--- a/contrib/brl/bseg/boxm2/boxm2_block.cxx
+++ b/contrib/brl/bseg/boxm2/boxm2_block.cxx
@@ -12,7 +12,7 @@ boxm2_block::boxm2_block(boxm2_block_id id, char* buff): version_(1)
buffer_ = buff;
this->b_read(buff);
read_only_ = true;
- n_cells_ =this->recompute_num_cells();
+//CAUSES TEST FAILURES n_cells_ =this->recompute_num_cells();
}
boxm2_block::boxm2_block(boxm2_block_id id, boxm2_block_metadata data, char* buffer)
@@ -28,7 +28,7 @@ boxm2_block::boxm2_block(boxm2_block_id id, boxm2_block_metadata data, char* buf
buffer_ = buffer;
this->b_read(buffer_);
read_only_ = true;
- n_cells_ =this->recompute_num_cells();
+//CAUSES TEST FAILURES n_cells_ =this->recompute_num_cells();
}
boxm2_block::boxm2_block(boxm2_block_metadata data)
@@ -37,7 +37,7 @@ boxm2_block::boxm2_block(boxm2_block_metadata data)
block_id_ = data.id_;
this->init_empty_block(data);
read_only_ = false; // make sure that it is written back to disc
- n_cells_ =this->recompute_num_cells();
+//CAUSES TEST FAILURES n_cells_ =this->recompute_num_cells();
}
Regards,
Hans