[Boost-users] [Thread] code segfaults/hangs when being called from matlab, not when run standalone