Boost logo

Boost Users :

Subject: Re: [Boost-users] Creating a boost thread in a matlab mex file causes matlab to crash
From: John Phillips (phillips_at_[hidden])
Date: 2009-06-23 11:16:07


bjs109 wrote:
> I'm having some issues getting matlab and boost threads to work together. I'm
> posting here and a number of other places as I don't think this problem fits
> into any one domain.
>
> Specifically, whenever I try to use boost threads within a mex file, it
> causes matlab to crash.
>
> ...[snip]...
>
> Any ideas?
>
>

   First thought.

   Have you tried a similar program that does not use boost threads, but
instead creates the threads directly via pthreads? If this also crashes
the same way, then boost threads is not the cause of the problem. If it
does not crash, then boost threads is involved in the problem.

   Second thought.

   If you find that boost threads is involved in the problem, you might
try updating your boost installation to the current version (1.39). The
version included with your CentOS is more than 3 1/2 years old, and
according to Anthony's release notes almost every line of the code has
been rewritten since then.

   That is at least the steps I would start with.

                        John


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net