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

Advice needed on "address not from malloc" pb.

Tags: None
(comma "," separated)
ostasse
Registered Member
Posts
7
Karma
0
Hi,
We just ported some of our code using Eigen, and run into a bad_alloc problem.

The code is developed on an old platform using Eigen 3.0.1 and gcc 4.4.3 (Ubuntu 10.04 LTS).
In this context the following snippet:
Code: Select all
#include <iostream>
#include <eigen3/Eigen/Dense>

using Eigen::MatrixXd;
int main()
{

  MatrixXd u;
  u.resize(5,1);
}

generates
Code: Select all
ElectricFence Aborting: address not from malloc()

when compiled with:
Code: Select all
g++ -lefence -g -o teste  test.cpp


This does not happen on Ubuntu 12.04 LTS with Eigen 3.0.5 and gcc 4.6.3, using the same code and the same compiling command.

Does it come from the Eigen version, the compiler or the OS ?

I would deeply appreciate any hint on this problem.

Best Regards,
Olivier Stasse.
ostasse
Registered Member
Posts
7
Karma
0
gcc 4.8.1 fixed the pb.


Bookmarks



Who is online

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