Access a non-object as an object

Call NSLog(@"%@", 16);, causing a crash when the runtime attempts to treat 16 as a pointer to an object.

Provider X86-64
HockeyApp
SDK: 4.1.2 Date: 02/124/2017 (i)
Bugsnag
SDK: 5.0.0 Date: 02/16/2016 (i)
Crashlytics
SDK: 3.4.1 Date: 12/10/2015 (i)
Apple
Date: 06/24/2015 (i)

Expected Report Details:

-[CRLCrashNSLog crash] (CRLCrashNSLog.m:41)
-[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)

Click a status icon above to see the crashing thread’s stack trace with further info.

HockeyApp - x86_64

Exception Type:  SIGSEGV
Exception Codes: SEGV_MAPERR at 0x10
Crashed Thread:  0

Application Specific Information:
Selector name found in current argument registers: isProxy

Thread 0 Crashed:
0  libobjc.A.dylib       0x00007fffde66fb57 objc_msgSend + 23
1  Foundation            0x00007fffcb5a4ce3 _NS_os_log_callback + 63
2  libsystem_trace.dylib 0x00007fffdf1a1977 _NSCF2data + 93
3  libsystem_trace.dylib 0x00007fffdf1a1616 _os_log_encode_arg + 714
4  libsystem_trace.dylib 0x00007fffdf1a221f _os_log_encode + 1623
5  libsystem_trace.dylib 0x00007fffdf1a5d36 os_log_with_args + 1248
6  libsystem_trace.dylib 0x00007fffdf1a6049 os_log_shim_with_CFString + 299
7  CoreFoundation        0x00007fffc9a65825 _CFLogvEx3 + 181
8  Foundation            0x00007fffcb49e735 _NSLogv + 117
9  Foundation            0x00007fffcb4898be NSLog + 152
10 CrashLib              0x000000010857fce1 -[CRLCrashNSLog crash] (CRLCrashNSLog.m:41)
11 CrashProbe            0x0000000108572b3d -[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)
12 libsystem_trace.dylib 0x00007fffdf193c3d _os_activity_initiate + 61
13 AppKit                0x00007fffc7cb7c9c -[NSApplication(NSResponder) sendAction:to:from:] + 456
14 AppKit                0x00007fffc779d460 -[NSControl sendAction:to:] + 86
15 AppKit                0x00007fffc779d388 __26-[NSCell _sendActionFrom:]_block_invoke + 136
16 libsystem_trace.dylib 0x00007fffdf193c3d _os_activity_initiate + 61
17 AppKit                0x00007fffc779d2e0 -[NSCell _sendActionFrom:] + 128
18 AppKit                0x00007fffc77dfcd9 -[NSButtonCell _sendActionFrom:] + 98
19 libsystem_trace.dylib 0x00007fffdf193c3d _os_activity_initiate + 61
20 AppKit                0x00007fffc779bbc6 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2481
21 AppKit                0x00007fffc77dfa12 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 798
22 AppKit                0x00007fffc779a57b -[NSControl mouseDown:] + 832
23 AppKit                0x00007fffc7e2f603 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 6341
24 AppKit                0x00007fffc7e2be20 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1942
25 AppKit                0x00007fffc7e2b2be -[NSWindow(NSEventRouting) sendEvent:] + 541
26 AppKit                0x00007fffc7cb3bf5 -[NSApplication(NSEvent) sendEvent:] + 1145
27 HockeySDK             0x000000010859d914 -[BITCrashExceptionApplication sendEvent:] (BITCrashExceptionApplication.m:48)
28 AppKit                0x00007fffc752ff81 -[NSApplication run] + 1002
29 AppKit                0x00007fffc74fa850 NSApplicationMain + 1237
30 CrashProbe            0x0000000108572ea4 main (main.m:13)
31 libdyld.dylib         0x00007fffdef61255 start + 1

Bugsnag - x86_64

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_INVALID_TASK
                                                                                                   
0  libobjc.A.dylib       objc_msgSend                                                          
1  CoreFoundation        _CFStringAppendFormatCore                                             
2  CoreFoundation        CFStringCreateWithFormatAndArgumentsAux2                              
3  CoreFoundation        CFLogvEx2                                                             
4  CoreFoundation        CFLogvEx3                                                             
5  Foundation            NSLogv                                                                
6  Foundation            NSLog                                                                 
7  CrashProbe            -[CRLCrashNSLog crash] (CRLCrashNSLog.m:41)                           
8  CrashProbe            -[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72) 
9  libsystem_trace.dylib os_activity_initiate                                                  
10 AppKit                -[NSApplication sendAction:to:from:]                                  
11 AppKit                -[NSControl sendAction:to:]                                           
12 AppKit                _26-[NSCell _sendActionFrom:]_block_invoke                            
13 libsystem_trace.dylib os_activity_initiate                                                  
14 AppKit                -[NSCell _sendActionFrom:]                                            
15 libsystem_trace.dylib os_activity_initiate                                                  
16 AppKit                -[NSCell trackMouse:inRect:ofView:untilMouseUp:]                      
17 AppKit                -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]                
18 AppKit                -[NSControl mouseDown:]                                               
19 AppKit                -[NSWindow _handleMouseDownEvent:isDelayedEvent:]                     
20 AppKit                -[NSWindow _reallySendEvent:isDelayedEvent:]                          
21 AppKit                -[NSWindow sendEvent:]                                                
22 AppKit                -[NSApplication sendEvent:]                                           
23 AppKit                -[NSApplication run]                                                  
24 AppKit                NSApplicationMain                                                     
25 CrashProbe            main (main.m:13)                                                      
26 libdyld.dylib         start

Crashlytics - x86_64

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000000000010

Thread : Crashed: com.apple.main-thread
0  libobjc.A.dylib       0x7fff8fe124d7 objc_msgSend + 23
1  Foundation            0x7fff926b0080 _NSDescriptionWithStringProxyFunc + 49
2  CoreFoundation        0x7fff87678667 __CFStringAppendFormatCore + 9175
3  CoreFoundation        0x7fff87779d13 _CFStringCreateWithFormatAndArgumentsAux2 + 259
4  CoreFoundation        0x7fff8778d9aa _CFLogvEx2 + 154
5  CoreFoundation        0x7fff8778db0b _CFLogvEx3 + 171
6  Foundation            0x7fff9282bce1 _NSLogv + 117
7  Foundation            0x7fff9273f735 NSLog + 152
8  CrashLib              0x000109864d70 -[CRLCrashNSLog crash] (CRLCrashNSLog.m:41)
9  CrashProbe            0x0001097e26e1 -[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)
10 libsystem_trace.dylib 0x7fff84dea07a _os_activity_initiate + 75
11 AppKit                0x7fff8df9551d -[NSApplication sendAction:to:from:] + 460
12 AppKit                0x7fff8dfaa486 -[NSControl sendAction:to:] + 86
13 AppKit                0x7fff8dfaa3b0 __26-[NSCell _sendActionFrom:]_block_invoke + 131
14 libsystem_trace.dylib 0x7fff84dea07a _os_activity_initiate + 75
15 AppKit                0x7fff8dfaa30d -[NSCell _sendActionFrom:] + 144
16 libsystem_trace.dylib 0x7fff84dea07a _os_activity_initiate + 75
17 AppKit                0x7fff8dfa8932 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2693
18 AppKit                0x7fff8dffdd58 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 744
19 AppKit                0x7fff8dfa705c -[NSControl mouseDown:] + 669
20 AppKit                0x7fff8e554d1d -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322
21 AppKit                0x7fff8e555fad -[NSWindow _reallySendEvent:isDelayedEvent:] + 212
22 AppKit                0x7fff8deae735 -[NSWindow sendEvent:] + 517
23 AppKit                0x7fff8deaae49 -[NSApplication sendEvent:] + 2540
24 AppKit                0x7fff8ddde03a -[NSApplication run] + 796
25 AppKit                0x7fff8dd60520 NSApplicationMain + 1176
26 CrashProbe            0x1097e2a46 main (main.m:13)
27 libdyld.dylib         0x7fff850755ad start + 1

Apple - x86_64

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000010

Application Specific Information:
objc_msgSend() selector name: respondsToSelector:
Performing @selector(causeCrash:) from sender NSButton 0x610000159d30

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0  libobjc.A.dylib          0x00007fff900710d7 objc_msgSend + 23
1  com.apple.CoreFoundation 0x00007fff8588a8e4 __CFStringAppendFormatCore + 8180
2  com.apple.CoreFoundation 0x00007fff859803a0 _CFStringCreateWithFormatAndArgumentsAux2 + 256
3  com.apple.CoreFoundation 0x00007fff8599377f _CFLogvEx2 + 127
4  com.apple.Foundation     0x00007fff8df09c47 NSLogv + 99
5  com.apple.Foundation     0x00007fff8df09bc0 NSLog + 148
6  net.hockeyapp.CrashLib   0x00000001030556ce -[CRLCrashNSLog crash] + 23 (CRLCrashNSLog.m:42) | Wrong line number
7  net.hockeyapp.CrashProbe 0x000000010304c473 -[CRLMainWindowController causeCrash:] + 75 (CRLMainWindowController.m:72)
8  libsystem_trace.dylib    0x00007fff91233cd7 _os_activity_initiate + 75
9  com.apple.AppKit         0x00007fff8bc45fb1 -[NSApplication sendAction:to:from:] + 452
10 com.apple.AppKit         0x00007fff8bc5ba46 -[NSControl sendAction:to:] + 86
11 com.apple.AppKit         0x00007fff8bc5b962 __26-[NSCell _sendActionFrom:]_block_invoke + 131
12 libsystem_trace.dylib    0x00007fff91233cd7 _os_activity_initiate + 75
13 com.apple.AppKit         0x00007fff8bc5b8bf -[NSCell _sendActionFrom:] + 144
14 libsystem_trace.dylib    0x00007fff91233cd7 _os_activity_initiate + 75
15 com.apple.AppKit         0x00007fff8bc59db3 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2821
16 com.apple.AppKit         0x00007fff8bcb245f -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 770
17 com.apple.AppKit         0x00007fff8bc58466 -[NSControl mouseDown:] + 714
18 com.apple.AppKit         0x00007fff8c1c22fc -[NSWindow _reallySendEvent:isDelayedEvent:] + 14125
19 com.apple.AppKit         0x00007fff8bb51d76 -[NSWindow sendEvent:] + 470
20 com.apple.AppKit         0x00007fff8bb4e312 -[NSApplication sendEvent:] + 2504
21 com.apple.AppKit         0x00007fff8ba77c68 -[NSApplication run] + 711
22 com.apple.AppKit         0x00007fff8b9f4354 NSApplicationMain + 1832
23 net.hockeyapp.CrashProbe 0x000000010304c7d9 main + 9 (main.m:13)
24 libdyld.dylib            0x00007fff8aaa75c9 start + 1