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

ceres-solver 1.9.0 from MacPorts segfaults on a particular problem #150

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. Install ceres-solver with MacPorts (either from binary with "port install 
ceres-solver" or source with "port -s install ceres-solver").
2. Compile the program at http://julianpanetta.com/macports_bugs/test_ceres.cc 
with /usr/bin/clang++:
/usr/bin/clang++ -g -O0 -std=c++11 -I/opt/local/include
 -I/opt/local/include/eigen3 test_ceres.cc -L/opt/local/lib -lceres -lglog
 -lgflags -lcholmod -lcxsparse -framework accelerate -o broken
3) ./broken

What is the expected output? What do you see instead?

It should print 0..19, but it intermittently segfaults partway through or 
throws a std::length error because Ceres has scribbled over the arrays v1s and 
v2s.

What version of the product are you using? On what operating system?

I've tried with 1.9.0 installed from MacPorts on both OS 10.9.3 and 10.9.4.

Please provide any additional information below.

I've filed a ticket with MacPorts because this only seems to happen with a 
MacPorts-installed (statically linked) Ceres. The test program runs fine when 
statically linked against a Ceres version manually built with cmake (both the 
git head, and the stable 1.9.0 release). However, the MacPorts configuration is 
so minimal it's unclear where the problem could be. More details are at:

https://trac.macports.org/ticket/44627

Original issue reported on code.google.com by [email protected] on 13 Aug 2014 at 4:15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant