[mlpack-svn] [MLPACK] #296: [OS X] bus error at execution
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Fri Aug 2 07:46:34 EDT 2013
#296: [OS X] bus error at execution
--------------------+-------------------------------------------------------
Reporter: natal | Owner: natal
Type: defect | Status: new
Priority: major | Milestone:
Component: mlpack | Keywords: OS X bus error g++ 4.8 execution
Blocking: | Blocked By:
--------------------+-------------------------------------------------------
I'm under OS X 10.8.4.
The situation is the following:
- An mlpack library built with g++ 4.8.
- A very simple program compiled with g++ 4.8 :
{{{
#include <gmm.hpp>
#include <iostream>
void main()
{
std::cout << "Hello World" << std::endl;
}
}}}
- With the following compilation line:
{{{
/opt/local/bin/g++-mp-4.8 -std=c++11 src/main.cc
-I/usr/local/include/mlpack -I/usr/local/include/mlpack/methods/gmm
-I/opt/local/include/libxml2 -L/usr/local/lib -L/opt/local/lib -lmlpack
-larmadillo -o explore
}}}
The problem is the following:
- It compiles with no error and produces the following output at execution
:
{{{
bus error ./explore
}}}
- Using a debugger on this gives the following :
{{{
$> lldb ./explore
Current executable set to './explore' (x86_64).
(lldb) r
Process 46643 launched: './explore' (x86_64)
Process 46643 stopped
* thread #1: tid = 0x1c03, 0x000000010001112f
libmlpack.1.dylib`boost::math::lanczos::lanczos_initializer<boost::math::lanczos::lanczos17m64,
long double>::init::init() + 63,
[]stop reason = EXC_BAD_ACCESS (code=2, address=0x100002600)
frame #0: 0x000000010001112f
libmlpack.1.dylib`boost::math::lanczos::lanczos_initializer<boost::math::lanczos::lanczos17m64,
long double>::init::init() + 63
libmlpack.1.dylib`boost::math::lanczos::lanczos_initializer<boost::math::lanczos::lanczos17m64,
long double>::init::init() + 63:
-> 0x10001112f: fstpt (%rax)
0x100011131: fldt 394489(%rip)
0x100011137: fstpt 16(%rax)
0x10001113a: fldt 394496(%rip)
}}}
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/296>
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