Open andre-tebart opened 9 months ago
From an internal test:
https://github.com/google/or-tools/blob/9154cf343decf2489fec38bdf0958e687921d636/ortools/algorithms/find_graph_symmetries_test.cc#L60 https://github.com/google/or-tools/blob/9154cf343decf2489fec38bdf0958e687921d636/ortools/algorithms/find_graph_symmetries_test.cc#L72-L77
two questions:
GraphIsSymmetric(graph)
?
- Does a graph with no arc is symmetric ?
Seems the second arg means "is_undirect"
The error also occurs with a non empty undirected graph. You get correct results from the symmetry finder but it still crashes in the destructor.
We have added unit test on our code, and it does not crash.
see https://github.com/google/or-tools/commit/d0eb8dd3d80ecbb5a91f94337af4ed80240d8284
note: currently not supported nor run when using cmake based build...
What version of OR-Tools and what language are you using? Version: v9.7 Language: C++
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) GraphSymmetryFinder
What operating system (Linux, Windows, ...) and version? Ubuntu 22.04
What did you do? Steps to reproduce the behavior:
I run this code snippet via doctest.
What did you expect to see I expect this to just run through.
What did you see instead? The program crashes with a segmentation violation signal. This is the stack trace I get:
Anything else we should know about your project / environment We also use CP-SAT in our project and don't have any issues there.