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.3 Date: 05/18/2017 (i)
Sentry
SDK: 3.0.7 Date: 07/03/2017 (i)
Bugsnag
SDK: 5.0.0 Date: 02/16/2016 (i)
Apple
Date: 05/18/2017 (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       0x00007fff96363057 objc_msgSend + 23
1   libsystem_trace.dylib 0x00007fff96e8dd02 _os_log_fmt_flatten_data + 151
2   libsystem_trace.dylib 0x00007fff96e92a86 _os_log_impl_flatten_and_send + 1855
3   libsystem_trace.dylib 0x00007fff96e9470d _os_log_with_args_impl + 463
4   CoreFoundation        0x00007fff81537e57 _CFLogvEx3 + 231
5   Foundation            0x00007fff82f6f665 _NSLogv + 116
6   Foundation            0x00007fff82f5a7ee NSLog + 151
7   CrashLib              0x000000010805cce4 -[CRLCrashNSLog crash] (CRLCrashNSLog.m:41)
8   CrashProbe            0x000000010804cc31 -[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)
9   libsystem_trace.dylib 0x00007fff96e883a7 _os_activity_initiate_impl + 52
10  AppKit                0x00007fff7f754721 -[NSApplication(NSResponder) sendAction:to:from:] + 455
11  AppKit                0x00007fff7f238cc4 -[NSControl sendAction:to:] + 85
12  AppKit                0x00007fff7f238bec __26-[NSCell _sendActionFrom:]_block_invoke + 135
13  libsystem_trace.dylib 0x00007fff96e883a7 _os_activity_initiate_impl + 52
14  AppKit                0x00007fff7f238b44 -[NSCell _sendActionFrom:] + 127
15  AppKit                0x00007fff7f27b539 -[NSButtonCell _sendActionFrom:] + 97
16  libsystem_trace.dylib 0x00007fff96e883a7 _os_activity_initiate_impl + 52
17  AppKit                0x00007fff7f237426 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2480
18  AppKit                0x00007fff7f27b272 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 797
19  AppKit                0x00007fff7f235ddb -[NSControl mouseDown:] + 831
20  AppKit                0x00007fff7f8d024f -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 6340
21  AppKit                0x00007fff7f8cca6c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1941
22  AppKit                0x00007fff7f8cbf0a -[NSWindow(NSEventRouting) sendEvent:] + 540
23  AppKit                0x00007fff7f750681 -[NSApplication(NSEvent) sendEvent:] + 1144
24  HockeySDK             0x000000010807e54e -[BITCrashExceptionApplication sendEvent:] (BITCrashExceptionApplication.m:48)
25  AppKit                0x00007fff7efcb427 -[NSApplication run] + 1001
26  AppKit                0x00007fff7ef95e0e NSApplicationMain + 1236
27  CrashProbe            0x000000010804cef0 main (main.m:13)
28  libdyld.dylib         0x00007fff96c56235 start + 0

Sentry - x86_64

OS Version: macOS 10.12.5 (16F73)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: BUS_NOOP at 0x0000000000000010
Crashed Thread: 0

Application Specific Information:
Attempted to dereference garbage pointer 0x10.

Thread 0 name:
Thread 0 Crashed:
0   libobjc.A.dylib                 0xffff275a8057      objc_msgSend
1   libsystem_trace.dylib           0xffff28c00a86      _os_log_impl_flatten_and_send
2   libsystem_trace.dylib           0xffff28c0270d      _os_log_with_args_impl
3   CoreFoundation                  0xfffefd819e57      _CFLogvEx3
4   Foundation                      0xffff00cc9665      _NSLogv
5   Foundation                      0xffff00cb47ee      NSLog
6   CrashLib                        0x1034fada2         -[CRLCrashNSLog crash] (CRLCrashNSLog.m:41)
7   CrashProbe                      0x2033cbbba         -[CRLMainWindowController causeCrash:] (CRLMainWindowController.m:72)
8   libsystem_trace.dylib           0xffff28bf63a7      _os_activity_initiate_impl
9   AppKit                          0xfffef9571721      -[NSApplication(NSResponder) sendAction:to:from:]
10  AppKit                          0xfffef9055cc4      -[NSControl sendAction:to:]
11  AppKit                          0xfffef9055bec      __26-[NSCell _sendActionFrom:]_block_invoke
12  libsystem_trace.dylib           0xffff28bf63a7      _os_activity_initiate_impl
13  AppKit                          0xfffef9055b44      -[NSCell _sendActionFrom:]
14  AppKit                          0xfffef9098539      -[NSButtonCell _sendActionFrom:]
15  libsystem_trace.dylib           0xffff28bf63a7      _os_activity_initiate_impl
16  AppKit                          0xfffef9054426      -[NSCell trackMouse:inRect:ofView:untilMouseUp:]
17  AppKit                          0xfffef9098272      -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]
18  AppKit                          0xfffef9052ddb      -[NSControl mouseDown:]
19  AppKit                          0xfffef96ed24f      -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:]
20  AppKit                          0xfffef96e9a6c      -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]
21  AppKit                          0xfffef96e8f0a      -[NSWindow(NSEventRouting) sendEvent:]
22  AppKit                          0xfffef956d681      -[NSApplication(NSEvent) sendEvent:]
23  AppKit                          0xfffef8de8427      -[NSApplication run]
24  AppKit                          0xfffef8db2e0e      NSApplicationMain
25  CrashProbe                      0x2033cbe79         main (main.m:13)
26  libdyld.dylib                   0xffff28790235      start

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

Apple - x86_64

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

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

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0  libobjc.A.dylib                0x00007fff94637057 objc_msgSend + 23
1  libsystem_trace.dylib          0x00007fff95161d02 _os_log_fmt_flatten_data + 152
2  libsystem_trace.dylib          0x00007fff95166a86 _os_log_impl_flatten_and_send + 1856
3  libsystem_trace.dylib          0x00007fff9516870d _os_log_with_args_impl + 464
4  com.apple.CoreFoundation       0x00007fff7f822f27 _CFLogvEx3 + 231
5  com.apple.Foundation           0x00007fff812596f5 _NSLogv + 117
6  com.apple.Foundation           0x00007fff8124487e NSLog + 152
7  net.hockeyapp.CrashLib         0x0000000109672ce4 -[CRLCrashNSLog crash] + 23 (CRLCrashNSLog.m:42) | Wrong line number
8  net.hockeyapp.CrashProbe.apple 0x0000000109665c35 -[CRLMainWindowController causeCrash:] + 75 (CRLMainWindowController.m:72)
9  libsystem_trace.dylib          0x00007fff9515c3a7 _os_activity_initiate_impl + 53
10 com.apple.AppKit               0x00007fff7da41791 -[NSApplication(NSResponder) sendAction:to:from:] + 456
11 com.apple.AppKit               0x00007fff7d526000 -[NSControl sendAction:to:] + 86
12 com.apple.AppKit               0x00007fff7d525f28 __26-[NSCell _sendActionFrom:]_block_invoke + 136
13 libsystem_trace.dylib          0x00007fff9515c3a7 _os_activity_initiate_impl + 53
14 com.apple.AppKit               0x00007fff7d525e80 -[NSCell _sendActionFrom:] + 128
15 com.apple.AppKit               0x00007fff7d568875 -[NSButtonCell _sendActionFrom:] + 98
16 libsystem_trace.dylib          0x00007fff9515c3a7 _os_activity_initiate_impl + 53
17 com.apple.AppKit               0x00007fff7d524762 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2481
18 com.apple.AppKit               0x00007fff7d5685ae -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 798
19 com.apple.AppKit               0x00007fff7d523117 -[NSControl mouseDown:] + 832
20 com.apple.AppKit               0x00007fff7dbbd2bf -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 6341
21 com.apple.AppKit               0x00007fff7dbb9adc -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1942
22 com.apple.AppKit               0x00007fff7dbb8f7a -[NSWindow(NSEventRouting) sendEvent:] + 541
23 com.apple.AppKit               0x00007fff7da3d6f1 -[NSApplication(NSEvent) sendEvent:] + 1145
24 com.apple.AppKit               0x00007fff7d2b87f7 -[NSApplication run] + 1002
25 com.apple.AppKit               0x00007fff7d2831de NSApplicationMain + 1237
26 net.hockeyapp.CrashProbe.apple 0x0000000109665ef4 main + 9 (main.m:13)
27 libdyld.dylib                  0x00007fff94f2a235 start + 1