[mlpack] EXC_BAD_ACCESS in boost

Li Dong dongli at lasg.iap.ac.cn
Mon Mar 17 04:49:00 EDT 2014


Hi all,

I am using RangeSearch of MLPACK in my program, and it has no problem several days ago. But I made some changes to my codes these days, and encountered the following error in Debug mode:

iMac:Debug dongli$ lldb ./demo_testcase
Current executable set to './demo_testcase' (x86_64).
(lldb) r
Process 84476 launched: './demo_testcase' (x86_64)
Process 84476 stopped
* thread #1: tid = 0xbf77f, 0x0000000100216e7b libmlpack.1.0.dylib`long double boost::math::lanczos::lanczos17m64::lanczos_sum<long double>(long double const&) + 59, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x10008a500)
    frame #0: 0x0000000100216e7b libmlpack.1.0.dylib`long double boost::math::lanczos::lanczos17m64::lanczos_sum<long double>(long double const&) + 59
libmlpack.1.0.dylib`long double boost::math::lanczos::lanczos17m64::lanczos_sum<long double>(long double const&) + 59:
-> 0x100216e7b:  fstpt  (%rax)
   0x100216e7d:  fldt   0x58f4d(%rip)             ; typeinfo name for boost::exception_detail::error_info_injector<std::domain_error> + 128
   0x100216e83:  fstpt  0x10(%rax)
   0x100216e86:  fldt   0x58f54(%rip)             ; typeinfo name for boost::exception_detail::error_info_injector<std::domain_error> + 144

In Release mode, there is no such error! My platform is Mac OS X 10.9.2, compiler is clang 5.1.0 in Xcode 5.1, boost version is 1.55.0.

Any idea? Thanks in advance!

Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20140317/b40e1782/attachment-0002.html>


More information about the mlpack mailing list