Open SYury opened 3 weeks ago
strange, I ran it internally with our asan, msan tests, and nothing pops out.
no error using asan on mac
looks like a mismatch of protobuf versions. Can you check the installed version ?
Also works for me with Ubuntu 22.04 in WSL and the bazel-based build (aka protobuf and co. versions chosen explicitly).
looks like a mismatch of protobuf versions. Can you check the installed version ?
I use or-tools_amd64_ubuntu-22.04_cpp_v9.10.4067.tar.gz archive from release page and I don't have protobuf installed system-wide, so or-tools should use whatever is in the archive. I'll try building from source and see if the issue persists.
9.10 was build with protobuf 26.1.
Maybe the system downloaded an incompatible successor version.
Tried building from source with cmake, still fails. Here is my CMakeLists.txt:
cmake_minimum_required(VERSION 3.18)
project(myproj VERSION 1.0)
set(BUILD_DEPS ON BOOL)
add_subdirectory(or-tools-9.10)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
add_executable(myapp main.cpp)
target_link_libraries(myapp ortools::ortools)
Here is version.json from protobuf dependency, the version seems correct:
{
"26.x": {
"protoc_version": "26.1",
"lts": false,
"date": "2024-03-27",
"languages": {
"cpp": "5.26.1",
"csharp": "3.26.1",
"java": "4.26.1",
"javascript": "3.26.1",
"objectivec": "3.26.1",
"php": "4.26.1",
"python": "5.26.1",
"ruby": "4.26.1"
}
}
}
What version of OR-Tools and what language are you using? Version: 9.10 Language: C++
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) CP-SAT
What operating system (Linux, Windows, ...) and version? Ubuntu 22.04 in WSL
What did you do? Compile and run the following simple code with
g++ -std=c++17 -fsanitize=address
:What did you expect to see It should print "all ok" (without sanitizer it does exactly that) What did you see instead?
Make sure you include information that can help us debug (full error message, model Proto).
Anything else we should know about your project / environment