我在iOS上运行应用程序并且正在使用EXC_BAD_ACCESS来定期(不经常)崩溃。 启动boost :: thread:
时发生崩溃boost::thread(boost::bind(&SomeClass::someStaticFunction, someParam));
我看到的调用堆栈是:
* thread #35: tid = 0x2a822, 0x00d2469e NdsVgconnectTestApp`boost::(anonymous namespace)::thread_proxy(param=<unavailable>) + 246 at thread.cpp:164, stop reason = EXC_BAD_ACCESS (code=1, address=0x20000008)
* frame #0: 0x00d2469e NdsVgconnectTestApp`boost::(anonymous namespace)::thread_proxy(param=<unavailable>) + 246 at thread.cpp:164
frame #1: 0x3b877918 libsystem_pthread.dylib`_pthread_body + 140
frame #2: 0x3b87788a libsystem_pthread.dylib`_pthread_start + 102
我传递给boost :: thread一个静态函数,所以很难相信寻址或指针损坏有问题。所以我的问题是:EXC_BAD_ACCESS崩溃是否是iOS设备内存耗尽或超出操作系统内存限制的应用程序?