崩溃__pthread_kill [英] Crash on __pthread_kill

查看:1671
本文介绍了崩溃__pthread_kill的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面有崩溃报告,但不知道为什么会发生这种情况以及如何修复它。

Got the crash report below, but have no clue why it would be happening and how to fix it.


SIGABRT ABORT在0x000000019aa3258c

SIGABRT ABORT at 0x000000019aa3258c

libsystem_kernel.dylib
__pthread_kill

libsystem_kernel.dylib __pthread_kill



Thread : Crashed: com.apple.main-thread
0  libsystem_kernel.dylib         0x000000019aa3258c __pthread_kill + 8
1  libsystem_pthread.dylib        0x000000019aab516c pthread_kill + 104
2  libsystem_c.dylib              0x000000019a9c6808 abort + 112
3  libc++abi.dylib                0x0000000199bec994 __cxa_bad_cast
4  libc++abi.dylib                0x0000000199c07184 std::__terminate(void (*)()) + 44
5  libc++abi.dylib                0x0000000199c06d3c __cxa_rethrow + 144
6  libobjc.A.dylib                0x000000019a3443a8 objc_exception_rethrow + 44
7  CoreFoundation                 0x000000018dd3d74c CFRunLoopRunSpecific + 576
8  GraphicsServices               0x0000000193a21c0c GSEventRunModal + 168
9  UIKit                          0x0000000190e6efdc UIApplicationMain + 1156
10 *************                  0x00000001000a5c80 main (main.m:17)
11 libdyld.dylib                  0x000000019a937aa0 start + 4


推荐答案

为了更容易看到崩溃起源,更改你的main.m文件如下:

To make it easier to see where the crash is originating, change your main.m file as follows:

int main(int argc, char* argv[])
{
    @autoreleasepool
    {
        int returnValue;
        @try
        {
            returnValue = UIApplicationMain(argc, argv, nil, 
                NSStringFromClass([MyAppDelegate class]));
        }
        @catch (NSException* exception)
        {
            LogError(@"Uncaught exception: %@, %@", [exception description], 
                [exception callStackSymbols]);
            @throw exception;
        }
        return returnValue;
    }
}

。 。 。或者像其他人建议的那样,设置一个异常断点。

. . . or as others have suggested, set an exception breakpoint.

如果您的崩溃只发生在野外,您将不得不重新启用崩溃日志。像Hockey或Test Flight这样的服务为您完成此操作,或者可以在此过程之后手动完成。

If your crash is only happening "in the wild" you'll have to resymbolicate your crash logs. Services like Hockey or Test Flight do this for you, or it can be done manually following this process.

这篇关于崩溃__pthread_kill的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆