Possible causes to crash during boost::thread spawning <p>Executing </p> <pre><code>`boost::thread(boost::bind(&amp;SomeClass::someStaticFunction, someParam));` </code></pre> <p>sometimes causing a crash. Please notice that the function is static. The trace I see is: </p> <pre><code>* thread #35: tid = 0x2a822, 0x00d2469e NdsVgconnectTestApp`boost::(anonymous namespace)::thread_proxy(param=&lt;unavailable&gt;) + 246 at thread.cpp:164, stop reason = EXC_BAD_ACCESS (code=1, address=0x20000008) * frame #0: 0x00d2469e NdsVgconnectTestApp`boost::(anonymous namespace)::thread_proxy(param=&lt;unavailable&gt;) + 246 at thread.cpp:164 frame #1: 0x3b877918 libsystem_pthread.dylib`_pthread_body + 140 frame #2: 0x3b87788a libsystem_pthread.dylib`_pthread_start + 102 </code></pre> <p>What could be the possible reasons for the EXC_BAD_ACCESS? Could it happen due to too many threads or memory allocation overrun (it was 54 threads when the app crashed) ?</p>