This forum has been archived. All content is frozen. Please use KDE Discuss instead.

SIGSEGV in SparseDenseProduct

Tags: None
(comma "," separated)
junsaito
Registered Member
Posts
7
Karma
0

SIGSEGV in SparseDenseProduct

Sat Nov 19, 2016 1:55 am
Hi,

I am using Eigen 3.3 on Ubuntu 12.10, gcc 4.6.3.
I got SIGSEGV on line 63 of SparseDenseProduct.h. It looks like LhsInnterIterator points to an invalid location.
I get the same error with optimizaitons turned on or off, OpenMP on or off.
I don't know if this matters, but in my case this sparse-dense product originates from line 43 of ConjugateGradient.h.
The sparse solve works fine when I switch to SimplicialLDLT.

Please let me know if there are things I can do to help track the problem.

Thanks,

Jun Saito
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: SIGSEGV in SparseDenseProduct

Sun Nov 20, 2016 8:21 pm
Please, paste the relevant code snippet so that there is chance for us to reproduce the issue.
junsaito
Registered Member
Posts
7
Karma
0

Re: SIGSEGV in SparseDenseProduct

Mon Nov 21, 2016 6:31 am
Luckily, I was able to reproduce the problem with a smaller code. Here it is:

https://github.com/dukecyto/admm-elasti ... teGradient

Now I know that the problem happens with older Eigen (3.2.5) and on OSX El Capitan.
I will keep on investigating the problem, but I would really appreciate it if you can look into it as well.
junsaito
Registered Member
Posts
7
Karma
0

Re: SIGSEGV in SparseDenseProduct

Mon Nov 21, 2016 7:13 pm
Forget this. I just found out the problem.
I was expecting compute() in IterativeLinearSolvers to make a copy of the matrix like direct solvers do.
I just needed to keep the copy of the matrix on my end.

Sorry about the confusion.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]