Changes between Initial Version and Version 1 of Ticket #44627


Ignore:
Timestamp:
Aug 13, 2014, 9:18:46 AM (10 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44627

    • Property Cc mmoll@… removed
    • Property Owner changed from macports-tickets@… to mmoll@…
  • Ticket #44627 – Description

    initial v1  
    33http://julianpanetta.com/macports_bugs/test_ceres.cc
    44
    5  {{{
     5{{{
    66$ /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
    77 $ ./broken
     
    1919Sometimes the program runs to completion, but usually it segfaults in the ceres::Solve call. The std::length_error shown above is much more rare (happens because vectors v1s and v2s are getting scribbled over). This was a very difficult bug to track down, and unfortunately I haven't been able to simplify the test case further. I am filing the bug here rather than upstream because the following setups do not exhibit the problem, leading me to suspect the error is in the MacPorts build:
    2020
    21 1) Building ceres-solver manually (both from git repo, and from "latest stable release" link at ceres-solver.org), compiling test_ceres.cc with /usr/bin/clang;[[BR]]
    22 2) Compiling test_ceres.cc with clang-mp-3.{4,5}, linking against MacPorts libceres.a
     21 1. Building ceres-solver manually (both from git repo, and from "latest stable release" link at ceres-solver.org), compiling test_ceres.cc with /usr/bin/clang;
     22 2. Compiling test_ceres.cc with clang-mp-3.{4,5}, linking against MacPorts libceres.a
    2323
    2424Those  made me suspect an ABI incompatibility with the MacPorts binary, but strangely...
     
    3131
    3232For reference, my "built-in" clang is:
     33{{{
    3334 $ clang++ --version
    3435Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
    3536Target: x86_64-apple-darwin13.2.0
    3637Thread model: posix
     38}}}