Vector out of bounds in CumulativeTimeTabling Ctor
I've stumbled upon a problem where Asan kills the program due to an out of bounds access. It happens here
schedcl/examples/src/testsearch.cpp:111
when adding the constraints. I've traced it further to the constructor of CumulativeTimeTabling line 164.
When loading the problem instance data/osp/hurley/j3-per10-1.txt
It fails after the second call to the ctor, i.e. the second iteration over line 111 in testsearch.cpp.
The OOB happens in TimeTabling.hpp line 164 when accessing m_task_conumptions[order[s - 1]]
because order[s - 1]
is 2 but m_task_consumptions
has length 2.
If you have the time, maybe you could look at it @ehebrard because I'd like to focus on the sub problem generation. The problem can be reproduced on the master branch