-
Notifications
You must be signed in to change notification settings - Fork 31
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
Segmentation fault when writing the final solution in the same file as the initial solution #13
Comments
I investigated further and I found out that the bug was actually coming from an incorrect initial solution. This seems to happen when solution contains only the vector y. If problem contains for instance:
And solution contains
Then |
Not having a newline on the last line of the file is a problem that should be easy to detect an handle. An incomplete initial solution is very problematic since there's no obvious approach to set values for the missing parts of the solution that make any sense. If you tried to treat the missing matrix variables X and Z as 0, the algorithm would crash since these aren't positive definite. The algorithm really requires an initial solution with X and Z strictly positive definite. readprob could be fixed to treat missing X and Z matrices as 0, but then the code would crash immediately with an error related to the infeasible initial solution. Thanks for reporting the bugs. I'm sorry that what you may have been trying to do with incomplete solutions isn't workable, but I will work to make readprob more tolerant of these issues. It will probably be May before I can work on this. |
Thank you for your answer. The particular case in which I appened to run csdp on an incomplete input was coming from a bug on my side. |
I am using CSDP 6.1.1 via the linux package.
The following command line gives a segmentation fault.
csdp problem solution solution
It is a weird edge case that is easy to avoid but maybe it could be fixed or properly caught, so I post it here.
The text was updated successfully, but these errors were encountered: