[mlpack-svn] [MLPACK] #296: [OS X] bus error at execution
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Mon Apr 7 18:32:16 EDT 2014
#296: [OS X] bus error at execution
-----------------------------------------------+----------------------------
Reporter: natal | Owner: rcurtin
Type: defect | Status: accepted
Priority: major | Milestone:
Component: mlpack | Resolution:
Keywords: OS X bus error g++ 4.8 execution | Blocking:
Blocked By: |
-----------------------------------------------+----------------------------
Comment (by kevinoid):
I recently encountered a similar issue in [http://quantlib.org QuantLib]
and brought it up for [http://lists.cs.uiuc.edu/pipermail/cfe-
dev/2014-April/036279.html discussion on the cfe-dev mailing list]. I'm
not sure if it is the same issue, but the issue I was experiencing was due
to C++11 ABI incompatibility for static initialization which occurred due
to the `const static` variables in `lanczos_initializer`.
To test if this may be the issue in your case as well, try running the
following commands:
{{{
nm /usr/local/lib/libmlpack.dylib | c++filt | grep ::num$ | fgrep -v
'guard variable'
nm explore | c++filt | grep ::num$ | fgrep -v 'guard variable'
}}}
That should print out the `long double
boost::math::lanczos::lanczos17m64::lanczos_sum<long double>(long double
const&)::num` symbol in each binary (and possibly other symbols). Check
that all occurrences of that symbol have the same symbol type (either "D"
if C++98 mode or "S" if C++11 mode). If not, `EXC_BAD_ACCESS` is likely
to occur.
Hope that helps,
Kevin
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/296#comment:12>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed at Georgia Tech.
More information about the mlpack-svn
mailing list