-
Notifications
You must be signed in to change notification settings - Fork 3
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 running LPs repeatedly #8
Comments
here is my python version |
So I have noticed that if I don't have two systems back to back I cannot get the segfault to occur. This suggests to me that some kind of caching routine (maybe reading from a bad cache) is causing the segfaults in the first place. |
So with some inspection it appears that line 481 in the file
I'm out of my depth here but I can follow that line of code the to the file
and this basically appears to wrap a direct call to the qsoptex library in exact.h |
The segfault is caused by line 721 here: https://github.com/jonls/qsopt-ex/blob/master/qsopt_ex/exact.c particulary just accessing the qslp->colnames structure see below: It appears that the colnames pointer is being accessed like an array on elements which do not cast like strings |
Hello I am using a MAC OS Big Sur Version 11.3.1
When I run the solver multiple times SOMETIMES it segmentation faults, I dont know if this is because of qsopt_ex or because of the cython library. Just copy the code below into a file called
reproducing_seg_fault.py
and run the program like 20 or so times consecutively. One of the times will result in a segfault (see here)Code here:
The text was updated successfully, but these errors were encountered: