-
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
Some examples crash with SEGV #2126
Comments
|
I have fixed a race condition that is platform dependent. Can you try with the master branch ? |
|
CP-SAT works fine now. CP crashes though |
|
To investigate: $ make --directory=cmake freebsd
$ cd cmake/vagrant/freebsd
$ vagrant status
...
default running (virtualbox)
$ vagrant ssh
[vagrant@freebsd12 ~]$ cd project/
[vagrant@freebsd12 ~/project]$ cmake --build build --target test
...
The following tests FAILED:
CMake Error: Cannot open file for write: /usr/home/vagrant/project/build/Testing/Temporary/LastTestsFailed.log.tmp
CMake Error: : System Error: Permission denied
Problem opening file: /usr/home/vagrant/project/build/Testing/Temporary/LastTestsFailed.log
Cannot create log file: LastTestsFailed.log
13 - cxx_constraint_solver_minimal_jobshop_cp (SEGFAULT)
16 - cxx_constraint_solver_simple_cp_program (SEGFAULT)
17 - cxx_constraint_solver_simple_ls_program (SEGFAULT)
34 - cxx_constraint_solver_vrp_with_time_limit (SEGFAULT)
[vagrant@freebsd12 ~/project]$ sudo pkg install gdb
[vagrant@freebsd12 ~/project]$ cd build/bin/
[vagrant@freebsd12 ~/project/build/bin]$ gdb --args minimal_jobshop_cp
(gdb) run
Starting program: /usr/home/vagrant/project/build/bin/minimal_jobshop_cp
I0923 14:22:38.257535 2404352 minimal_jobshop_cp.cc:31] Machines: 0 1 2
I0923 14:22:38.257685 2404352 minimal_jobshop_cp.cc:41] Jobs:
I0923 14:22:38.257697 2404352 minimal_jobshop_cp.cc:49] Job 0: [(0, 3)(1, 2)(2, 2)]
I0923 14:22:38.257704 2404352 minimal_jobshop_cp.cc:49] Job 1: [(0, 2)(2, 1)(1, 4)]
I0923 14:22:38.257709 2404352 minimal_jobshop_cp.cc:49] Job 2: [(1, 4)(2, 3)]
I0923 14:22:38.257714 2404352 minimal_jobshop_cp.cc:59] Horizon: 21
Program received signal SIGSEGV, Segmentation fault.
0x0000000801fda0c9 in fclose () from /lib/libc.so.7
(gdb) bt
#0 0x0000000801fda0c9 in fclose () from /lib/libc.so.7
#1 0x0000000800c1e62e in operations_research::GetProcessMemoryUsage() () from /usr/home/vagrant/project/build/bin/../lib/libortools.so.8
#2 0x0000000800e35121 in operations_research::SearchLog::MemoryUsage() () from /usr/home/vagrant/project/build/bin/../lib/libortools.so.8
#3 0x0000000800e3505c in operations_research::SearchLog::EnterSearch() () from /usr/home/vagrant/project/build/bin/../lib/libortools.so.8
#4 0x0000000800c5f8f9 in operations_research::Solver::NewSearch(operations_research::DecisionBuilder*, std::__1::vector<operations_research::SearchMonitor*, std::__1::allocator<operations_research::SearchMonitor*> > const&) ()
from /usr/home/vagrant/project/build/bin/../lib/libortools.so.8
#5 0x0000000800c5f561 in operations_research::Solver::Solve(operations_research::DecisionBuilder*, operations_research::SearchMonitor*, operations_research::SearchMonitor*, operations_research::SearchMonitor*, operations_research::SearchMonitor*) () from /usr/home/vagrant/project/build/bin/../lib/libortools.so.8
#6 0x00000000002056a0 in operations_research::SolveJobShopExample() ()
#7 0x0000000000206a6b in main ()I would say
|
|
or-tools/ortools/base/sysinfo.cc Lines 47 to 76 in a0a5669
|
|
On FreeBSD we are now using this: |
For example:
Stack:
OS: FreeBSD 12.1
The text was updated successfully, but these errors were encountered: