[go: up one dir, main page]

seg fault on (A * B)(0, 0)

Submitted by Bowie Owens

Assigned to Nobody

Link to original bugzilla bug (#447)
Version: 3.0
Operating system: Linux

Description

When I multiply two matrices and index into the product (without saving it to a matrix variable) I get a segmentation fault. The following program reproduces the problem for me. Note it seems to be some sort of infinite recursion.

#include <Eigen/Dense>

int
main()
{
Eigen::MatrixXd A (1, 3);
A << 1, 2, 3;

Eigen::MatrixXd B (3, 1);  
B << 4, 5, 6;  

double p = (A * B)(0, 0);  

return 0;  

}

I am using x86-64 Linux and GCC 4.6.2 with Eigen 3.0.5.

Edited by Eigen Bugzilla