Closed gabriel-gehrke closed 4 months ago
Do you have rectangles that can have zero area ?
I ran it 50 times on main. It did not crash.
Do you have rectangles that can have zero area ?
No, this is not possible.
I ran it 50 times on main. It did not crash.
It is very unfortunate to me that you cannot reproduce the bug. As I said, I was able to reproduce this bug on two separate machines, so I am confident that this is a real issue. For me, the segfault usually occurs in the first five iterations. Is there anything else I could provide you with to enable finding the root cause of the issue?
Maybe some information about my environments:
I am on the main branch where I fixed some crash in the 2d packing constraint. Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53 00
Le jeu. 21 mars 2024 à 11:10, Gabriel Gehrke @.***> a écrit :
Do you have rectangles that can have zero area ?
No, this is not possible.
I ran it 50 times on main. It did not crash.
It is very unfortunate to me that you cannot reproduce the bug. As I said, I was able to reproduce this bug on two separate machines, so I am confident that this is a real issue. For me, the segfault usually occurs in the first five iterations. Is there anything else I could provide you with to enable finding the root cause of the issue?
Maybe some information about my environments:
- On both PCs I use Python 12.1
- On both PCs I use conda to create and manage Python environments
— Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/4144#issuecomment-2011819416, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3MNSLRI6FYYUCW3IVLYZKWYJAVCNFSM6AAAAABFALKW22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJRHAYTSNBRGY . You are receiving this because you modified the open/close state.Message ID: @.***>
What version of OR-Tools and what language are you using? Version: v9.9.3963 Language: Python 12.1
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) I am using CP-SAT
What operating system (Linux, Windows, ...) and version? Reproduced on Linux Mint 21, and on Linux Fedora 39 (two different computers).
What did you do? What I did / what I am doing:
I create and solve many small-ish Cp Models in 2D packing context, and I have found at least one instance which >>sometimes<< causes a segfault.
In the terminal, the segfault just looks like this:
To trigger this bug, the instance must be solved repeatedly, as it does not occur on every run. So, I believe it might be a race condition or similar timing-related bug.
I wrote a small script that loads the exported model proto and solves it repeatedly. The script and the model (in txt form) are appended to this issue.
model.txt trigger_segfault.py.txt