You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
derivable-function and function-pool unit test fail with g++ (4.7.2) and Boost (1.49) when compiling in Release (-O3 -DNDEBUG).
The bug don't appear when compiling in Debug, and appear only for function-pool in -O1 and -O2.
If I use a previous g++ version (4.6.3) the bug don't appear.
Probably a compiler issue…
derivable-function output:
Running 4 test cases...
log4cxx: Could not open file [/home/joris/dev/these/mc_pg/roboptim-core/tests/log4cxx.xml].
null function (differentiable function)
Differentiable function
1
1
1
1
null function
1
1
[1](0)
[1](0)
[1](0)
[1](0)
[1](0)
[1](0)
1
1
(1, 1)
(1, 1)
1
1
1
1
log4cxx: Could not open file [/home/joris/dev/these/mc_pg/roboptim-core/tests/log4cxx.xml].
null function (differentiable function)
Differentiable function
1
1
1
1
null function
1
1
[1](0)
[1](0)
1
1
(1, 1)
(1, 1)
1
1
1
1
log4cxx: Could not open file [/home/joris/dev/these/mc_pg/roboptim-core/tests/log4cxx.xml].
unknown location(0): fatal error in "jacobian_check<N8roboptim16EigenMatrixDenseE>": signal: SIGSEGV, si_code: 0 (memory access violation at address: 0x00000080)
/home/joris/dev/these/mc_pg/roboptim-core/tests/derivable-function.cc(244): last checkpoint
*** 1 failure detected in test suite "Master Test Suite"
For derivable-function, if this is indeed a compiler issue, there isn't much we can do, except find an alternative implementation in the function we use in the hope that it would not lead to the same compiler error.
For function-pool, this could probably be avoided with a better check for small scalars (as was done in roboptim/roboptim-trajectory#21), since different compilers can produce different results. We can probably make something generic, which would benefit to other tests that also compare matrices extensively. In the meantime, I guess we could filter small scalars and set them to zero (not ideal but good enough for the pool).
derivable-function and function-pool unit test fail with g++ (4.7.2) and Boost (1.49) when compiling in Release (-O3 -DNDEBUG).
The bug don't appear when compiling in Debug, and appear only for function-pool in
-O1
and-O2
.If I use a previous g++ version (4.6.3) the bug don't appear.
Probably a compiler issue…
derivable-function output:
function-pool output:
The text was updated successfully, but these errors were encountered: