__pthread_kill 崩溃 [英] Crash on __pthread_kill

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

问题描述

得到下面的崩溃报告,但不知道为什么会发生以及如何修复它.

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

SIGABRT 在 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.

如果您的崩溃只是在野外"发生,您将不得不重新符号化您的崩溃日志.诸如曲棍球或试飞之类的服务会为您执行此操作,或者可以按照此过程手动完成.

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天全站免登陆