-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP-SAT crashes with address sanitizer #4269
Comments
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). |
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 version.json from protobuf dependency, the version seems correct:
|
I have a similar issue on a personal project, after searching for solutions I landed on this issue and mine seems to be related. I installed or-tools from source with CMake, building all dependencies, on Debian 12. I made a repository with full details on how to reproduce the error of this issue: https://github.com/smatchcube/reproduce_ASAN_crash I also tested the basic example from MathOpt and MPSolver: https://developers.google.com/optimization/math_opt/basic_example#c++ & https://developers.google.com/optimization/math_opt/basic_example#c++ I get errors for both with ASAN: |
which version ?
which solver when using math-opt or mpsolver ?
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68 53
00
Le sam. 21 sept. 2024 à 17:28, smatchcube ***@***.***> a
écrit :
… I have a similar issue on a personal project, after searching for
solutions I landed on this issue and mine seems to be related.
I made a repository with full details on how to reproduce the error of
this issue: https://github.com/smatchcube/reproduce_ASAN_crash
There is a Dockerfile and the program is run with Github Actions both with
and without ASAN:
https://github.com/smatchcube/reproduce_ASAN_crash/actions/runs/10973470390
I also tested the basic example from MathOpt and MPSolver:
https://developers.google.com/optimization/math_opt/basic_example#c++ &
https://developers.google.com/optimization/math_opt/basic_example#c++
I get errors for both with ASAN:
- MathOpt:
https://github.com/smatchcube/reproduce_ASAN_crash/actions/runs/10973562570
- MPSolver:
https://github.com/smatchcube/reproduce_ASAN_crash/actions/runs/10973593388
—
Reply to this email directly, view it on GitHub
<#4269 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3KPFWJV25SBXSPAFCTZXWGCBAVCNFSM6AAAAABJEBT7FGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRVGIZDONJVGM>
.
You are receiving this because you commented.Message ID:
<google/or-tools/issues/4269/2365227553 ***@***.***>
|
With or-tools version 9.11 Here is how or-tools was installed: git clone --branch v9.11 --depth 1 https://github.com/google/or-tools.git
cd or-tools/
cmake -S . -B build/ -G Ninja -DBUILD_DEPS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build/ --config Release --verbose --target all
cmake --build build/ --config Release --verbose --target test
cmake --build build/ --config Release --verbose --target install |
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
The text was updated successfully, but these errors were encountered: