About Crash Much

Dear Apple Apple Engineer: An exception has occurred in my application. Here is the crash report: 42183A4C-7A9C-36F9-B29A-A28577CE39B7 0x0000000100ecc000 caused by:Application received signal 5 callStackSymbols: { 0 libdispatch.dylib 0x000000018888c768 0x0000000188853000 + 235368 1 libdispatch.dylib 0x0000000188858344 0x0000000188853000 + 21316 2 libdispatch.dylib 0x00000001888564b4 0x0000000188853000 + 13492 3 iIndustrial 0x00000001031cb09c 0x0000000100ecc000 + 36696220 4 libobjc.A.dylib 0x000000019d79fcd8 0x000000019d79a000 + 23768 5 libobjc.A.dylib 0x000000019d7b7148 0x000000019d79a000 + 119112 6 libobjc.A.dylib 0x000000019d7be5c4 0x000000019d79a000 + 148932 7 libsystem_blocks.dylib 0x00000001d48c1764 0x00000001d48c0000 + 5988 8 libdispatch.dylib 0x000000018885781c 0x0000000188853000 + 18460 9 libdispatch.dylib 0x000000018885a968 0x0000000188853000 + 31080 10 libdispatch.dylib 0x0000000188868fe0 0x0000000188853000 + 90080 11 libdispatch.dylib 0x00000001888697d8 0x0000000188853000 + 92120 12 libsystem_pthread.dylib 0x00000001d492e768 0x00000001d492b000 + 14184 }

This is my crash func,

- (GMRZUACStatus)FPCodeConvertUACCode:(FidoStatus)status
{
    GMRZUACStatus retStatus = GMRZUACStatus_FAILED;
    
    switch (status) {
        case SUCCESS:
            
            retStatus = GMRZUACStatus_SUCCESS;
            break;
            
        case FAILURE:
            
            retStatus = GMRZUACStatus_FAILED;
            
            break;
            
        case CANCELED:
            
            retStatus = GMRZUACStatus_CANCELED;
            break;
        
        case NO_MATCH:
            
            retStatus = GMRZUACStatus_NO_MATCH;
            
            break;
            
        case PROTOCOL_ERROR:
            
            retStatus = GMRZUACStatus_PROTOCOL_ERROR;
            break;
        
        case BIOIDINVALID:
            
            retStatus = GMRZUACStatus_BIOID_INVALID;
            
            break;
        case BIOID_HAS_CHANGED:
            
            retStatus = GMRZUACStatus_BIOID_CHANGED;

            break;
            
        case CURRENT_BIO_NOT_AVAILABLE:
            retStatus = GMRZUACStatus_BIOID_NOT_AVAILABLE;
            break;
            
        case WAIT_USER_ACTION:
            
            retStatus = GMRZUACStatus_WAIT_USER_ACTION;
            
            break;
        case UNKNOWN_ERROR:
            
            retStatus = GMRZUACStatus_UNKNOWN_ERROR;
            
            break;
        case USER_REGISTED:
            
            retStatus = GMRZUACStatus_USER_REGISTED;
            
            break;
        case TOUCHID_NOT_SUPPORT:
            
            retStatus = GMRZUACStatus_TOUCHID_NOT_SUPPORT;
            
            break;
        case FACEID_NOT_SUPPORT:
            
            retStatus = GMRZUACStatus_FACEID_NOT_SUPPORT;
            
            break;
        case FACEID_NOT_PERMISSION:
            retStatus = GMRZUACStatus_FACEID_NOT_PERMISSION;
            break;
        default:
            break;
    }
    
    return retStatus;
}

I don't know why this method is broken, can you help me? Best wishes

Replies

What is iIndustrial ? Some of your code ? A third party framework ?

Where exactly does it crash (which line) ?

I found a few references to signal 5:

https://developer.apple.com/forums/thread/75579

  • I don't know what that means. This crash is listed in the crash log.

Add a Comment

I think it's about sth about privacy or code signing
not sure
seen a few posts like this

  • There was a data signature operation, but somehow it crashed here. I don't understand why my switch crashed

Add a Comment

It looks ilke you’re using a third-party crash report. That limits how much I can help you. Third-party crash reporters are a bad idea, as I explain in Implementing Your Own Crash Reporter.

If you look in <sys/signal> you’ll see that signal 5 corresponds to SIGTRAP. For info on what that means, see Understanding the Exception Types in a Crash Report.

Based on that, and the limited info in the backtrace you posted, I suspect that you’ve hit a trap within Dispatch. It’s hard to say what that is. If you can find an Apple crash report for the problem, I should be able to figure out more.

For advice on how to post a crash report, see Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • Thanks for your advice, I will now try to get the crash log from Apple.

Add a Comment