Open gergondet-woven opened 5 days ago
Hi @gergondet-woven,
thanks a lot for raising this issue and providing a fix for it. I compiled your example and verified that the solution works - the rest of the unittests is still passing, so I think we should integrate this.
It might be a good idea to compile all our unittests with the sanitizers and check for further problems.
Hello folks,
I have encountered a problem with the undefined behaviors sanitizer when running our test suite against it.
Here is a program that will trigger the issue (both in 0.6.5 and current main)
You can compile this with the following CMake:
This will output something like this:
The issue here is that in the
global_dual_residual
function, theqpwork.active_set_up
(resp.qpwork.active_set_low
) is used unitialized to computezu
(resp.zl
)A simple work-around is to initialize these vectors when they are resized:
(I have added
active_inequalities
here for good measures but I'm not sure if it triggers anything). However, I'm unsure if it's the correct way to address this and I imagine there should be something similar to do with the sparse solver.Thanks again for the work you've put into this library and please let me know if I can be of further assistance.