Skip to content
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 after adding linear constraint in cvxpy #25

Closed
nkoep opened this issue Jun 1, 2016 · 3 comments
Closed

Segmentation fault after adding linear constraint in cvxpy #25

nkoep opened this issue Jun 1, 2016 · 3 comments

Comments

@nkoep
Copy link

nkoep commented Jun 1, 2016

Hey,

I encountered a segfault after adding a specific type of linear constraint in cvxpy. While the backtrace (see here) points to one of Eigen's template methods, I figured it was most likely an issue in CVXcanon/cvxopt/cvxpy given the maturity of Eigen. Of course, that's just a guess and the issue could be caused elsewhere. Always hard to tell when it comes to segfaults.

A minimal working example can be found here. Here's what python/cvx* versions I'm using:

[numberwang ⚡ ~] » python -V
Python 3.5.1
[numberwang ⚡ ~] » pip list | grep -i cvx
CVXcanon (0.0.23.4)
cvxopt (1.1.8)
cvxpy (0.4.0)

Some background on the problem: I'm trying to solve the basis pursuit problem on complex data with the additional constraint that the solution by conjugate symmetric so that its inverse Fourier transform be real-valued.

Regards

@mwytock
Copy link
Contributor

mwytock commented Jun 1, 2016

Definitely seems to be an issue with negative indexing. We are working on a
fix, sorry about that
On Jun 1, 2016 5:20 AM, "Niklas Koep" notifications@github.com wrote:

Hey,

I encountered a segfault after adding a specific type of linear constraint
in cvxpy. While the backtrace (see here
https://gist.github.com/nkoep/486de1cdd8237d3fa9ed45919d5e1181) points
to one of Eigen's template methods, I figured it was most likely an issue
in CVXcanon/cvxopt/cvxpy given the maturity of Eigen. Of course, that's
just a guess and the issue could be caused elsewhere. Always hard to tell
when it comes to segfaults.

A minimal working example can be found here
https://gist.github.com/nkoep/ed361820ba473e7ef85e1c9d8e857463. Here's
what python/cvx* versions I'm using:

[numberwang ⚡ ~] » python -V
Python 3.5.1
[numberwang ⚡ ~] » pip list | grep -i cvx
CVXcanon (0.0.23.4)
cvxopt (1.1.8)
cvxpy (0.4.0)

Some background on the problem: I'm trying to solve the basis pursuit
problem on complex data with the additional constraint that the solution by
conjugate symmetric so that its inverse Fourier transform be real-valued.

Regards


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#25, or mute the thread
https://github.com/notifications/unsubscribe/AAkH1h7X1K-rUDVC6GYWW4_A9tqxv6I5ks5qHXkNgaJpZM4IrfFZ
.

@SteveDiamond
Copy link
Member

Update CVXcanon and the problem will be fixed.

@nkoep
Copy link
Author

nkoep commented Jun 2, 2016

That did the trick. Thanks for fixing the issue at such short notice!

mwytock added a commit that referenced this issue Jun 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants